Files
oboe/rsrc/dialogs/edit-mabil-summon.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

36 lines
2.1 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='18' left='50' width='250' height='17'>Edit Monster Ability:</text>
<text top='52' left='10' width='100' height='16'>For monster:</text>
<text name='monst' framed='true' top='52' left='120' width='200' height='16'/>
<text top='80' left='10' width='100' height='16'>Display name:</text>
<text name='name' framed='true' top='80' left='120' width='200' height='16'/>
<text top='108' left='10' width='100' height='16'>Ability Type:</text>
<text name='type' framed='true' top='108' left='120' width='200' height='16'/>
<text top='136' left='10' width='100' height='16'>Summoning Type:</text>
<text name='subtype' framed='true' top='136' left='120' width='200' height='16'/>
<button name='pick-subtype' type='regular' top='133' left='330'>Choose</button>
<text top='164' left='10' width='100' height='16'>Which Monster?</text>
<text name='summon' framed='true' top='164' left='120' width='200' height='16'/>
<button name='pick-summon' type='regular' top='161' left='330'>Choose</button>
<text top='192' left='10' width='100' height='16'>Minimum number:</text>
<field name='min' top='190' left='120' width='50' height='16'/>
<text top='192' left='180' width='100' height='16'>Maximum number:</text>
<field name='max' top='190' left='290' width='50' height='16'/>
<text top='220' left='10' width='100' height='16'>Summon duration:</text>
<field name='len' top='218' left='120' width='50' height='16'/>
<text top='220' left='180' width='100' height='16'>Chance of Using:</text>
<field name='odds' top='218' left='290' width='50' height='16'/>
<button name='okay' type='regular' top='244' left='330'>OK</button>
<button name='cancel' type='regular' top='244' left='265'>Cancel</button>
<button name='delete' type='regular' top='244' left='10'>Delete</button>
</dialog>