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:
@@ -4,11 +4,9 @@
|
||||
class cDialog;
|
||||
void display_spells(short mode,short force_spell,cDialog* parent);
|
||||
void display_skills(short force_skill,cDialog* parent);
|
||||
void display_pc(short pc_num,short mode,cDialog* parent_num);
|
||||
void display_pc_item(short pc_num,short item,cItemRec si,cDialog* parent);
|
||||
void display_monst(short array_pos,cCreature *which_m,short mode);
|
||||
void display_alchemy(cDialog* parent);
|
||||
void pick_race_abil(cPlayer *pc,short mode,cDialog* parent);
|
||||
void display_alchemy();
|
||||
void display_traits_graphics();
|
||||
void give_pc_info(short pc_num);
|
||||
void adventure_notes();
|
||||
@@ -24,6 +22,11 @@ void put_spec_item_info (short which_i);
|
||||
//void give_error(const char *text1, const char *text2,short parent_num);
|
||||
//void display_strings_with_nums(short a1,short a2, short b1, short b2, char *title,short sound_num,short graphic_num,short graphic_type,short parent_num);
|
||||
|
||||
// These are defined in pc.editors.cpp since they are also used by the character editor
|
||||
void pick_race_abil(cPlayer *pc,short mode,cDialog* parent);
|
||||
void display_pc(short pc_num,short mode,cDialog* parent_num);
|
||||
void display_alchemy(bool allowEdit);
|
||||
|
||||
// Callback for recording encounter strings
|
||||
class cStringRecorder {
|
||||
private:
|
||||
|
Reference in New Issue
Block a user