Files
oboe/rsrc/dialogs/edit-ter-obj.xml
Nat Quayle Nelson 500471bad1 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-30 11:51:12 -05:00

22 lines
1.3 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'>
<pict type='dlog' num='16' top='8' left='8'/>
<tilemap name='map' framed='true' top='12' left='60' rows='4' cols='4'>
<pict framed='false' type='ter' num='0' top='0' left='0'/>
</tilemap>
<text top='166' left='130' width='10' height='16'>X</text>
<text top='166' left='180' width='10' height='16'>Y</text>
<text top='186' left='10' width='100' height='16'>Object Size:</text>
<field name='w' type='uint' top='184' left='120' width='40' height='16'/>
<field name='h' type='uint' top='184' left='170' width='40' height='16'/>
<text top='208' left='10' width='100' height='28'>Position of this tile in object:</text>
<field name='x' type='uint' top='212' left='120' width='40' height='16'/>
<field name='y' type='uint' top='212' left='170' width='40' height='16'/>
<text top='242' left='10' width='100' height='16'>Object unique ID:</text>
<field name='id' type='uint' top='240' left='120' width='50' height='16'/>
<button name='cancel' type='regular' top='264' left='85'>Cancel</button>
<button name='okay' type='regular' top='264' left='150'>OK</button>
</dialog>