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.
58 lines
3.9 KiB
XML
58 lines
3.9 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='257' left='21' width='87' height='16'>Resistances:</text>
|
|
<text size='large' top='7' left='54' width='106' height='16'>Monster Info:</text>
|
|
<button name='done' type='done' top='319' left='249'/>
|
|
<pict name='pic' type='monst' num='0' top='8' left='12'/>
|
|
<text top='34' left='52' width='52' height='16'>Name</text>
|
|
<text name='name' framed='true' top='32' left='104' width='195' height='16'/>
|
|
<text top='61' left='11' width='42' height='16'>Level</text>
|
|
<text name='lvl' framed='true' top='59' left='53' width='25' height='16'/>
|
|
<text top='61' left='90' width='48' height='16'>Health</text>
|
|
<text name='hp' framed='true' top='59' left='134' width='47' height='16'/>
|
|
<text top='61' left='194' width='64' height='16'>Magic Pts.</text>
|
|
<text name='sp' framed='true' top='59' left='258' width='47' height='16'/>
|
|
<text top='87' left='11' width='46' height='16'>Armor</text>
|
|
<text name='def' framed='true' top='85' left='57' width='25' height='16'/>
|
|
<text top='87' left='91' width='36' height='16'>Skill</text>
|
|
<text name='skill' framed='true' top='85' left='127' width='25' height='16'/>
|
|
<text top='87' left='159' width='46' height='16'>Morale</text>
|
|
<text name='morale' framed='true' top='85' left='205' width='32' height='16'/>
|
|
<text top='87' left='240' width='38' height='16'>Speed</text>
|
|
<text name='ap' framed='true' top='85' left='280' width='25' height='16'/>
|
|
<text top='113' left='11' width='52' height='16'>Att #1</text>
|
|
<text name='attack1' framed='true' top='111' left='63' width='44' height='16'/>
|
|
<text top='113' left='114' width='46' height='16'>Att #2</text>
|
|
<text name='attack2' framed='true' top='111' left='160' width='44' height='16'/>
|
|
<text top='113' left='217' width='44' height='16'>Att #3</text>
|
|
<text name='attack3' framed='true' top='111' left='261' width='44' height='16'/>
|
|
<text top='139' left='10' width='68' height='16'>Mage L.</text>
|
|
<text name='mage' framed='true' top='137' left='78' width='25' height='17'/>
|
|
<text top='139' left='118' width='50' height='16'>Priest L.</text>
|
|
<text name='priest' framed='true' top='137' left='178' width='25' height='17'/>
|
|
<led name='guard' top='139' left='224'>Town guard?</led>
|
|
<text top='167' left='9' width='58' height='16'>Ability 1</text>
|
|
<led name='mindless' top='257' left='116'>Mindless</led>
|
|
<led name='invuln' top='257' left='216'>Invulnerable</led>
|
|
<text name='abil1' framed='true' top='165' left='67' width='238' height='16'/>
|
|
<text top='275' left='10' width='30' height='16'>Magic</text>
|
|
<text name='magic-res' framed='true' top='273' left='49' width='35' height='16'/>
|
|
<text top='275' left='87' width='20' height='16'>Fire</text>
|
|
<text name='fire-res' framed='true' top='273' left='116' width='35' height='16'/>
|
|
<text top='275' left='156' width='25' height='16'>Cold</text>
|
|
<text name='cold-res' framed='true' top='273' left='190' width='35' height='16'/>
|
|
<text top='275' left='226' width='40' height='16'>Poison</text>
|
|
<text name='poison-res' framed='true' top='273' left='271' width='35' height='16'/>
|
|
<button name='left' type='left' def-key='left' top='319' left='11'/>
|
|
<button name='right' type='right' def-key='right' top='319' left='74'/>
|
|
<text top='292' left='10' width='305' height='28'>(To make monsters appear in roster menu, cast Scry Monster on them.)</text>
|
|
<text top='190' left='9' width='58' height='16'>Ability 2</text>
|
|
<text name='abil2' framed='true' top='188' left='67' width='238' height='16'/>
|
|
<text top='213' left='9' width='58' height='16'>Ability 3</text>
|
|
<text name='abil3' framed='true' top='211' left='67' width='238' height='16'/>
|
|
<text top='236' left='9' width='58' height='16'>Ability 4</text>
|
|
<text name='abil4' framed='true' top='234' left='67' width='238' height='16'/>
|
|
</dialog>
|