Fix scenario button saying there are no scenario installed even though there are the built-in ones

This commit is contained in:
2023-01-04 20:51:40 -05:00
parent e7ae84ee2a
commit 2e61c44307
2 changed files with 0 additions and 19 deletions

View File

@@ -1,13 +0,0 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay'>
<button name='okay' type='regular' top='80' left='359'>OK</button>
<pict type='dlog' num='16' top='6' left='6'/>
<text top='6' left='49' width='373' height='52'>
Blades of Exile currently has no scenarios installed.
To install a scenario, copy it (with extra graphics files, if any)
into the Scenarios folder, which may be found at the
following location:
</text>
<text name='path' top='60' left='6' width='416' height='16' framed='true'/>
</dialog>

View File

@@ -1441,12 +1441,6 @@ public:
using namespace std::placeholders; using namespace std::placeholders;
extern fs::path scenDir; extern fs::path scenDir;
if(scen_headers.empty()) { // TODO: Arrange this to be a check before calling run()
cChoiceDlog err("no-scenarios");
err->getControl("path").setText(scenDir.string());
err.show();
return scen_header_type();
}
set_cursor(sword_curs); set_cursor(sword_curs);
me["cancel"].attachClickHandler(std::bind(&cChooseScenario::doCancel, this)); me["cancel"].attachClickHandler(std::bind(&cChooseScenario::doCancel, this));