Fix incorrect message about scenarios location
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||||
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
||||||
<dialog defbtn='okay'>
|
<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'/>
|
<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.
|
Blades of Exile currently has no scenarios installed.
|
||||||
To install a scenario, copy it (with extra graphics files, if any)
|
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>
|
||||||
|
<text name='path' top='60' left='6' width='416' height='16' framed='true'/>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
|||||||
@@ -1406,11 +1406,14 @@ static bool pick_a_scen_event_filter(cDialog& me, std::string item_hit, short& p
|
|||||||
|
|
||||||
short pick_a_scen() {
|
short pick_a_scen() {
|
||||||
using namespace std::placeholders;
|
using namespace std::placeholders;
|
||||||
|
extern fs::path scenDir;
|
||||||
// TODO: Add a button to jump to the scenarios folder
|
// TODO: Add a button to jump to the scenarios folder
|
||||||
build_scen_headers();
|
build_scen_headers();
|
||||||
|
|
||||||
if(scen_headers.empty()) {
|
if(scen_headers.empty()) {
|
||||||
cChoiceDlog("no-scenarios").show();
|
cChoiceDlog err("no-scenarios");
|
||||||
|
err->getControl("path").setText(scenDir.string());
|
||||||
|
err.show();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
make_cursor_sword();
|
make_cursor_sword();
|
||||||
|
|||||||
Reference in New Issue
Block a user