Files
oboe/rsrc/dialogs/soul-crystal.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

25 lines
1.6 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 escbtn='cancel'>
<button name='cancel' type='regular' top='145' left='238'>Cancel</button>
<!--
TODO: What about showing the monster's graphic?
-->
<button name='pick1' type='small' def-key='1' top='50' left='50'><key/></button>
<text name='slot1' framed='true' top='52' left='83' width='172' height='16'>(spot empty)</text>
<text name='lvl1' framed='true' top='52' left='262' width='31' height='16'/>
<button name='pick2' type='small' def-key='2' top='72' left='50'><key/></button>
<text name='slot2' framed='true' top='74' left='83' width='172' height='16'>(spot empty)</text>
<text name='lvl2' framed='true' top='74' left='262' width='31' height='16'/>
<button name='pick3' type='small' def-key='3' top='94' left='50'><key/></button>
<text name='slot3' framed='true' top='96' left='83' width='172' height='16'>(spot empty)</text>
<text name='lvl3' framed='true' top='96' left='262' width='31' height='16'/>
<button name='pick4' type='small' def-key='4' top='116' left='50'><key/></button>
<text name='slot4' framed='true' top='118' left='83' width='172' height='16'>(spot empty)</text>
<text name='lvl4' framed='true' top='118' left='262' width='31' height='16'/>
<text size='large' top='6' left='50' width='251' height='16'>Select monster to summon:</text>
<pict type='dlog' num='13' top='6' left='6'/>
<text size='large' top='28' left='50' width='244' height='16'># Monster Cost</text>
</dialog>