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.
47 lines
2.5 KiB
XML
47 lines
2.5 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'/>
|
|
<text size='large' top='8' left='50' width='200' height='17'>Resize/Shift Outdoors</text>
|
|
|
|
<text top='30' left='100' width='60' height='16'>Extend top</text>
|
|
<text name='top' framed='true' top='50' left='100' width='60' height='16'>0</text>
|
|
<button name='top-m' type='small' top='72' left='109'>-</button>
|
|
<button name='top-p' type='small' top='72' left='135'>+</button>
|
|
|
|
<text top='120' left='10' width='60' height='16'>Extend left</text>
|
|
<text name='left' framed='true' top='140' left='10' width='60' height='16'>0</text>
|
|
<button name='left-m' type='small' top='162' left='19'>-</button>
|
|
<button name='left-p' type='small' top='162' left='45'>+</button>
|
|
|
|
<text top='120' left='190' width='70' height='16'>Extend right</text>
|
|
<text name='right' framed='true' top='140' left='190' width='60' height='16'>0</text>
|
|
<button name='right-m' type='small' top='162' left='199'>-</button>
|
|
<button name='right-p' type='small' top='162' left='225'>+</button>
|
|
|
|
<text top='210' left='100' width='80' height='16'>Extend bottom</text>
|
|
<text name='bottom' framed='true' top='230' left='100' width='60' height='16'>0</text>
|
|
<button name='bottom-m' type='small' top='252' left='109'>-</button>
|
|
<button name='bottom-p' type='small' top='252' left='135'>+</button>
|
|
|
|
<text framed='true' top='110' left='90' width='80' height='80'/>
|
|
|
|
<text top='115' left='95' width='80' height='16'>Width:</text>
|
|
<text name='w-old' top='130' left='95' width='20' height='16'/>
|
|
<text top='130' left='120' width='20' height='16'>--></text>
|
|
<text name='w-new' top='130' left='145' width='20' height='16'/>
|
|
|
|
<text top='155' left='95' width='80' height='16'>Height:</text>
|
|
<text name='h-old' top='170' left='95' width='20' height='16'/>
|
|
<text top='170' left='120' width='20' height='16'>--></text>
|
|
<text name='h-new' top='170' left='145' width='20' height='16'/>
|
|
|
|
<text top='30' left='270' width='200' height='16'>Sections to be deleted:</text>
|
|
<pane name="scroll" framed='true' top='50' left='270' width='200' height='200'>
|
|
<text name='delete' top='50' left='270' width='200'/>
|
|
</pane>
|
|
<button name='okay' type='regular' top='270' left='407'>OK</button>
|
|
<button name='cancel' type='regular' top='270' left='342'>Cancel</button>
|
|
</dialog>
|