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.
105 lines
5.4 KiB
XML
105 lines
5.4 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'>
|
|
<!--
|
|
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
|
|
-->
|
|
<pict name='icon' type='monst' num='0' top='8' left='8'/>
|
|
<text size='large' top='6' left='44' width='158' height='16'>Edit Monster Statistics</text>
|
|
|
|
<text top='8' left='216' width='111' height='16'>Monster number:</text>
|
|
<text name='num' top='8' left='334' width='37' height='14'/>
|
|
|
|
<text top='31' left='44' width='120' height='14'>Monster type name:</text>
|
|
<field name='name' top='30' left='180' width='186' height='16'/>
|
|
|
|
<text top='58' left='8' width='120' height='14'>Monster picture:</text>
|
|
<field name='pic' top='57' left='140' width='52' height='16'/>
|
|
<button name='pickicon' type='large' top='53' left='201'>Select Icon</button>
|
|
<text name='w' top='59' left='334' width='86' height='14'>Width = </text>
|
|
<text name='h' top='59' left='426' width='86' height='14'>Height = </text>
|
|
|
|
<text top='83' left='8' width='179' height='14'>Monster level: (0 - 40)</text>
|
|
<field name='level' top='82' left='206' width='52' height='16'/>
|
|
|
|
<text top='107' left='8' width='179' height='14'>Monster health: (0 - 2500)</text>
|
|
<field name='health' top='106' left='206' width='52' height='16'/>
|
|
|
|
<text top='131' left='8' width='179' height='14'>Monster armor: (0 - 50)</text>
|
|
<field name='armor' top='130' left='206' width='52' height='16'/>
|
|
|
|
<text top='155' left='8' width='179' height='14'>Monster skill: (0 - 40)</text>
|
|
<field name='skill' top='154' left='206' width='52' height='16'/>
|
|
|
|
<text top='179' left='8' width='179' height='14'>Monster speed: (1-12)</text>
|
|
<field name='speed' top='178' left='206' width='52' height='16'/>
|
|
|
|
<text top='203' left='8' width='179' height='14'>Monster magic spells: (0 - 7)</text>
|
|
<field name='mage' top='202' left='206' width='51' height='16'/>
|
|
|
|
<text top='227' left='8' width='179' height='14'>Monster priest spells: (0 - 7)</text>
|
|
<field name='priest' top='226' left='206' width='51' height='16'/>
|
|
|
|
<text size='large' top='82' left='273' width='158' height='16'>Hand to hand combat:</text>
|
|
<text top='102' left='343' width='72' height='40'>Number of dice:<br/>(0 - 20)</text>
|
|
<text top='102' left='403' width='72' height='40'>Number of sides:<br/>(1-50)</text>
|
|
<text top='128' left='470' width='56' height='14'>Type</text>
|
|
|
|
<text top='150' left='283' width='50' height='14'>Attack 1:</text>
|
|
<field name='dice1' top='149' left='350' width='52' height='16'/>
|
|
<field name='sides1' top='149' left='410' width='52' height='16'/>
|
|
<text name='type1' top='150' left='470' width='120' height='14'/>
|
|
<button name='picktype1' type='regular' top='146' left='525'>Choose</button>
|
|
|
|
<text top='174' left='283' width='50' height='14'>Attack 2:</text>
|
|
<field name='dice2' top='173' left='350' width='52' height='16'/>
|
|
<field name='sides2' top='173' left='410' width='52' height='16'/>
|
|
<text name='type2' top='174' left='470' width='120' height='14'/>
|
|
<button name='picktype2' type='regular' top='170' left='525'>Choose</button>
|
|
|
|
<text top='198' left='283' width='50' height='14'>Attack 3:</text>
|
|
<field name='dice3' top='197' left='350' width='52' height='16'/>
|
|
<field name='sides3' top='197' left='410' width='52' height='16'/>
|
|
<text name='type3' top='198' left='470' width='120' height='14'/>
|
|
<button name='picktype3' type='regular' top='194' left='525'>Choose</button>
|
|
|
|
<text top='253' left='8' width='120' height='14'>Monster type:</text>
|
|
<text name='type' top='253' left='134' width='120' height='14'/>
|
|
<button name='picktype' type='regular' top='250' left='264'>Choose</button>
|
|
|
|
<text top='278' left='8' width='120' height='14'>Default talking picture:</text>
|
|
<field name='talk' top='276' left='138' width='77' height='16'/>
|
|
<pict name='talkpic' type='talk' num='0' top='276' left='226'/>
|
|
<button name='picktalk' type='regular' top='275' left='264'>Choose</button>
|
|
|
|
<text top='250' left='343' width='162' height='14'>Monster treasure: (0-4)</text>
|
|
<field name='treas' top='248' left='513' width='55' height='16'/>
|
|
|
|
<text top='275' left='343' width='302' height='14'>Default attitude:<br/>
|
|
(attitude creature has when you place it)
|
|
</text>
|
|
<group name='attitude'>
|
|
<led name='docile' top='304' left='358'>Friendly, Docile</led>
|
|
<led name='A' top='319' left='358'>Hostile, Type A</led>
|
|
<led name='friendly' top='304' left='490'>Friendly, Will Fight</led>
|
|
<led name='B' top='319' left='490'>Hostile, Type B</led>
|
|
</group>
|
|
|
|
<text top='335' left='8' width='150' height='16'>Summoned by these spells:</text>
|
|
<text name='summons' font='plain' size='small' framed='true' top='337' left='160' width='340' height='14'/>
|
|
|
|
<text top='358' left='8' width='320' height='40'>
|
|
Enter properties for this monster type.
|
|
For a detailed description of the fields, see the documentation.
|
|
To edit monster's special abilities, press the Edit Abilities button.
|
|
</text>
|
|
|
|
<button name='preview' type='regular' top='8' left='600'>Preview</button>
|
|
<button name='abils' type='large' top='337' left='561'>Abilities</button>
|
|
<button name='okay' type='regular' top='367' left='600'>OK</button>
|
|
<button name='cancel' type='regular' top='367' left='527'>Cancel</button>
|
|
<button name='left' type='left' top='367' left='335'/>
|
|
<button name='right' type='right' top='367' left='398'/>
|
|
</dialog>
|