Tear out most of the legacy code in the PC editor - see below for details

(Scenario Editor is unaffected by this commit.)

- Menubar converted to a .xib file
- Don't include the Info.plist in "Copy Files" stage
- Several more dialogs converted; as before, the source resources have had their resource name changed to the new filename
- One more converted STR# has been included

There were several functions in the PC Editor code that also existed in the BoE game code. I've moved these into the pc.editors.cpp file, so that there's only one copy of each.
- display_alchemy() functions changed signatures
- moved keyToChar() function into a common file (winutil)
- Several constants and globals moved to pc.editors.cpp

Supporting changes to dialog framework:
- New formatting option to set the frame style; this because the PC editor uses a different frame style in some contexts
- Added global default dialog background setting
--> This was necessary to correctly set the default text colour
--> Will also be needed for the scenario editor, which uses a different default background

Other changes:
- Add option to load_scenario to skip loading the strings
- Fix for crash in soundtool in the event of initialization before playing the first sound
This commit is contained in:
2014-04-16 17:07:08 -04:00
parent 76b103a751
commit caa461f8e7
53 changed files with 2838 additions and 2423 deletions

View File

@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='dark' defbtn='okay'>
<!--
TODO: This dialog contains out-of-date information
-->
<button name='okay' type='regular' top='260' left='431'>OK</button>
<pict top='6' left='6' type='dlog' num='16'/>
<text top='6' left='50' width='338' height='34'>
Blades of Exile Character Editor v1.0.1 <br/>
Copyright 1997 Jeff Vogel, All rights reserved.
</text>
<text top='154' left='50' width='439' height='45'>
Blades of Exile (with the editor, hint book, and fully usable scenario editor) is $30.
For information on how to order, select 'How To Order' from the File menu.
</text>
<text top='200' left='50' width='368' height='32'>
Comments and questions?
The creators of Exile want to hear them.
Send them to:
</text>
<text top='233' left='60' width='354' height='53'>
Internet: SpidWeb@spidweb.com <br/>
America Online: SpidWeb <br/>
Compuserve: 76463,1521 <br/>
WWW: http://www.spidweb.com
</text>
<text top='102' left='50' width='439' height='51'>
The Blades of Exile Editor is brought to you by Spiderweb Software - <br/>
"Where our aberrations become your reality." <br/>
"Blades of Exile" and Spiderweb Software are trademarks of Spiderweb Software.
</text>
<text top='42' left='50' width='438' height='59'>
CREDITS: <br/>
Concept, Design, Programming: Jeff Vogel <br/>
Graphics: Andrew Hunter (Wormius@aol.com) <br/>
Other Programming: Mariann Krizsan
</text>
</dialog>

15
rsrc/dialogs/edit-day.xml Normal file
View File

@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='dark' defbtn='okay'>
<field name="number" type='num' top='36' left='133' width='75' height='16'/>
<pict type='dlog' num='2' top='8' left='8'/>
<text name='prompt' size='large' top='8' left='49' width='255' height='16'>What day would you like it to be?</text>
<button name='okay' type='regular' top='140' left='243'>OK</button>
<text top='59' left='51' width='268' height='79'>
Warning: Changing the day can have dramatically unexpected effects.
Towns will reappear.
People will be shifted around.
The time limits on your jobs may expire.
Back up your save file before doing this.
</text>
</dialog>

16
rsrc/dialogs/edit-xp.xml Normal file
View File

@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog skin='dark' defbtn='okay'>
<field name="number" type='num' top='127' left='216' width='75' height='16'/>
<pict type='dlog' num='2' top='8' left='8'/>
<text size='large' top='8' left='49' width='209' height='16'>Changing experience:</text>
<text top='27' left='49' width='288' height='67'>
Enter how much experience you want this character to have.
Note that the character will not gain any more levels until the character earns at least 1 point more point of experience in the game.
The most you can give is 10000.
</text>
<text name='perlevel' top='99' left='72' width='164' height='16'>Experience for each level:</text>
<text framed='true' top='99' left='238' width='76' height='16'/>
<text top='127' left='72' width='138' height='14'>Amount of experience:</text>
<button name='okay' type='regular' top='154' left='270'>OK</button>
</dialog>

View File

@@ -0,0 +1,12 @@
<?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='84' left='251'>OK</button>
<pict top='8' left='8' type='dlog' num='16'/>
<text top='3' left='52' width='257' height='79'>
Selecting this option removes your party from the scenario theyre currently in.
All of their progress in that adventure is forgotten ...
if you want to play it again, you will need to start over from the very beginning.
</text>
<button name='cancel' type='regular' def-key='esc' top='84' left='185'>Cancel</button>
</dialog>

View File

@@ -0,0 +1,7 @@
<?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='48' left='252'>OK</button>
<pict top='8' left='8' type='dlog' num='8'/>
<text top='3' left='52' width='257' height='44'>Your party will now be outdoors.</text>
</dialog>

View File

@@ -0,0 +1,7 @@
<?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='25' left='246'>OK</button>
<pict top='8' left='8' type='dlog' num='8'/>
<text top='3' left='52' width='252' height='16'>Your party is not split up!</text>
</dialog>

View File

@@ -0,0 +1,10 @@
<?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='49' left='251'>OK</button>
<pict top='8' left='8' type='dlog' num='8'/>
<text top='3' left='52' width='256' height='44'>
You cannot use this option while the party is split up.
Select Reunite party from this menu.
</text>
</dialog>

13
rsrc/dialogs/reunited.xml Normal file
View File

@@ -0,0 +1,13 @@
<?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='86' left='261'>OK</button>
<pict top='8' left='8' type='dlog' num='8'/>
<text top='3' left='52' width='266' height='80'>
Your party is now reunited.
You are located where you were when you split up.
Warning -
doing this can trap your party if you didn't do something you needed to do while split up.
Be sure to back up your save file before saving this change.
</text>
</dialog>

View File

@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='save'>
<button name='save' type='large' top='41' left='233'>Save First</button>
<button name='quit' type='large' top='41' left='125'>Just Quit</button>
<button name='cancel' type='regular' def-key='esc' top='41' left='57'>Cancel</button>
<pict top='9' left='9' type='dlog' num='23'/>
<text size='large' top='5' left='52' width='262' height='33'>Do you want to save before opening a new file?</text>
</dialog>

View File

@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<?xml-stylesheet href="dialog.xsl" type="text/xsl"?>
<dialog defbtn='save'>
<button name='save' type='large' top='31' left='230'>Save First</button>
<button name='quit' type='large' top='31' left='122'>Just Quit</button>
<button name='cancel' type='regular' def-key='esc' top='31' left='54'>Cancel</button>
<pict top='9' left='9' type='dlog' num='23'/>
<text size='large' top='5' left='52' width='254' height='18'>Do you want to save before quitting?</text>
</dialog>