Convert the last of the scenario editor dialogs

This commit is contained in:
2014-12-28 10:47:25 -05:00
parent 022571afe8
commit 5bbda27a1c
7 changed files with 124 additions and 130 deletions

40
rsrc/dialogs/new-town.xml Normal file
View File

@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<!-- OK Button -->
<field name='name' top='85' left='140' width='152' height='16'>Town name</field>
<button name='okay' type='regular' top='221' left='264'>OK</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='256' height='17'>Create New Town</text>
<text top='86' left='50' width='84' height='14'>Town name:</text>
<text top='111' left='50' width='77' height='14'>Town size:</text>
<!--
TODO: Move these LED labels into the LED elements
-->
<text top='111' left='145' width='139' height='14'>Large (64x64)</text>
<text top='128' left='145' width='139' height='14'>Medium (48x48)</text>
<text top='145' left='145' width='139' height='14'>Small (32x32)</text>
<group name='size'>
<led name='lg' top='114' left='301' state='red'/>
<led name='med' top='131' left='301'/>
<led name='sm' top='148' left='301'/>
</group>
<text top='164' left='51' width='105' height='14'>Preset terrain:</text>
<!--
TODO: Move these LED labels into the LED elements. Or better yet, put a field and a Choose button so they can pick any base terrain they want.
-->
<text top='164' left='168' width='100' height='15'>Just cave floor</text>
<text top='181' left='168' width='102' height='15'>Plain Grass</text>
<text top='198' left='168' width='127' height='15'>Grass with flowers</text>
<group name='preset'>
<led name='cave' top='167' left='301' state='red'/>
<led name='grass' top='184' left='301'/>
<led name='flowers' top='201' left='301'/>
</group>
<text top='28' left='50' width='147' height='14'>Creating town number:</text>
<text name='num' top='28' left='201' width='33' height='14'/>
<button name='cancel' type='regular' def-key='esc' top='221' left='199'>Cancel</button>
<text top='49' left='66' width='260' height='28'>
Note: Your new town will be tacked onto the end of your current town list.
</text>
</dialog>

View File

@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='save'>
<button name='save' type='regular' top='43' left='240'>Save</button>
<button name='cancel' type='regular' def-key='esc' top='43' left='175'>Cancel</button>
<button name='revert' type='regular' top='43' left='109'>Open</button>
<pict type='dlog' num='16' top='6' left='6'/>
<text top='6' left='49' width='256' height='32'>
Save changes to your scenario before loading a new one?
</text>
</dialog>

View File

@@ -0,0 +1,20 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<!-- OK Button -->
<field name='town' top='148' left='224' width='52' height='16'/>
<button name='okay' type='regular' top='181' left='278'>OK</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='175' height='17'>Importing a town</text>
<text name='prompt' top='143' left='50' width='162' height='27'>What town do you wish to import?</text>
<text top='27' left='50' width='301' height='54'>
Enter a town number and hit OK, and you will be asked to select a scenario file.
The town with that number in the selected scenario will then be loaded in over the current town.
</text>
<button name='cancel' type='regular' def-key='esc' top='181' left='212'>Cancel</button>
<text top='83' left='50' width='301' height='54'>
Warning: This will write over the town currently in memory.
Also, the town you select must be the same size (large/medium/small) as the town currently in memory.
</text>
<button name='choose' type='regular' top='146' left='281'>Choose</button>
</dialog>