Tweak New Scenario dialog and add Save As option

- You now specify your name instead of the scenario filename in the first dialog
- A file dialog pops up after the second dialog, to let you choose the filename and location
- Fixed using Warrior's Grove even if you chose not to
- Fixed not recognizing .EXS as a valid legacy-scenario extension and appending .boes, resulting in .EXS.boes
- Adjust Difficulty scenario flag set on by default
This commit is contained in:
2015-06-24 14:42:22 -04:00
parent 0bb34130c3
commit 2951e0228c
13 changed files with 117 additions and 67 deletions

View File

@@ -2,13 +2,12 @@
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='light' defbtn='okay' debug='true'>
<field name='name' top='34' left='351' width='125' height='32'>Scenario name</field>
<field name='file' top='96' left='351' width='125' height='16'>filename</field>
<field name='author' top='96' left='351' width='125' height='16'>Your name</field>
<button name='okay' type='regular' top='205' left='424'>OK</button>
<text size='large' top='6' left='50' width='194' height='14'>Create a new scenario:</text>
<text top='76' left='52' width='292' height='56'>
What is the file name for your new scenario?
(max. length 8 characters, letters only) <br/>
Examples: thorham, dragonq
What is your name, for crediting purposes? <br/>
This will be stored in the scenario but cannot easily be changed later.
</text>
<text top='32' left='52' width='292' height='40'>
What is the name of your new scenario?

View File

@@ -222,6 +222,15 @@
<reference key="NSOnImage" ref="229763992"/>
<reference key="NSMixedImage" ref="909111550"/>
</object>
<object class="NSMenuItem" id="1044668105">
<reference key="NSMenu" ref="720053764"/>
<string key="NSTitle">Save as…</string>
<string key="NSKeyEquiv">S</string>
<int key="NSKeyEquivModMask">1048576</int>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="229763992"/>
<reference key="NSMixedImage" ref="909111550"/>
</object>
<object class="NSMenuItem" id="579971712">
<reference key="NSMenu" ref="720053764"/>
<string key="NSTitle">Revert to Saved</string>
@@ -1026,6 +1035,7 @@
<reference ref="776162233"/>
<reference ref="425164168"/>
<reference ref="579971712"/>
<reference ref="1044668105"/>
</array>
<reference key="parent" ref="379814623"/>
</object>
@@ -1620,6 +1630,11 @@
<reference key="object" ref="368560496"/>
<reference key="parent" ref="399390342"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">890</int>
<reference key="object" ref="1044668105"/>
<reference key="parent" ref="720053764"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -1728,12 +1743,13 @@
<string key="887.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="888.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="889.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="890.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">889</int>
<int key="maxID">890</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>