Files
oboe/rsrc/dialogs/select-sector.xml
Nat Quayle Nelson 3e3b2e1e6f assign escbtn and defbtn appropriately
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.
2025-03-27 14:46:57 -05:00

23 lines
1.4 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='okay' escbtn='cancel'>
<!-- OK button -->
<button name='okay' type='regular' top='136' left='229'>OK</button>
<button name='cancel' type='regular' top='136' left='164'>Cancel</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='188' height='16'>Edit Which Outdoor Section?</text>
<text top='25' left='68' width='111' height='14'>World width:</text>
<text name='width' top='25' left='186' width='37'/>
<text name='x' framed='true' top='63' left='142' width='75' height='16'/>
<text top='41' left='68' width='111' height='14'>World height:</text>
<text name='height' top='41' left='186' width='37'/>
<text name='y' framed='true' top='88' left='142' width='75' height='16'/>
<button name='xminus' type='small' top='59' left='77' def-key='left'>-</button>
<button name='xplus' type='small' top='59' left='106' def-key='right'>+</button>
<button name='yminus' type='small' top='84' left='77' def-key='up'>-</button>
<button name='yplus' type='small' top='84' left='106' def-key='down'>+</button>
<text name='title' framed='true' top='111' left='142' width='150' height='16'/>
<button name='choose' type='regular' top='111' left='66'>Choose</button>
</dialog>