Behaviorally: This change makes it so that Enter will never cancel a dialog, unless that dialog only contains info to be read. Escape will never unpredictably be treated as Enter. And some dialogs without Escape to cancel, now can be canceled with Escape. A lot of this just refactors dialogs to define the cancel button at the top, not as a hotkey on a cancel button deep in the XML. I think this makes enter/escape behavior in dialogxml files more legible at a glance.
20 lines
1.2 KiB
XML
20 lines
1.2 KiB
XML
<?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='done' escbtn='done'>
|
|
<pict type='dlog' num='3' top='9' left='9'/>
|
|
<text size='large' top='9' left='54' width='161' height='19'>THE JOB BOARD:</text>
|
|
<text top='9' left='230' width='92' height='19'>Current day:</text>
|
|
<text name='day' top='9' left='324' width='92' height='19'/>
|
|
<text name='feedback' framed='true' top='313' left='19' width='183' height='18'/>
|
|
<text name='job1' top='38' left='54' width='364' height='60'/>
|
|
<button name='take1' type='regular' top='78' left='426'>Take</button>
|
|
<text name='job2' top='104' left='54' width='364' height='60'/>
|
|
<button name='take2' type='regular' top='144' left='426'>Take</button>
|
|
<text name='job3' top='170' left='54' width='364' height='60'/>
|
|
<button name='take3' type='regular' top='210' left='426'>Take</button>
|
|
<text name='job4' top='236' left='54' width='364' height='60'/>
|
|
<button name='take4' type='regular' top='276' left='426'>Take</button>
|
|
<button name='done' type='done' top='305' left='426'/>
|
|
</dialog>
|