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

- All Carbon code is gone
- Many dialogs converted; some are still left unimplemented since they still need to be converted
- Menus converted to a xib file
- The giant arrays specifying the configuration of the special node dialog for each special node type have been replaced with maps and sets.

Changes to dialogs:
- pict choice dialog can now show picts of differing types; this was required for picking a monster graphic, as monsters of all sizes need to be shown in the same dialog
- string choice dialog can set the title, and properly shows the currently selected string
- LEDs now accept font format
- Fixed LED group's calculation of its rect
- Fixed LED group crashing if it has no selection
- Tabbing between text fields now works
- Fix display of larger monster graphics in dialogs
- Fix the script element content showing in the browser preview
This commit is contained in:
2014-07-12 22:13:27 -04:00
parent bbc9667c88
commit 41c3396aa3
80 changed files with 7983 additions and 4005 deletions

View File

@@ -1,37 +1,26 @@
void fancy_choice_dialog_event_filter (short item_hit);
short fancy_choice_dialog(short which_dlog,short parent);
void display_strings_event_filter (short item_hit);
bool cre(short val,short min,short max,char *text1, char *text2,short parent_num) ;
void give_error(char *text1, char *text2,short parent_num);
void display_strings_event_filter (short item_hit);
#include <string>
#include "pict.h" // for ePicType
class cDialog;
enum eStrType {STRT_MONST, STRT_ITEM, STRT_TER, STRT_BUTTON};
bool cre(short val,short min,short max,const char *text1,const char *text2,cDialog* parent) ;
void display_strings(char *text1, char *text2,
char *title,short sound_num,short graphic_num,short graphic_type,short parent_num);
void choose_graphic_event_filter (short item_hit);
char *title,short sound_num,short graphic_num,short graphic_type,cDialog* parent);
void put_choice_pics(short g_type);
short choose_graphic(short first_g,short last_g,short cur_choice,short g_type,short parent_num);
void put_text_res();
short choose_text_res(short res_list,short first_t,short last_t,short cur_choice,short parent_num,char *title);
void choose_text_res_event_filter (short item_hit);
void edit_text_event_filter (short item_hit);
pic_num_t choose_graphic(short cur_choice,ePicType g_type,cDialog* parent);
short choose_text_res(std::string res_list,short first_t,short last_t,short cur_choice,cDialog* parent,const char *title);
short choose_text(eStrType list, short cur_choice, cDialog* parent,const char* title);
void edit_text_str(short which_str,short mode);
bool save_spec_enc();
void put_spec_enc_in_dlog();
void edit_spec_enc_event_filter (short item_hit);
void edit_spec_enc(short which_node,short mode,short parent_num);
void edit_spec_enc(short which_node,short mode,cDialog* parent);
short get_fresh_spec(short which_mode);
void edit_spec_text_event_filter (short item_hit);
void edit_spec_text(short mode,short *str1,short *str2,short parent);
void edit_dialog_text(short mode,short *str1,short parent);
void edit_spec_text(short mode,short *str1,short *str2,short parent);
void edit_special_num_event_filter (short item_hit);
void edit_spec_text(short mode,short *str1,short *str2,cDialog* parent);
void edit_dialog_text(short mode,short *str1,cDialog* parent);
void edit_spec_text(short mode,short *str1,short *str2,cDialog* parent);
short edit_special_num(short mode,short what_start);
void edit_scen_intro_event_filter (short item_hit);
void edit_scen_intro();
short choice_dialog(short pic,short num);
bool edit_area_rect_str(short which_str,short mode);
void edit_area_rect_event_filter (short item_hit);
void make_cursor_sword() ;
void edit_dialog_text_event_filter (short item_hit);
void edit_dialog_text(short mode,short *str1,short parent);
void set_cursor(short which_c) ;
void restore_cursor();
void edit_dialog_text(short mode,short *str1,cDialog* parent);