- Introduce enum for step sounds - Remove union for treating terrain flags as either signed or unsigned Editor: - Add Choose button to select the "transform to" terrain. - Implement Choose buttons as appropriate for the terrain flags, including editing the special that a terrain calls. - Range-check the terrain flags. - Add Custom button to choose a town as the combat arena. - Fix/tweak/improve several of the terrain flag prompts. - Fix placing shortcut key in field as its ASCII code instead of the letter - Fix some of the range checks that were already in place but were incorrect or improperly static Game: - The wilderness terrain types now allow specifying how many d6's of food you get when hunting there. - Crumbling terrain uses flag 2 instead of 3 to determine method (flag 2 was supposed to be strength but was never used) - Merge two functions that did almost exactly the same thing (namely altering a terrain space and potentially updating conveyor/lights info) - Merge switch_level into handle_lever since it was the only place it was called - Remove global store_special_loc; the location is stored in the stuff_done array now - Change when use/step on terrains will now update lighting if they changed to a terrain with a different light level - Terrains that call a special no longer support mixed global/local modes - they either always call a local special or always call a global special - Use previously unused swap_ter function (which did the exact same thing as the swap terrain special node) Dialog Engine: - Don't "erase" invisible icons or buttons; it's not necessary, since the entire window is filled with background before the draw() method is called, and it causes problems in case of overlapping elements.
107 lines
7.6 KiB
XML
107 lines
7.6 KiB
XML
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
|
|
<!--<!DOCTYPE dialog SYSTEM "dialog.dtd">-->
|
|
<dialog skin='light' fore='black' debug='true' defbtn='done'>
|
|
<!--
|
|
TODO: Assign numeric types (type = 'int' or 'uint') to fields as appropriate
|
|
-->
|
|
<text size='large' top='6' left='50' height='17' width='138'>Edit Terrain Type</text>
|
|
<pict name='graphic' type='ter' num='0' top='8' left='8'/>
|
|
<text top='8' left='222' height='14' width='111'>Terrain number:</text>
|
|
<text name='number' top='8' left='340' height='14' width='37'>*num</text>
|
|
<text top='31' left='50' height='14' width='120'>Terrain type name:</text>
|
|
<field name='name' top='30' left='186' height='16' width='186'/>
|
|
<text top='63' left='9' height='14' width='120'>Terrain picture:</text>
|
|
<field name='pict' top='62' left='141' height='16' width='52' />
|
|
<button name='pickpict' type='large' top='59' left='205'>Pick Picture</button>
|
|
<button name='pickanim' type='large' top='59' left='319'>Animated</button>
|
|
<text top='90' left='8' height='14' width='120'>Terrain blockage:</text>
|
|
<group name='blockage'>
|
|
<led name='clear' top='90' left='132' state='off' width='120'>Clear</led>
|
|
<led name='curtain' top='107' left='132' state='off' width='120'>Walk through, opaque</led>
|
|
<led name='special' top='124' left='132' state='off' width='120'>Clear, special</led>
|
|
<led name='window' top='90' left='293' state='off' width='120'>Clear, blocked</led>
|
|
<led name='obstructed' top='107' left='293' state='off' width='120'>Blocked, obstructed</led>
|
|
<led name='opaque' top='124' left='293' state='off' width='120'>Blocked, opaque</led>
|
|
</group>
|
|
<led name='flight' top='150' left='26' state='off' width='120' font='bold'>Can fly over?</led>
|
|
<led name='boat' top='150' left='154' state='off' width='120' font='bold'>Can boat over?</led>
|
|
<led name='horse' top='150' left='307' state='off' width='120' font='bold'>Blocked to horses?</led>
|
|
<text top='165' left='8' height='14' width='91'>Step sound:</text>
|
|
<group name='sound'>
|
|
<led name="step" top='167' left='102' state='off' width='60'>Footstep</led>
|
|
<led name="squish" top='167' left='186' state='off' width='60'>Squish</led>
|
|
<led name="crunch" top='167' left='282' state='off' width='60'>Crunch</led>
|
|
<led name="nosound" top='167' left='386' state='off' width='60'>Silence</led>
|
|
<led name="splash" top='167' left='497' state='off' width='60'>Big Splash</led>
|
|
</group>
|
|
<text top='194' left='8' height='14' width='91'>Shortcut key:</text>
|
|
<field name='key' top='193' left='109' height='16' width='52' />
|
|
<text top='194' left='171' height='14' width='91'>Light radius:</text>
|
|
<field name='light' top='193' left='271' height='16' width='52' />
|
|
<text top='193' left='333' height='14' width='128'>Transform to what?</text>
|
|
<field name='trans' top='193' left='467' height='16' width='52' />
|
|
<button name='picktrans' top='190' left='530' type='regular'>Choose</button>
|
|
|
|
<text top='217' left='8' height='14' width='91'>Ground type:</text>
|
|
<field name='ground' top='216' left='109' height='16' width='52' />
|
|
<text top='217' left='171' height='14' width='91'>Trim terrain:</text>
|
|
<field name='trimter' top='216' left='271' height='16' width='52' />
|
|
<text top='217' left='333' height='14' width='128'>Trim type:</text>
|
|
<field name='trim' top='216' left='467' height='16' width='52' />
|
|
<button name='picktrim' top='213' left='530' type='regular'>Choose</button>
|
|
|
|
<text size='large' top='238' left='8' height='14' width='175'>Special properties:</text>
|
|
<group name="prop">
|
|
<led name='prop0' top='254' left='8' state='off' width='116'>None</led>
|
|
<led name='prop1' top='269' left='8' state='off' width='116'>Change when step on</led>
|
|
<led name='prop2' top='284' left='8' state='off' width='116'>Damaging terrain</led>
|
|
<led name='prop3' top='299' left='8' state='off' width='116'>Is a bridge</led>
|
|
<led name='prop4' top='314' left='8' state='off' width='116'>Change while occupied</led>
|
|
<led name='prop5' top='329' left='8' state='off' width='116'>Dangerous terrain</led>
|
|
<led name='prop6' top='344' left='8' state='off' width='116'>Reserved</led>
|
|
<led name='prop7' top='359' left='8' state='off' width='116'>Crumbling terrain</led>
|
|
<led name='prop8' top='254' left='146' state='off' width='116'>Lockable terrain</led>
|
|
<led name='prop9' top='269' left='146' state='off' width='116'>Unlockable terrain</led>
|
|
<led name='prop10' top='284' left='146' state='off' width='116'>Reserved</led>
|
|
<led name='prop11' top='299' left='146' state='off' width='116'>Is a sign</led>
|
|
<led name='prop12' top='314' left='146' state='off' width='116'>Call special when step</led>
|
|
<led name='prop13' top='329' left='146' state='off' width='116'>Reserved</led>
|
|
<led name='prop14' top='344' left='146' state='off' width='116'>Is a container</led>
|
|
<led name='prop15' top='359' left='146' state='off' width='116'>Wilderness (Caves)</led>
|
|
<led name='prop16' top='254' left='285' state='off' width='116'>Wilderness (Surface)</led>
|
|
<led name='prop17' top='269' left='285' state='off' width='116'>Waterfall (Caves)</led>
|
|
<led name='prop18' top='284' left='285' state='off' width='116'>Waterfall (Surface)</led>
|
|
<led name='prop19' top='299' left='285' state='off' width='116'>Conveyor Belt</led>
|
|
<led name='prop20' top='314' left='285' state='off' width='116'>Blocked to monsters</led>
|
|
<led name='prop21' top='329' left='285' state='off' width='116'>Town entrance</led>
|
|
<led name='prop22' top='344' left='285' state='off' width='116'>Change when used</led>
|
|
<led name='prop23' top='359' left='285' state='off' width='116'>Call special when used</led>
|
|
</group>
|
|
<text top='385' left='9' height='14' width='91'>Extra values:</text>
|
|
<text name='flag1text' framed='true' top='385' left='109' height='14' width='209'>*flag1</text>
|
|
<field name='flag1' top='384' left='329' height='16' width='64' />
|
|
<button name='pickflag1' top='381' left='404' type='regular'>Choose</button>
|
|
<button name='editspec' top='381' left='404' type='large'>Create/Edit</button>
|
|
<text name='flag2text' framed='true' top='410' left='109' height='14' width='209'>*flag2</text>
|
|
<field name='flag2' top='409' left='329' height='16' width='64' />
|
|
<button name='pickflag2' top='406' left='404' type='regular'>Choose</button>
|
|
<text name='flag3text' framed='true' top='435' left='109' height='14' width='209'>*flag3</text>
|
|
<field name='flag3' top='434' left='329' height='16' width='64' />
|
|
<button name='pickflag3' top='431' left='404' type='regular'>Choose</button>
|
|
|
|
<text top='254' left='467' height='14' width='100'>Combat Arena:</text>
|
|
<field name='arena' top='275' left='467' height='16' width='64'/>
|
|
<button name='pickarena' type='regular' top='299' left='467'>Choose</button>
|
|
<button name='picktown' type='regular' top='299' left='532'>Custom</button>
|
|
<button name='object' top='344' left='467' type='large'>Object Details</button>
|
|
<text top='410' left='470' width='60' height='14'>Map icon:</text>
|
|
<pict name='seemap' top='400' left='550' type='map' num='0'/>
|
|
<field name='map' top='431' left='475' width='100' height='16'/>
|
|
<button name='done' type='regular' def-key='enter' top='455' left='517'>OK</button>
|
|
<button name='cancel' type='regular' def-key='esc' top='455' left='451'>Cancel</button>
|
|
<button name='left' type='left' top='455' left='11'/>
|
|
<button name='right' type='right' top='455' left='74'/>
|
|
<text top='7' left='451' height='131' width='137'>Enter properties for this terrain type. For a detailed description of the fields, see the documentation. Note that, for terrain types 90 and below, only changes to the picture and shortcut key will be recorded.</text>
|
|
<button name='help' type='help' def-key='/' key-mod='shift' top='5' left='588'/>
|
|
</dialog> |