scen details cancel button

This commit is contained in:
2025-05-19 07:08:20 -05:00
parent a52e6ff4f3
commit 7e42436306
2 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!-- NOTE: This file should be updated to use relative positioning the next time it changes. -->
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay'>
<dialog defbtn='okay' escbtn='cancel'>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='256' height='17'>Scenario Details</text>
@@ -47,4 +47,5 @@
</group>
<button name='okay' type='regular' top='354' left='395'>OK</button>
<button name='cancel' type='regular' relative='neg pos-in' rel-anchor='prev' top='0' left='71'>Cancel</button>
</dialog>

View File

@@ -2869,6 +2869,7 @@ static bool edit_scen_default_bgs(cDialog& me, std::string which, eKeyMod) {
void edit_scen_details() {
cDialog info_dlg(*ResMgr::dialogs.get("edit-scenario-details"));
info_dlg["okay"].attachClickHandler(save_scen_details);
info_dlg["cancel"].attachClickHandler(std::bind(&cDialog::toast, &info_dlg, false));
put_scen_details_in_dlog(info_dlg);