Implement customizable background patterns to be displayed behind the game interface based on which town/sector the player is in and whether they are in combat mode, with cascading defaults.

- All the hard-coded background changes are no longer present and not even preserved.
This commit is contained in:
2015-01-26 18:39:35 -05:00
parent a3c998eaad
commit 91c52fca77
19 changed files with 239 additions and 49 deletions

View File

@@ -0,0 +1,33 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<!--<!DOCTYPE dialog SYSTEM "dialog.dtd">-->
<dialog defbtn='done'>
<pict type='dlog' num='16' top='8' left='8'/>
<text name='title' size='large' top='6' left='50' width='256' height='14'>Select background pattern:</text>
<group name='group'>
<led name='led1' top='54' left='8' width='180'>Dark grey stone</led>
<led name='led2' top='69' left='8' width='180'>Black texture</led>
<led name='led3' top='84' left='8' width='180'>Grey stone with blue veins</led>
<led name='led4' top='99' left='8' width='180'>Pink stone with white veins</led>
<led name='led5' top='114' left='8' width='180'>Rough dark grey stone</led>
<led name='led6' top='129' left='8' width='180'>Black stone / Basalt</led>
<led name='led7' top='144' left='8' width='180'>White stone / Chalk</led>
<led name='led8' top='159' left='8' width='180'>Text bar pattern</led>
<led name='led9' top='174' left='8' width='180'>Wood mosaic / parquet floor</led>
<led name='led10' top='189' left='8' width='180'>Dark / petrified wood</led>
<led name='led11' top='204' left='8' width='180'>Medium stone / Granite</led>
<led name='led12' top='54' left='216' width='180'>Checkerboard</led>
<led name='led13' top='69' left='216' width='180'>Grey marble</led>
<led name='led14' top='84' left='216' width='180'>Mosaic tiles</led>
<led name='led15' top='99' left='216' width='180'>Veined rock / Marble</led>
<led name='led16' top='114' left='216' width='180'>Pitted / Laye#088 stone</led>
<led name='led17' top='129' left='216' width='180'>Light grey stone</led>
<led name='led18' top='144' left='216' width='180'>White marble</led>
<led name='led19' top='159' left='216' width='180'>Reddish-grey texture</led>
<led name='led20' top='174' left='216' width='180'>Light wood grain</led>
<led name='led21' top='189' left='216' width='180'>Sandstone</led>
</group>
<button name='done' type='regular' top='223' left='338'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='223' left='272'>Cancel</button>
</dialog>

View File

@@ -3,7 +3,7 @@
<dialog skin='light' defbtn='okay' debug='true'>
<!-- OK button -->
<field name='name' top='51' left='162' width='151' height='16'/>
<button name='okay' type='regular' top='197' left='354'>OK</button>
<button name='okay' type='regular' top='295' left='354'>OK</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text size='large' top='6' left='50' width='256' height='17'>Outdoors Details</text>
<text top='53' left='50' width='101' height='14'>Section name:</text>
@@ -11,13 +11,25 @@
<text name='loc' top='29' left='142' width='127' height='14'/>
<text top='85' left='50' width='100' height='16'>Ambient Sound:</text>
<group name='ambient'>
<led name='snd1' top='85' left='150' width='50'>None</led>
<led name='snd2' top='85' left='210' width='50'>Drips</led>
<led name='snd3' top='85' left='270' width='50'>Birdsong</led>
<led name='snd1' top='85' left='150' width='40'>None</led>
<led name='snd2' top='85' left='210' width='40'>Drips</led>
<led name='snd3' top='85' left='270' width='60'>Birdsong</led>
<led name='snd4' top='85' left='350' width='50'>Custom</led>
</group>
<text top='106' left='50' width='101' height='90'>Comment:<br/><br/>
<text top='106' left='50' width='190' height='16'>Background: (-1 = scenario default)</text>
<field name='bg-out' top='104' left='250' width='80' height='16'/>
<button name='pick-out' type='regular' top='101' left='340'>Choose</button>
<text top='130' left='50' width='190' height='16'>Combat Background:</text>
<field name='bg-fight' top='128' left='250' width='80' height='16'/>
<button name='pick-fight' type='regular' top='125' left='340'>Choose</button>
<text top='154' left='50' width='190' height='16'>Default Town Background:</text>
<field name='bg-town' top='152' left='250' width='80' height='16'/>
<button name='pick-town' type='regular' top='149' left='340'>Choose</button>
<text top='178' left='50' width='190' height='16'>Default Dungeon Background:</text>
<field name='bg-dungeon' top='176' left='250' width='80' height='16'/>
<button name='pick-dungeon' type='regular' top='173' left='340'>Choose</button>
<text top='204' left='50' width='101' height='90'>Comment:<br/><br/>
You can put useful notes for yourself here. It's not used by the game for anything.
</text>
<field name='comment' top='104' left='162' width='251' height='80'/>
<field name='comment' top='204' left='162' width='251' height='80'/>
</dialog>

View File

@@ -7,7 +7,7 @@
<field name='who1' top='104' left='181' width='243' height='47'/>
<field name='who2' top='159' left='181' width='243' height='47'/>
<field name='contact' top='214' left='181' width='243' height='65'/>
<button name='okay' type='regular' top='446' left='395'>OK</button>
<button name='okay' type='regular' top='500' left='395'>OK</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text top='23' left='50' width='372' height='53'>
This is where you can define the various pieces of information the user will see when deciding whether or not to play your scenario.
@@ -43,4 +43,11 @@
the ID specified here makes it easy to carry information from one scenario to the next.
It should be the same in each scenario in the series.
</text>
<text top='456' left='50' width='120' height='60'>Default backgrounds:<br/>
Set the default patterns to be shown behind the game screen.
</text>
<button name='bg-out' type='tiny' top='456' left='180' width='100'>Outdoors:</button>
<button name='bg-town' type='tiny' top='473' left='180' width='100'>In towns:</button>
<button name='bg-dungeon' type='tiny' top='490' left='180' width='100'>In dungeons:</button>
<button name='bg-fight' type='tiny' top='507' left='180' width='100'>In combat:</button>
</dialog>

View File

@@ -52,6 +52,10 @@
<text top='313' left='259' width='49' height='15'>Right</text>
<text top='212' left='331' width='35' height='15'>X</text>
<text top='212' left='379' width='40' height='15'>Y</text>
<button name='pick-town' type='tiny' top='276' left='30' width='120'>Town Background:</button>
<field name='bg-town' top='274' left='160' width='80' height='16'/>
<button name='pick-fight' type='tiny' top='302' left='30' width='120'>Combat Background:</button>
<field name='bg-fight' top='298' left='160' width='80' height='16'/>
<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?