Get the scenario, town, and outdoor details dialogs updated for new stuff

- Advanced town details now offers edit buttons to edit the specials immediately

Changes to dialog engine:
- Fix tiny buttons stretching to fill label area
- Fix LEDs stretching if label area is higher than LED button
- Fix LEDs ignoring font setting
This commit is contained in:
2015-01-21 15:59:09 -05:00
parent 2a2e7068d0
commit 41fbd73ef9
13 changed files with 123 additions and 85 deletions

View File

@@ -6,8 +6,9 @@
<field name='onexit2' top='105' left='308' width='67' height='16'/>
<field name='onexit3' top='77' left='440' width='67' height='16'/>
<field name='onexit4' top='105' left='440' width='67' height='16'/>
<field name='onenter' top='142' left='405' width='67' height='16'/>
<field name='onenterdead' top='170' left='405' width='67' height='16'/>
<field name='onenter' top='134' left='405' width='67' height='16'/>
<field name='onenterdead' top='162' left='405' width='67' height='16'/>
<field name='onhostile' top='190' left='405' width='67' height='16'/>
<field name='exit1-x' top='231' left='323' width='39' height='16'/>
<field name='exit1-y' top='231' left='371' width='39' height='16'/>
<field name='exit2-x' top='258' left='323' width='39' height='16'/>
@@ -16,8 +17,8 @@
<field name='exit3-y' top='285' left='371' width='39' height='16'/>
<field name='exit4-x' top='312' left='323' width='39' height='16'/>
<field name='exit4-y' top='312' left='371' width='39' height='16'/>
<button name='okay' type='regular' top='367' left='452'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='367' left='386'>Cancel</button>
<button name='okay' type='regular' top='380' left='452'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='380' left='386'>Cancel</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='256' height='17'>Advanced town details</text>
<text top='25' left='50' width='439' height='40'>
@@ -32,30 +33,31 @@
</text>
<text top='134' left='50' width='202' height='66'>
Town entry special node:
(Enter the number of the town special node to call if the party enters the town when its still alive, and/or when its been abandoned.)
(Enter the number of the town special node to call if the party enters the town when it's still alive, and/or when it's been abandoned.)
</text>
<text top='68' left='50' width='197' height='64'>
Exit town specials:
(These are the numbers of the town special nodes to call when the party tries to leave town in the given direction.)
</text>
<text top='143' left='259' width='137' height='15'>Still alive</text>
<text top='170' left='259' width='137' height='15'>Been abandoned</text>
<text top='77' left='250' width='49' height='15'>Top</text>
<text top='105' left='251' width='49' height='15'>Left</text>
<text top='77' left='381' width='53' height='15'>Bottom</text>
<text top='105' left='382' width='49' height='15'>Right</text>
<button name='edit-onenter' type='tiny' top='135' left='259' width='120' height='15'>Still alive</button>
<button name='edit-onenterdead' type='tiny' top='162' left='259' width='120' height='15'>Been abandoned</button>
<button name='edit-onhostile' type='tiny' top='189' left='259' width='120' height='15'>When Goes Hostile</button>
<button name='edit-onexit1' type='tiny' top='81' left='251' width='49' height='15'>Top</button>
<button name='edit-onexit2' type='tiny' top='109' left='251' width='49' height='15'>Left</button>
<button name='edit-onexit3' type='tiny' top='81' left='382' width='53' height='15'>Bottom</button>
<button name='edit-onexit4' type='tiny' top='109' left='382' width='49' height='15'>Right</button>
<text top='232' left='257' width='49' height='15'>Top</text>
<text top='259' left='258' width='49' height='15'>Left</text>
<text top='285' left='258' width='53' height='15'>Bottom</text>
<text top='313' left='259' width='49' height='15'>Right</text>
<text top='207' left='331' width='35' height='15'>X</text>
<text top='207' left='379' width='40' height='15'>Y</text>
<!--
TODO: Move this LED label into the LED element.
-->
<text top='336' left='50' width='320' height='27'>
<text top='212' left='331' width='35' height='15'>X</text>
<text top='212' left='379' width='40' height='15'>Y</text>
<text top='319' left='50' width='100' height='16'>Town Properties:</text>
<led name='hidden' font='plain' top='336' left='50' width='450'>
Town hidden?
(This town cannot be seen until its made visible with a special encounter.)
</text>
<led name='hidden' top='342' left='373'/>
(This town cannot be seen until it's made visible with a special encounter.)
</led>
<led name='nomap' font='plain' top='353' left='50' width='200'>No automap in this town</led>
<led name='noscry' font='plain' top='370' left='50' width='200'>Defy scrying (Magic Map doesn't work)</led>
<led name='barrier' font='plain' top='387' left='50' width='220'>Magical barriers are stronger in this town</led>
</dialog>