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.
30 lines
1.6 KiB
XML
30 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 defbtn='done' escbtn='done'>
|
|
<text size='large' top='10' left='54' width='163' height='15'>Alchemy known:</text>
|
|
<pict type='dlog' num='20' top='6' left='6'/>
|
|
<button name='done' type='done' top='174' left='356'/>
|
|
<led name='potion1' state='off' top='33' left='50'/>
|
|
<led name='potion2' state='off' top='47' left='50'/>
|
|
<led name='potion3' state='off' top='61' left='50'/>
|
|
<led name='potion4' state='off' top='75' left='50'/>
|
|
<led name='potion5' state='off' top='89' left='50'/>
|
|
<led name='potion6' state='off' top='103' left='50'/>
|
|
<led name='potion7' state='off' top='117' left='50'/>
|
|
<led name='potion8' state='off' top='131' left='50'/>
|
|
<led name='potion9' state='off' top='145' left='50'/>
|
|
<led name='potion10' state='off' top='159' left='50'/>
|
|
<led name='potion11' state='off' top='33' left='235'/>
|
|
<led name='potion12' state='off' top='47' left='235'/>
|
|
<led name='potion13' state='off' top='61' left='235'/>
|
|
<led name='potion14' state='off' top='75' left='235'/>
|
|
<led name='potion15' state='off' top='89' left='235'/>
|
|
<led name='potion16' state='off' top='103' left='235'/>
|
|
<led name='potion17' state='off' top='117' left='235'/>
|
|
<led name='potion18' state='off' top='131' left='235'/>
|
|
<led name='potion19' state='off' top='145' left='235'/>
|
|
<led name='potion20' state='off' top='159' left='235'/>
|
|
<text top='179' left='8' width='250' height='16'>Number in ( ) is minimum skill to make.</text>
|
|
</dialog>
|