Merge the two scenario selection dialogs

Now both preset and custom scenarios are joined using the "Start Scenario" button.
Preset scenarios still get special treatment.
This commit is contained in:
2020-02-25 21:08:29 -05:00
parent 49d88c76e2
commit 093be0d99a
7 changed files with 182 additions and 176 deletions

View File

@@ -1,18 +1,51 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='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' def-key='esc' top='294' left='337'>Cancel</button>
<pict type='dlog' num='16' top='10' left='10'/>
<button name='next' type='left' def-key='left' top='294' left='62'/>
<button name='prev' type='right' def-key='right' top='294' left='125'/>
<text size='large' top='6' left='58' width='199' height='52'>Your scenarios:</text>
<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 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 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 name='start3' top='205' left='59' width='342' height='84'/>
</dialog>