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.
53 lines
2.7 KiB
XML
53 lines
2.7 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'>
|
|
<text size='large' top='9' left='130' width='126' height='17'>Start a Scenario:</text>
|
|
<stack name='list'>
|
|
<page>
|
|
<!-- Prefab scenarios -->
|
|
<pict type='scen' size='large' num='0' top='42' left='10'/>
|
|
<text framed='true' top='34' left='81' width='292' height='80'>
|
|
The Valley of Dying Things
|
|
- Easy Difficulty<br/>
|
|
The crops have withered, the children are dying, and even the water burns.
|
|
Can you find the source of the sickness before the entire valley dies?
|
|
</text>
|
|
<text name='scen1' top='33' left='11' width='367' height='81'/>
|
|
<pict type='scen' size='large' num='1' top='129' left='10'/>
|
|
<text framed='true' top='121' left='81' width='292' height='80'>
|
|
A Small Rebellion
|
|
- Medium Difficulty<br/>
|
|
The enemy - a secret band of deadly rebels.
|
|
The job - infiltrate them, win their trust, and find their leader.
|
|
The question - are you fighting on the right side?
|
|
</text>
|
|
<text name='scen2' top='121' left='10' width='368' height='80'/>
|
|
<pict type='scen' size='large' num='2' top='216' left='10'/>
|
|
<text framed='true' top='208' left='81' width='292' height='80'>
|
|
The Za-Khazi Run
|
|
- Hard Difficulty<br/>
|
|
A fortress is under siege, and only you can get them the weapons they need to survive.
|
|
You have 20 days to find your way through the nastiest caves in Exile, or all will be lost.
|
|
</text>
|
|
<text name='scen3' top='208' left='10' width='368' height='80'/>
|
|
</page>
|
|
<page default='true' template='scenarios'>
|
|
<!-- Custom scenarios -->
|
|
<pict type='dlog' num='16' top='10' left='10'/>
|
|
<pict name='pic1' type='scen' num='0' top='58' left='62'/>
|
|
<text name='desc1' framed='true' top='34' left='104' width='292' height='80'/>
|
|
<text outline='double' name='start1' top='32' left='59' width='342' height='84'/>
|
|
<pict name='pic2' type='scen' num='0' top='145' left='62'/>
|
|
<text name='desc2' framed='true' top='121' left='104' width='292' height='80'/>
|
|
<text outline='double' name='start2' top='118' left='59' width='342' height='84'/>
|
|
<pict name='pic3' type='scen' num='0' top='232' left='62'/>
|
|
<text name='desc3' framed='true' top='208' left='104' width='292' height='80'/>
|
|
<text outline='double' name='start3' top='205' left='59' width='342' height='84'/>
|
|
</page>
|
|
</stack>
|
|
<button name='prev' type='left' def-key='left' top='294' left='62'/>
|
|
<button name='next' type='right' def-key='right' top='294' left='125'/>
|
|
<button name='cancel' type='regular' top='294' left='337'>Cancel</button>
|
|
</dialog>
|