Move Set Town Start to Town menu and make it work the same as Set Out Start

- Also fix problem with initial starting town in new scenarios (it was uninitialized)
This commit is contained in:
2015-09-27 14:50:00 -04:00
parent 66efa9cb62
commit 1222cb57f5
11 changed files with 36 additions and 102 deletions

View File

@@ -1,14 +0,0 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='okay'>
<button name='okay' type='regular' top='103' left='251'>OK</button>
<button name='cancel' type='regular' def-key='esc' top='103' left='186'>Cancel</button>
<pict type='dlog' num='16' top='6' left='6'/>
<text top='6' left='49' width='270' height='54'>
You are about to set this location at the parties outdoor starting location.
When the party starts the scenario and leaves the town they start in, this is where they will be.
</text>
<text top='61' left='49' width='268' height='39'>
To set the town the party starts in, use the Set Starting Location option in the Scenario menu.
</text>
</dialog>

View File

@@ -1,24 +0,0 @@
<?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-num' top='77' left='181' width='43' height='16'/>
<field name='town-x' top='104' left='181' width='43' height='16'/>
<field name='town-y' top='104' left='280' width='43' height='16'/>
<button name='okay' type='regular' top='185' left='359'>OK</button>
<pict type='dlog' num='16' top='8' left='8'/>
<text top='25' left='50' width='371' height='41'>
Enter the town the party will start the scenario in.
Also enter the x-y location in the town to place the party at.
Don't forget to place that town somewhere in your scenario.
</text>
<text size='large' top='6' left='50' width='256' height='17'>Starting Location</text>
<text top='105' left='50' width='120' height='14'>Start location: X =</text>
<text top='105' left='232' width='39' height='14'>Y =</text>
<button name='cancel' type='regular' top='185' left='293'>Cancel</button>
<text top='129' left='51' width='372' height='55'>
NOTE: You also need to set the starting location outdoors.
This is where the party ends up when they leave town for the first time.
To set this, use the Set Starting Location option in the outdoors menu.
</text>
</dialog>

View File

@@ -91,7 +91,6 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "&Scenario Details", IDM_SCEN_DETAILS
MENUITEM "Scenario Intr&o Text", IDM_SCEN_INTRO
MENUITEM "Set Starting &Location", IDM_SCEN_START
MENUITEM "Edit Custom Graphic Sheets", IDM_SCEN_CUSTOM_SHEETS
MENUITEM "Classify Custom &Graphics", IDM_SCEN_CUSTOM_PICS
MENUITEM "Edit Custom Sounds", IDM_SCEN_CUSTOM_SNDS
@@ -125,6 +124,7 @@ BEGIN
MENUITEM "Remo&ve Terrain Frills", IDM_TOWN_UNFRILL
MENUITEM "Edit &Area Descriptions", IDM_TOWN_AREAS
MENUITEM SEPARATOR
MENUITEM "Set Starting &Location", IDM_SCEN_START
MENUITEM "Add Rand&om Items", IDM_TOWN_RANDOM_ITEMS
MENUITEM "Set All Items Not Propert&y", IDM_TOWN_NOT_PROPERTY
MENUITEM "Clear All &Items", IDM_TOWN_CLEAR_ITEMS

View File

@@ -3,12 +3,12 @@
<data>
<int key="IBDocument.SystemTarget">1070</int>
<string key="IBDocument.SystemVersion">11G63</string>
<string key="IBDocument.InterfaceBuilderVersion">2844</string>
<string key="IBDocument.InterfaceBuilderVersion">3084</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2844</string>
<string key="NS.object.0">3084</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>NSCustomObject</string>
@@ -382,14 +382,6 @@
<reference key="NSOnImage" ref="229763992"/>
<reference key="NSMixedImage" ref="909111550"/>
</object>
<object class="NSMenuItem" id="646438288">
<reference key="NSMenu" ref="399390342"/>
<string key="NSTitle">Set Starting Location</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="229763992"/>
<reference key="NSMixedImage" ref="909111550"/>
</object>
<object class="NSMenuItem" id="1072664025">
<reference key="NSMenu" ref="399390342"/>
<string key="NSTitle">Edit Custom Graphic Sheets</string>
@@ -618,6 +610,14 @@
<reference key="NSOnImage" ref="229763992"/>
<reference key="NSMixedImage" ref="909111550"/>
</object>
<object class="NSMenuItem" id="646438288">
<reference key="NSMenu" ref="61689393"/>
<string key="NSTitle">Set Starting Location</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="229763992"/>
<reference key="NSMixedImage" ref="909111550"/>
</object>
<object class="NSMenuItem" id="1038227897">
<reference key="NSMenu" ref="61689393"/>
<string key="NSTitle">Add Random Items</string>
@@ -1262,7 +1262,6 @@
<array class="NSMutableArray" key="children">
<reference ref="142725490"/>
<reference ref="610226442"/>
<reference ref="646438288"/>
<reference ref="547366333"/>
<reference ref="799771914"/>
<reference ref="1007446984"/>
@@ -1322,6 +1321,7 @@
<reference ref="654574897"/>
<reference ref="156465632"/>
<reference ref="2020849"/>
<reference ref="646438288"/>
</array>
<reference key="parent" ref="12009264"/>
</object>
@@ -1368,11 +1368,6 @@
<reference key="object" ref="610226442"/>
<reference key="parent" ref="399390342"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">805</int>
<reference key="object" ref="646438288"/>
<reference key="parent" ref="399390342"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">806</int>
<reference key="object" ref="547366333"/>
@@ -1663,6 +1658,11 @@
<reference key="object" ref="327378958"/>
<reference key="parent" ref="399390342"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">805</int>
<reference key="object" ref="646438288"/>
<reference key="parent" ref="61689393"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">