town wandring monsters cancel btn
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||||
<!-- NOTE: This file should be updated to use relative positioning the next time it changes. -->
|
<!-- NOTE: This file should be updated to use relative positioning the next time it changes. -->
|
||||||
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
||||||
<dialog defbtn='okay'>
|
<dialog defbtn='okay' escbtn='cancel'>
|
||||||
<!-- OK button -->
|
|
||||||
<field name='group1-monst1' top='137' left='174' width='39' height='16'/>
|
<field name='group1-monst1' top='137' left='174' width='39' height='16'/>
|
||||||
<field name='group1-monst2' top='165' left='174' width='39' height='16'/>
|
<field name='group1-monst2' top='165' left='174' width='39' height='16'/>
|
||||||
<field name='group1-monst3' top='193' left='174' width='39' height='16'/>
|
<field name='group1-monst3' top='193' left='174' width='39' height='16'/>
|
||||||
@@ -19,7 +18,8 @@
|
|||||||
<field name='group4-monst2' top='165' left='369' width='39' height='16'/>
|
<field name='group4-monst2' top='165' left='369' width='39' height='16'/>
|
||||||
<field name='group4-monst3' top='193' left='369' width='39' height='16'/>
|
<field name='group4-monst3' top='193' left='369' width='39' height='16'/>
|
||||||
<field name='group4-monst4' top='221' left='369' width='39' height='16'/>
|
<field name='group4-monst4' top='221' left='369' width='39' height='16'/>
|
||||||
<button name='okay' type='regular' top='243' left='436'>OK</button>
|
<button name='okay' type='regular' top='273' left='436'>OK</button>
|
||||||
|
<button name='cancel' type='regular' relative='neg pos-in' rel-anchor='prev' top='0' left='71'>Cancel</button>
|
||||||
<text top='6' left='50' width='256' height='17'>Town wandering monsters</text>
|
<text top='6' left='50' width='256' height='17'>Town wandering monsters</text>
|
||||||
<text top='25' left='50' width='439' height='40'>
|
<text top='25' left='50' width='439' height='40'>
|
||||||
Wandering monsters in towns appear in groups of up to 5.
|
Wandering monsters in towns appear in groups of up to 5.
|
||||||
|
@@ -987,6 +987,7 @@ void edit_town_wand() {
|
|||||||
|
|
||||||
cDialog wand_dlg(*ResMgr::dialogs.get("edit-town-wandering"));
|
cDialog wand_dlg(*ResMgr::dialogs.get("edit-town-wandering"));
|
||||||
wand_dlg["okay"].attachClickHandler(save_town_wand);
|
wand_dlg["okay"].attachClickHandler(save_town_wand);
|
||||||
|
wand_dlg["cancel"].attachClickHandler(std::bind(&cDialog::toast, &wand_dlg, false));
|
||||||
auto check_monst = std::bind(check_range_msg, _1, _2, _3, 0, 255, "Wandering monsters", "0 means no monster");
|
auto check_monst = std::bind(check_range_msg, _1, _2, _3, 0, 255, "Wandering monsters", "0 means no monster");
|
||||||
// Just go through and attach the same focus handler to ALL text fields.
|
// Just go through and attach the same focus handler to ALL text fields.
|
||||||
// There's 16 of them, so this is kinda the easiest way to do it.
|
// There's 16 of them, so this is kinda the easiest way to do it.
|
||||||
|
Reference in New Issue
Block a user