scen event timers cancel button
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 -->
|
|
||||||
<stack name='list' pages='2'>
|
<stack name='list' pages='2'>
|
||||||
<field name='time1' top='133' left='130' width='67' height='16'/>
|
<field name='time1' top='133' left='130' width='67' height='16'/>
|
||||||
<field name='time2' top='161' left='130' width='67' height='16'/>
|
<field name='time2' top='161' left='130' width='67' height='16'/>
|
||||||
@@ -38,6 +37,7 @@
|
|||||||
<button name='prev' type='left' def-key='left' top='411' left='130'/>
|
<button name='prev' type='left' def-key='left' top='411' left='130'/>
|
||||||
<button name='next' type='right' def-key='right' top='411' left='200'/>
|
<button name='next' type='right' def-key='right' top='411' left='200'/>
|
||||||
<button name='okay' type='regular' top='411' left='350'>OK</button>
|
<button name='okay' type='regular' top='411' left='350'>OK</button>
|
||||||
|
<button name='cancel' type='regular' relative='neg pos-in' rel-anchor='prev' top='0' left='71'>Cancel</button>
|
||||||
<pict type='dlog' num='16' top='8' left='8'/>
|
<pict type='dlog' num='16' top='8' left='8'/>
|
||||||
<text size='large' top='6' left='50' width='256' height='17'>Scenario event timers</text>
|
<text size='large' top='6' left='50' width='256' height='17'>Scenario event timers</text>
|
||||||
<text top='25' left='50' width='438' height='55'>
|
<text top='25' left='50' width='438' height='55'>
|
||||||
|
|||||||
@@ -3160,6 +3160,7 @@ void edit_scenario_events() {
|
|||||||
evt_dlg["prev"].attachClickHandler([&stk] (cDialog&, std::string, eKeyMod) { return stk.setPage(0); });
|
evt_dlg["prev"].attachClickHandler([&stk] (cDialog&, std::string, eKeyMod) { return stk.setPage(0); });
|
||||||
evt_dlg["next"].attachClickHandler([&stk] (cDialog&, std::string, eKeyMod) { return stk.setPage(1); });
|
evt_dlg["next"].attachClickHandler([&stk] (cDialog&, std::string, eKeyMod) { return stk.setPage(1); });
|
||||||
evt_dlg["okay"].attachClickHandler(save_scenario_events);
|
evt_dlg["okay"].attachClickHandler(save_scenario_events);
|
||||||
|
evt_dlg["cancel"].attachClickHandler(std::bind(&cDialog::toast, &evt_dlg, false));
|
||||||
for(int i = 0; i < scenario.scenario_timers.size(); i++) {
|
for(int i = 0; i < scenario.scenario_timers.size(); i++) {
|
||||||
stk.setPage(i / 10);
|
stk.setPage(i / 10);
|
||||||
short fieldId = i % 10;
|
short fieldId = i % 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user