Fix incorrect message about scenarios location

This commit is contained in:
2017-01-26 12:25:40 -05:00
parent 93c0679217
commit 3522d11217
2 changed files with 9 additions and 4 deletions

View File

@@ -1,11 +1,13 @@
<?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='62' left='257'>OK</button>
<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='273' height='52'>
<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 Blades of Exile Scenarios folder.
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

@@ -1406,11 +1406,14 @@ static bool pick_a_scen_event_filter(cDialog& me, std::string item_hit, short& p
short pick_a_scen() {
using namespace std::placeholders;
extern fs::path scenDir;
// TODO: Add a button to jump to the scenarios folder
build_scen_headers();
if(scen_headers.empty()) {
cChoiceDlog("no-scenarios").show();
cChoiceDlog err("no-scenarios");
err->getControl("path").setText(scenDir.string());
err.show();
return -1;
}
make_cursor_sword();