#include <studio.h>
Collaboration diagram for ExultStudio:
Public Member Functions | |
ExultStudio (int argc, char **argv) | |
~ExultStudio () | |
bool | okay_to_close () |
GladeXML * | get_xml () |
int | get_server_socket () const |
guint32 | get_background_color () const |
char * | get_shape_name (int shnum) |
const char * | get_image_editor () |
Shape_file_set * | get_files () |
Object_browser * | get_browser () |
unsigned char * | get_palbuf () |
Shape_file_info * | get_vgafile () |
Combo_editor * | get_combowin () |
void | set_msg_callback (Msg_callback cb, void *client) |
Shape_group_file * | get_cur_groups () |
void | set_browser (const char *name, Object_browser *obj) |
bool | has_focus () |
void | create_new_game (const char *dir) |
void | new_game () |
void | choose_game_path () |
Object_browser * | create_browser (const char *fname) |
void | set_game_path (const char *path, const char *patchpath=0) |
void | setup_file_list () |
void | save_all () |
bool | need_to_save () |
void | write_map () |
void | read_map () |
void | write_shape_info (bool force=false) |
void | reload_usecode () |
void | set_play (gboolean play) |
void | set_tile_grid (gboolean grid) |
void | set_edit_lift (int lift) |
void | set_hide_lift (int lift) |
void | set_edit_terrain (gboolean terrain) |
void | set_edit_mode (int md) |
void | show_unused_shapes (unsigned char *data, int datalen) |
Shape_file_info * | open_shape_file (const char *fname) |
void | new_shape_file (bool single) |
void | setup_groups () |
void | setup_group_controls () |
void | add_group () |
void | del_group () |
void | groups_changed (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *loc, bool value=false) |
void | open_group_window () |
void | close_group_window (GtkWidget *gtkwin) |
void | save_groups () |
bool | groups_modified () |
void | update_group_windows (Shape_group *grp) |
void | open_obj_window (unsigned char *data, int datalen) |
void | close_obj_window () |
int | init_obj_window (unsigned char *data, int datalen) |
int | save_obj_window () |
void | show_obj_shape (int x=0, int y=0, int w=-1, int h=-1) |
void | set_obj_shape (int shape, int frame) |
void | open_egg_window (unsigned char *data=0, int datalen=0) |
void | close_egg_window () |
int | init_egg_window (unsigned char *data, int datalen) |
int | save_egg_window () |
void | show_egg_monster (int x=0, int y=0, int w=-1, int h=-1) |
void | set_egg_monster (int shape, int frame) |
void | open_npc_window (unsigned char *data=0, int datalen=0) |
void | close_npc_window () |
void | init_new_npc () |
int | init_npc_window (unsigned char *data, int datalen) |
int | save_npc_window () |
void | show_npc_shape (int x=0, int y=0, int w=-1, int h=-1) |
void | set_npc_shape (int shape, int frame) |
void | show_npc_face (int x=0, int y=0, int w=-1, int h=-1) |
void | set_npc_face (int shape, int frame) |
void | init_equip_window (int recnum) |
void | save_equip_window () |
void | open_equip_window (int recnum) |
void | close_equip_window () |
void | show_equip_shape (Equip_row_widgets *eq, int x=0, int y=0, int w=-1, int h=-1) |
void | set_shape_notebook_frame (int frnum) |
void | init_shape_notebook (Shape_info &info, GtkWidget *book, int shnum, int frnum) |
void | save_shape_notebook (Shape_info &info, int shnum, int frnum) |
void | open_shape_window (int shnum, int frnum, Shape_file_info *file_info, char *shname, Shape_info *info=0) |
void | save_shape_window () |
void | close_shape_window () |
void | show_shinfo_shape (int x=0, int y=0, int w=-1, int h=-1) |
void | open_locator_window () |
void | open_combo_window () |
void | save_combos () |
void | open_compile_window () |
void | compile (bool if_needed=false) |
void | halt_compile () |
void | run () |
bool | send_to_server (Exult_server::Msg_type id, unsigned char *data=0, int datalen=0) |
void | read_from_server () |
bool | connect_to_server () |
void | info_received (unsigned char *data, int datalen) |
void | set_edit_menu (bool sel, bool clip) |
void | open_preferences () |
void | save_preferences () |
bool | get_toggle (char *name) |
void | set_toggle (char *name, bool val) |
void | set_bit_toggles (char **names, int num, unsigned char bits) |
unsigned char | get_bit_toggles (char **names, int num) |
int | get_optmenu (char *name) |
void | set_optmenu (char *name, int val) |
int | get_spin (char *name) |
void | set_spin (char *name, int val, bool sensitive=true) |
void | set_spin (char *name, int val, int low, int high) |
int | get_num_entry (char *name) |
const gchar * | get_text_entry (char *name) |
void | set_entry (char *name, int val, bool hex=false, bool sensitive=true) |
void | set_entry (char *name, const char *val, bool sensitive=true) |
guint | set_statusbar (char *name, int context, char *msg) |
void | remove_statusbar (char *name, int context, guint msgid) |
void | set_button (char *name, const char *text) |
void | set_visible (char *name, bool vis) |
void | set_sensitive (char *name, bool vis) |
int | prompt (const char *msg, const char *choice0, const char *choice1=0, const char *choice2=0) |
Static Public Member Functions | |
static ExultStudio * | get_instance () |
static void | create_shape_file (char *nm, gpointer udata) |
static void | schedule_btn_clicked (GtkWidget *btn, gpointer data) |
static void | background_color_okay (GtkWidget *dlg, gpointer data) |
Private Attributes | |
char * | glade_path |
GtkWidget * | app |
GladeXML * | app_xml |
char * | static_path |
char * | image_editor |
char * | default_game |
guint32 | background_color |
bool | shape_info_modified |
bool | shape_names_modified |
Shape_file_set * | files |
std::vector< GtkWindow * > | group_windows |
Shape_file_info * | curfile |
Shape_file_info * | vgafile |
Shape_file_info * | facefile |
std::vector< char * > | names |
Object_browser * | browser |
unsigned char * | palbuf |
GtkWidget * | eggwin |
Shape_draw * | egg_monster_draw |
int | egg_ctx |
GtkWidget * | npcwin |
Shape_draw * | npc_draw |
Shape_draw * | npc_face_draw |
int | npc_ctx |
guint | npc_status_id |
GtkWidget * | objwin |
Shape_draw * | obj_draw |
GtkWidget * | shapewin |
Shape_draw * | shape_draw |
GtkWidget * | equipwin |
Locator * | locwin |
Combo_editor * | combowin |
GtkWidget * | compilewin |
Exec_box * | compile_box |
int | server_socket |
gint | server_input_tag |
Msg_callback | waiting_for_server |
void * | waiting_client |
Static Private Attributes | |
static ExultStudio * | self |
Definition at line 54 of file studio.h.
ExultStudio::ExultStudio | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 450 of file studio.cc.
References app, app_xml, background_color, config, default_game, EXULT_DATADIR, game, glade_path, image_editor, mode_names, Configuration::read_config_file(), Configuration::set(), set_game_path(), U7exists(), USER_CONFIGURATION_FILE, and Configuration::value().
Here is the call graph for this function:
ExultStudio::~ExultStudio | ( | ) |
Definition at line 566 of file studio.cc.
References app, app_xml, Shape_chooser::clear_editing_files(), combowin, compile_box, compilewin, config, default_game, egg_monster_draw, eggwin, equipwin, files, glade_path, image_editor, locwin, names, npc_draw, npcwin, obj_draw, objwin, palbuf, server_input_tag, server_socket, Configuration::set(), shape_draw, shapewin, and static_path.
Here is the call graph for this function:
bool ExultStudio::okay_to_close | ( | ) |
static ExultStudio* ExultStudio::get_instance | ( | ) | [inline, static] |
Definition at line 118 of file studio.h.
Referenced by Object_browser::add_group_submenu(), background_color_okay(), Shape_chooser::check_editing_files(), Shape_chooser::check_editing_files_cb(), Combo_editor::Combo_editor(), Shape_chooser::create_new_shape(), Shape_chooser::create_popup(), Chunk_chooser::create_popup(), create_shape_file(), Shape_chooser::del_frame(), Combo_chooser::edit(), Shape_chooser::edit_shape(), Shape_chooser::edit_shape_info(), Egg_response(), Shape_chooser::export_png(), Shape_chooser::export_tiled_png(), Filelist_selection(), Image_file_info::flush(), font_file_chosen(), Shape_chooser::from_font_toggled(), Chunk_chooser::get_chunk(), Shape_chooser::import_frame(), Import_png(), Import_png_tiles(), Chunk_chooser::insert(), Combo_chooser::load(), Shape_chooser::locate(), Chunk_chooser::locate(), Chunk_chooser::locate_response(), Locator::Locator(), Combo_chooser::move(), Chunk_chooser::move(), Shape_chooser::new_frame(), Shape_chooser::new_shape(), Npc_response(), on_basic_properties1_activate(), Object_browser::on_browser_group_add(), on_choose_directory(), on_compile_btn_clicked(), on_compile_usecode_menu_activate(), on_connect_activate(), on_copy1_activate(), on_cut1_activate(), on_edit_lift_spin_changed(), on_edit_terrain_button_toggled(), on_egg_apply_btn_clicked(), on_egg_cancel_btn_clicked(), on_egg_monster_draw_expose_event(), on_egg_window_delete_event(), on_equip_apply_clicked(), on_equip_cancel_clicked(), on_equip_draw_expose_event(), on_equip_okay_clicked(), on_equip_recnum_changed(), on_equip_shape_changed(), on_equip_window_delete_event(), on_export_tiles_okay_clicked(), on_group_down_clicked(), on_group_list_cursor_changed(), on_group_list_row_activated(), on_group_list_row_changed(), on_group_list_row_deleted(), on_group_list_row_inserted(), on_group_shape_remove_clicked(), on_group_up_clicked(), on_group_window_delete_event(), on_groups_add_clicked(), on_groups_del_clicked(), on_groups_new_name_key_press(), on_halt_compile_btn_clicked(), on_hide_lift_spin_changed(), on_locator1_activate(), on_main_window_configure_event(), on_main_window_delete_event(), on_main_window_quit(), on_monst_shape_focus_out_event(), on_move1_activate(), on_new_combo1_activate(), on_new_game_activate(), on_new_shape_file_activate(), on_new_shape_font_color_changed(), on_new_shape_font_color_draw_expose_event(), on_new_shapes_file_activate(), on_npc_apply_btn_clicked(), on_npc_cancel_btn_clicked(), on_npc_draw_expose_event(), on_npc_face_draw_expose_event(), on_npc_set_sched(), on_npc_shape_focus_out_event(), on_npc_window_delete_event(), on_obj_apply_clicked(), on_obj_cancel_clicked(), on_obj_draw_expose_event(), on_obj_okay_clicked(), on_obj_shape_changed(), on_obj_window_delete_event(), on_open_egg_activate(), on_open_equip_button_clicked(), on_open_game_activate(), on_open_npc_activate(), on_paint1_activate(), on_paint_with_chunks1_activate(), on_paste1_activate(), on_pick_for_combo1_activate(), on_play_button_clicked(), on_preferences_activate(), on_prefs_apply_clicked(), on_prefs_background_choose_clicked(), on_prefs_okay_clicked(), on_properties1_activate(), on_read_map_menu_activate(), on_reload_usecode_menu_activate(), on_save_all1_activate(), on_save_combos1_activate(), on_save_groups1_activate(), on_save_map_menu_activate(), on_save_shape_info1_activate(), on_sched_loc_clicked(), on_shape_window_delete_event(), Shape_chooser::on_shapes_popup_edtiles_activate(), on_shinfo_ammo_check_toggled(), on_shinfo_apply_clicked(), on_shinfo_armor_check_toggled(), on_shinfo_cancel_clicked(), on_shinfo_draw_expose_event(), on_shinfo_frame_changed(), on_shinfo_monster_check_toggled(), on_shinfo_okay_clicked(), on_shinfo_weapon_check_toggled(), on_teleport_coord_toggled(), on_tile_grid_button_toggled(), on_unused_shapes1_activate(), EStudio::Prompt(), Locator::query_location(), Shape_chooser::read_back_edited(), Combo_chooser::remove(), Combo_editor::save(), schedule_btn_clicked(), Shape_chooser::search(), Combo_chooser::search(), Shape_chooser::select(), Locator::send_location(), Combo_editor::set_combo(), Combo_editor::set_controls(), Combo_editor::set_order(), Combo_editor::set_position(), Shape_chooser::shape_dropped_here(), Chunk_chooser::tell_server(), Shape_chooser::tell_server_shape(), and Ucc_done().
GladeXML* ExultStudio::get_xml | ( | ) | [inline] |
Definition at line 120 of file studio.h.
References app_xml.
Referenced by Combo_editor::Combo_editor(), Locator::Locator(), Shape_chooser::new_shape(), on_new_shape_font_color_changed(), on_npc_set_sched(), Shape_chooser::on_shapes_popup_edtiles_activate(), and schedule_btn_clicked().
int ExultStudio::get_server_socket | ( | ) | const [inline] |
Definition at line 122 of file studio.h.
References server_socket.
Referenced by Chunk_chooser::get_chunk(), and on_sched_loc_clicked().
guint32 ExultStudio::get_background_color | ( | ) | const [inline] |
Definition at line 124 of file studio.h.
References background_color.
Referenced by on_prefs_background_choose_clicked().
char* ExultStudio::get_shape_name | ( | int | shnum | ) | [inline] |
Definition at line 126 of file studio.h.
References names.
Referenced by Shape_chooser::edit_shape_info(), on_equip_shape_changed(), Shape_chooser::search(), and Shape_chooser::select().
const char* ExultStudio::get_image_editor | ( | ) | [inline] |
Definition at line 128 of file studio.h.
References image_editor.
Referenced by Shape_chooser::create_popup(), and Shape_chooser::edit_shape().
Shape_file_set* ExultStudio::get_files | ( | ) | [inline] |
Object_browser* ExultStudio::get_browser | ( | ) | [inline] |
Definition at line 132 of file studio.h.
References browser.
Referenced by Shape_chooser::check_editing_files(), Shape_chooser::create_new_shape(), Shape_chooser::del_frame(), Shape_chooser::new_frame(), and Combo_editor::save().
unsigned char* ExultStudio::get_palbuf | ( | ) | [inline] |
Definition at line 134 of file studio.h.
References palbuf.
Referenced by Shape_chooser::read_back_edited().
Shape_file_info* ExultStudio::get_vgafile | ( | ) | [inline] |
Definition at line 136 of file studio.h.
References vgafile.
Referenced by Shape_chooser::create_new_shape(), Shape_chooser::create_popup(), Import_png(), Combo_chooser::load(), Shape_chooser::new_frame(), and Shape_chooser::new_shape().
Combo_editor* ExultStudio::get_combowin | ( | ) | [inline] |
Definition at line 138 of file studio.h.
References combowin.
Referenced by Combo_chooser::edit(), Combo_chooser::move(), and Combo_chooser::remove().
void ExultStudio::set_msg_callback | ( | Msg_callback | cb, | |
void * | client | |||
) | [inline] |
Definition at line 140 of file studio.h.
References waiting_client, and waiting_for_server.
Referenced by on_sched_loc_clicked().
Shape_group_file * ExultStudio::get_cur_groups | ( | ) |
void ExultStudio::set_browser | ( | const char * | name, | |
Object_browser * | obj | |||
) |
Definition at line 686 of file studio.cc.
References app_xml, browser, Object_browser::get_widget(), and Exult_server::obj.
Referenced by Filelist_selection(), and set_game_path().
Here is the call graph for this function:
bool ExultStudio::has_focus | ( | ) |
Definition at line 670 of file studio.cc.
References Window_has_focus().
Referenced by Shape_chooser::check_editing_files_cb().
Here is the call graph for this function:
void ExultStudio::create_new_game | ( | const char * | dir | ) |
Definition at line 750 of file studio.cc.
References EStudio::Alert(), config, EXULT_DATADIR, Is_dir_marker(), Configuration::set(), U7copy(), U7exists(), U7mkdir(), Configuration::value(), and exult_exception::what().
Here is the call graph for this function:
void ExultStudio::new_game | ( | ) |
Definition at line 833 of file studio.cc.
References Create_file_selection(), okay_to_close(), and on_choose_new_game_dir().
Referenced by on_new_game_activate().
Here is the call graph for this function:
void ExultStudio::choose_game_path | ( | ) |
Definition at line 846 of file studio.cc.
References Create_file_selection(), okay_to_close(), and on_choose_directory().
Referenced by on_open_game_activate().
Here is the call graph for this function:
Object_browser * ExultStudio::create_browser | ( | const char * | fname | ) |
Definition at line 704 of file studio.cc.
References curfile, Shape_file_info::get_browser(), open_shape_file(), palbuf, setup_groups(), and vgafile.
Referenced by Filelist_selection().
Here is the call graph for this function:
void ExultStudio::set_game_path | ( | const char * | path, | |
const char * | patchpath = 0 | |||
) |
Definition at line 880 of file studio.cc.
References add_system_path(), background_color, browser, Shape_chooser::clear_editing_files(), connect_to_server(), facefile, files, U7FileManager::get_ptr(), len, names, Flex::number_of_objects(), open_shape_file(), palbuf, U7FileManager::reset(), Flex::retrieve(), set_browser(), setup_file_list(), static_path, U7exists(), U7mkdir(), and vgafile.
Referenced by ExultStudio(), and on_choose_directory().
Here is the call graph for this function:
void ExultStudio::setup_file_list | ( | ) |
Definition at line 1035 of file studio.cc.
References add_to_tree(), app_xml, ChunkArchive, FILE_COLUMN, FlexArchive, FOLDER_COLUMN, NUM_COLUMNS, PaletteFile, and ShapeArchive.
Referenced by set_game_path().
Here is the call graph for this function:
void ExultStudio::save_all | ( | ) |
Definition at line 1101 of file studio.cc.
References Shape_chooser::check_editing_files(), and Exult_server::write_map.
Referenced by on_save_all1_activate().
Here is the call graph for this function:
bool ExultStudio::need_to_save | ( | ) |
Definition at line 1119 of file studio.cc.
References Game_info_in(), Exult_server::info, len, Exult_server::maxlength, Exult_server::Receive_data(), Exult_server::Send_data(), and Exult_server::wait_for_response().
Here is the call graph for this function:
void ExultStudio::write_map | ( | ) |
Definition at line 1153 of file studio.cc.
References Exult_server::write_map.
Referenced by on_save_map_menu_activate().
void ExultStudio::read_map | ( | ) |
Definition at line 1164 of file studio.cc.
References Exult_server::read_map.
Referenced by on_read_map_menu_activate().
void ExultStudio::write_shape_info | ( | bool | force = false |
) |
Definition at line 1175 of file studio.cc.
References EStudio::Alert(), Flex_writer::close(), Flex_writer::mark_section_done(), Shapes_vga_file::read_info(), U7open(), and Shapes_vga_file::write_info().
Referenced by on_save_shape_info1_activate().
Here is the call graph for this function:
void ExultStudio::reload_usecode | ( | ) |
Definition at line 1213 of file studio.cc.
References Exult_server::reload_usecode.
Referenced by on_reload_usecode_menu_activate(), and Ucc_done().
void ExultStudio::set_play | ( | gboolean | play | ) |
Definition at line 1224 of file studio.cc.
References Exult_server::map_editing_mode, Exult_server::maxlength, and Write2().
Referenced by on_play_button_clicked().
Here is the call graph for this function:
void ExultStudio::set_tile_grid | ( | gboolean | grid | ) |
Definition at line 1239 of file studio.cc.
References Exult_server::maxlength, Exult_server::tile_grid, and Write2().
Referenced by on_tile_grid_button_toggled().
Here is the call graph for this function:
void ExultStudio::set_edit_lift | ( | int | lift | ) |
Definition at line 1254 of file studio.cc.
References Exult_server::edit_lift, Exult_server::maxlength, and Write2().
Referenced by on_edit_lift_spin_changed().
Here is the call graph for this function:
void ExultStudio::set_hide_lift | ( | int | lift | ) |
Definition at line 1269 of file studio.cc.
References Exult_server::hide_lift, Exult_server::maxlength, and Write2().
Referenced by on_hide_lift_spin_changed().
Here is the call graph for this function:
void ExultStudio::set_edit_terrain | ( | gboolean | terrain | ) |
Definition at line 1284 of file studio.cc.
References Exult_server::maxlength, Exult_server::terrain_editing_mode, and Write2().
Referenced by on_edit_terrain_button_toggled().
Here is the call graph for this function:
void ExultStudio::set_edit_mode | ( | int | md | ) |
Definition at line 1309 of file studio.cc.
References Exult_server::maxlength, Exult_server::set_edit_mode, and Write2().
Referenced by on_move1_activate(), on_paint1_activate(), on_paint_with_chunks1_activate(), and on_pick_for_combo1_activate().
Here is the call graph for this function:
void ExultStudio::show_unused_shapes | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 1339 of file studio.cc.
References Insert_text().
Here is the call graph for this function:
Shape_file_info * ExultStudio::open_shape_file | ( | const char * | fname | ) |
Definition at line 1375 of file studio.cc.
References EStudio::Alert(), and Exult_server::info.
Referenced by create_browser(), Shape_chooser::read_back_edited(), and set_game_path().
Here is the call graph for this function:
void ExultStudio::new_shape_file | ( | bool | single | ) |
Definition at line 1391 of file studio.cc.
References Create_file_selection(), get_system_path(), and is_system_path_defined().
Referenced by on_new_shape_file_activate(), and on_new_shapes_file_activate().
Here is the call graph for this function:
void ExultStudio::create_shape_file | ( | char * | nm, | |
gpointer | udata | |||
) | [static] |
Definition at line 1414 of file studio.cc.
References EStudio::Alert(), get_instance(), exult_exception::what(), and Image_file_info::write_file().
Here is the call graph for this function:
void ExultStudio::setup_groups | ( | ) |
Definition at line 346 of file shapegroup.cc.
References Shape_group_file::get(), GRP_FILE_COLUMN, GRP_GROUP_COLUMN, on_group_list_row_changed(), on_group_list_row_deleted(), on_group_list_row_inserted(), and Shape_group_file::size().
Referenced by create_browser().
Here is the call graph for this function:
void ExultStudio::setup_group_controls | ( | ) |
void ExultStudio::add_group | ( | ) |
Definition at line 460 of file shapegroup.cc.
References Shape_group_file::find(), GRP_FILE_COLUMN, and GRP_GROUP_COLUMN.
Referenced by on_groups_add_clicked(), and on_groups_new_name_key_press().
Here is the call graph for this function:
void ExultStudio::del_group | ( | ) |
Definition at line 485 of file shapegroup.cc.
References Shape_group_file::get(), Shape_group::get_name(), and Get_tree_row().
Referenced by on_groups_del_clicked().
Here is the call graph for this function:
void ExultStudio::groups_changed | ( | GtkTreeModel * | model, | |
GtkTreePath * | path, | |||
GtkTreeIter * | loc, | |||
bool | value = false | |||
) |
Definition at line 530 of file shapegroup.cc.
References Get_tree_row(), GRP_GROUP_COLUMN, Shape_group_file::insert(), Shape_group_file::remove(), and Shape_group_file::set().
Referenced by on_group_list_row_changed(), on_group_list_row_deleted(), and on_group_list_row_inserted().
Here is the call graph for this function:
void ExultStudio::open_group_window | ( | ) |
Definition at line 623 of file shapegroup.cc.
References Shape_group_file::get(), Shape_group::get_name(), Get_tree_row(), Object_browser::get_widget(), and on_group_window_delete_event().
Referenced by on_group_list_row_activated().
Here is the call graph for this function:
void ExultStudio::close_group_window | ( | GtkWidget * | gtkwin | ) |
void ExultStudio::save_groups | ( | ) |
Definition at line 698 of file shapegroup.cc.
References Exult_server::info, Shape_group_file::is_modified(), and Shape_group_file::write().
Referenced by on_save_groups1_activate().
Here is the call graph for this function:
bool ExultStudio::groups_modified | ( | ) |
Definition at line 718 of file shapegroup.cc.
References Exult_server::info, and Shape_group_file::is_modified().
Here is the call graph for this function:
void ExultStudio::update_group_windows | ( | Shape_group * | grp | ) |
Definition at line 739 of file shapegroup.cc.
Referenced by Shape_chooser::check_editing_files(), Shape_chooser::create_new_shape(), Shape_chooser::del_frame(), Shape_chooser::import_frame(), Shape_chooser::new_frame(), Object_browser::on_browser_group_add(), on_group_down_clicked(), on_group_shape_remove_clicked(), on_group_up_clicked(), and Shape_chooser::shape_dropped_here().
void ExultStudio::open_obj_window | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 169 of file objedit.cc.
References Obj_shape_dropped().
Here is the call graph for this function:
void ExultStudio::close_obj_window | ( | ) |
Definition at line 202 of file objedit.cc.
Referenced by on_obj_cancel_clicked(), on_obj_okay_clicked(), and on_obj_window_delete_event().
int ExultStudio::init_obj_window | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 220 of file objedit.cc.
References Object_in().
Here is the call graph for this function:
int ExultStudio::save_obj_window | ( | ) |
Definition at line 269 of file objedit.cc.
References Exult_server::maxlength, Exult_server::obj, and Object_out().
Referenced by on_obj_apply_clicked(), and on_obj_okay_clicked().
Here is the call graph for this function:
void ExultStudio::show_obj_shape | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | w = -1 , |
|||
int | h = -1 | |||
) |
Definition at line 302 of file objedit.cc.
Referenced by on_obj_draw_expose_event(), and on_obj_shape_changed().
void ExultStudio::set_obj_shape | ( | int | shape, | |
int | frame | |||
) |
Definition at line 326 of file objedit.cc.
void ExultStudio::open_egg_window | ( | unsigned char * | data = 0 , |
|
int | datalen = 0 | |||
) |
Definition at line 169 of file eggedit.cc.
References Egg_monster_dropped().
Referenced by on_open_egg_activate().
Here is the call graph for this function:
void ExultStudio::close_egg_window | ( | ) |
Definition at line 221 of file eggedit.cc.
Referenced by Egg_response(), on_egg_cancel_btn_clicked(), and on_egg_window_delete_event().
int ExultStudio::init_egg_window | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 239 of file eggedit.cc.
References c_tiles_per_schunk, and Egg_object_in().
Here is the call graph for this function:
int ExultStudio::save_egg_window | ( | ) |
Definition at line 369 of file eggedit.cc.
References c_tiles_per_schunk, Egg_object_out(), Egg_response(), and Exult_server::maxlength.
Referenced by on_egg_apply_btn_clicked().
Here is the call graph for this function:
void ExultStudio::show_egg_monster | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | w = -1 , |
|||
int | h = -1 | |||
) |
Definition at line 480 of file eggedit.cc.
Referenced by on_egg_monster_draw_expose_event(), and on_monst_shape_focus_out_event().
void ExultStudio::set_egg_monster | ( | int | shape, | |
int | frame | |||
) |
Definition at line 502 of file eggedit.cc.
void ExultStudio::open_npc_window | ( | unsigned char * | data = 0 , |
|
int | datalen = 0 | |||
) |
Definition at line 280 of file npcedit.cc.
References Npc_face_dropped(), Npc_shape_dropped(), and Set_schedule_line().
Referenced by on_open_npc_activate().
Here is the call graph for this function:
void ExultStudio::close_npc_window | ( | ) |
Definition at line 337 of file npcedit.cc.
Referenced by Npc_response(), on_npc_cancel_btn_clicked(), and on_npc_window_delete_event().
void ExultStudio::init_new_npc | ( | ) |
Definition at line 418 of file npcedit.cc.
References Get_prop_spin(), len, Exult_server::maxlength, Exult_server::npc_info, Read2(), Exult_server::Receive_data(), Exult_server::Send_data(), Set_schedule_line(), and Exult_server::wait_for_response().
Here is the call graph for this function:
int ExultStudio::init_npc_window | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 480 of file npcedit.cc.
References Get_flag_cbox(), Get_prop_spin(), Npc_actor_in(), Set_schedule_line(), Serial_schedule::time, Serial_schedule::tx, Serial_schedule::ty, Serial_schedule::type, and Ucscript::usecode.
Here is the call graph for this function:
int ExultStudio::save_npc_window | ( | ) |
Definition at line 588 of file npcedit.cc.
References EStudio::Alert(), Get_flag_cbox(), Get_prop_spin(), Get_schedule_line(), Exult_server::maxlength, Npc_actor_out(), Npc_response(), and Ucscript::usecode.
Referenced by on_npc_apply_btn_clicked().
Here is the call graph for this function:
void ExultStudio::show_npc_shape | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | w = -1 , |
|||
int | h = -1 | |||
) |
Definition at line 679 of file npcedit.cc.
Referenced by on_npc_draw_expose_event(), and on_npc_shape_focus_out_event().
void ExultStudio::set_npc_shape | ( | int | shape, | |
int | frame | |||
) |
Definition at line 703 of file npcedit.cc.
void ExultStudio::show_npc_face | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | w = -1 , |
|||
int | h = -1 | |||
) |
void ExultStudio::set_npc_face | ( | int | shape, | |
int | frame | |||
) |
Definition at line 739 of file npcedit.cc.
void ExultStudio::schedule_btn_clicked | ( | GtkWidget * | btn, | |
gpointer | data | |||
) | [static] |
Definition at line 761 of file npcedit.cc.
References get_instance(), and get_xml().
Referenced by Set_sched_btn().
Here is the call graph for this function:
void ExultStudio::init_equip_window | ( | int | recnum | ) |
Definition at line 286 of file shapeedit.cc.
References Equip_row_widgets::chance, Equip_row_widgets::count, equip_rows, Equip_record::get(), Monster_info::get_equip(), Equip_row_widgets::name, and Equip_row_widgets::shape.
Referenced by on_equip_recnum_changed().
Here is the call graph for this function:
void ExultStudio::save_equip_window | ( | ) |
Definition at line 314 of file shapeedit.cc.
References Equip_row_widgets::chance, Equip_row_widgets::count, equip_rows, Equip_record::get(), Monster_info::get_equip(), and Equip_row_widgets::shape.
Referenced by on_equip_apply_clicked(), and on_equip_okay_clicked().
Here is the call graph for this function:
void ExultStudio::open_equip_window | ( | int | recnum | ) |
Definition at line 340 of file shapeedit.cc.
References equip_rows, Monster_info::get_equip_cnt(), and Setup_equip().
Here is the call graph for this function:
void ExultStudio::close_equip_window | ( | ) |
Definition at line 366 of file shapeedit.cc.
Referenced by on_equip_cancel_clicked(), on_equip_okay_clicked(), and on_equip_window_delete_event().
void ExultStudio::show_equip_shape | ( | Equip_row_widgets * | eq, | |
int | x = 0 , |
|||
int | y = 0 , |
|||
int | w = -1 , |
|||
int | h = -1 | |||
) |
Definition at line 378 of file shapeedit.cc.
References Shape_draw::configure(), Equip_row_widgets::draw, Shape_draw::draw_shape_centered(), Equip_row_widgets::shape, and Shape_draw::show().
Referenced by on_equip_draw_expose_event(), and on_equip_shape_changed().
Here is the call graph for this function:
void ExultStudio::set_shape_notebook_frame | ( | int | frnum | ) |
void ExultStudio::init_shape_notebook | ( | Shape_info & | info, | |
GtkWidget * | book, | |||
int | shnum, | |||
int | frnum | |||
) |
void ExultStudio::save_shape_notebook | ( | Shape_info & | info, | |
int | shnum, | |||
int | frnum | |||
) |
Definition at line 713 of file shapeedit.cc.
References Exult_server::info, Monster_info::set_alignment(), Weapon_info::set_ammo(), Monster_info::set_cant_bleed(), Monster_info::set_cant_die(), Monster_info::set_cant_yell(), Ammo_info::set_damage(), Weapon_info::set_damage(), Monster_info::set_equip_offset(), Weapon_info::set_explodes(), Ammo_info::set_family_shape(), Monster_info::set_flags(), Monster_info::set_immune(), Armor_info::set_immune(), Monster_info::set_poison_safe(), Ammo_info::set_powers(), Weapon_info::set_powers(), Weapon_info::set_projectile(), Armor_info::set_prot(), Weapon_info::set_range(), Weapon_info::set_returns(), Weapon_info::set_sfxs(), Monster_info::set_splits(), Monster_info::set_stats(), Weapon_info::set_usecode(), Weapon_info::set_uses(), and Monster_info::set_vulnerable().
Here is the call graph for this function:
void ExultStudio::open_shape_window | ( | int | shnum, | |
int | frnum, | |||
Shape_file_info * | file_info, | |||
char * | shname, | |||
Shape_info * | info = 0 | |||
) |
Definition at line 866 of file shapeedit.cc.
References Shape_frame::get_height(), Shape_file_info::get_ifile(), Vga_file::get_num_frames(), Vga_file::get_shape(), Shape_frame::get_width(), Shape_frame::get_xright(), Shape_frame::get_ybelow(), and Exult_server::info.
Referenced by Shape_chooser::edit_shape_info().
Here is the call graph for this function:
void ExultStudio::save_shape_window | ( | ) |
Definition at line 917 of file shapeedit.cc.
References Shape_file_info::get_ifile(), Vga_file::get_shape(), Shape_frame::get_xright(), Shape_frame::get_ybelow(), Exult_server::info, newstrdup(), Shape_file_info::set_modified(), and Shape_frame::set_offset().
Referenced by on_shinfo_apply_clicked(), and on_shinfo_okay_clicked().
Here is the call graph for this function:
void ExultStudio::close_shape_window | ( | ) |
Definition at line 963 of file shapeedit.cc.
Referenced by on_shape_window_delete_event(), on_shinfo_cancel_clicked(), and on_shinfo_okay_clicked().
void ExultStudio::show_shinfo_shape | ( | int | x = 0 , |
|
int | y = 0 , |
|||
int | w = -1 , |
|||
int | h = -1 | |||
) |
void ExultStudio::open_locator_window | ( | ) |
void ExultStudio::open_combo_window | ( | ) |
Definition at line 64 of file combo.cc.
References EStudio::Alert().
Referenced by Combo_chooser::edit(), and on_new_combo1_activate().
Here is the call graph for this function:
void ExultStudio::save_combos | ( | ) |
Definition at line 88 of file combo.cc.
References EStudio::Alert(), Shape_file_info::flush(), and exult_exception::what().
Referenced by on_save_combos1_activate().
Here is the call graph for this function:
void ExultStudio::open_compile_window | ( | ) |
Definition at line 86 of file compile.cc.
References Ucc_done().
Here is the call graph for this function:
void ExultStudio::compile | ( | bool | if_needed = false |
) |
Definition at line 107 of file compile.cc.
References EStudio::Alert(), get_system_path(), Exult_server::obj, and U7exists().
Referenced by on_compile_btn_clicked(), and on_compile_usecode_menu_activate().
Here is the call graph for this function:
void ExultStudio::halt_compile | ( | ) |
bool ExultStudio::send_to_server | ( | Exult_server::Msg_type | id, | |
unsigned char * | data = 0 , |
|||
int | datalen = 0 | |||
) |
Definition at line 2117 of file studio.cc.
References Exult_server::Send_data().
Referenced by Chunk_chooser::get_chunk(), Chunk_chooser::insert(), Shape_chooser::locate(), Chunk_chooser::locate(), Chunk_chooser::locate_response(), Chunk_chooser::move(), on_basic_properties1_activate(), on_copy1_activate(), on_cut1_activate(), on_paste1_activate(), on_properties1_activate(), on_unused_shapes1_activate(), Locator::query_location(), Locator::send_location(), Chunk_chooser::tell_server(), and Shape_chooser::tell_server_shape().
Here is the call graph for this function:
void ExultStudio::read_from_server | ( | ) |
Definition at line 2161 of file studio.cc.
References Exult_server::cancel, Exult_server::combo_pick, Exult_server::delete_terrain, Exult_server::egg, Exult_server::game_pos, Exult_server::info, Exult_server::insert_terrain, len, Exult_server::locate_shape, Exult_server::locate_terrain, Exult_server::maxlength, Exult_server::npc, Exult_server::obj, Exult_server::Receive_data(), Reconnect(), Exult_server::select_status, Exult_server::swap_terrain, Exult_server::unused_shapes, Exult_server::usecode_debugging, Exult_server::user_responded, and Exult_server::view_pos.
Referenced by Read_from_server().
Here is the call graph for this function:
bool ExultStudio::connect_to_server | ( | ) |
Definition at line 2265 of file studio.cc.
References Exult_server::info, Read_from_server(), and U7exists().
Referenced by on_connect_activate(), Reconnect(), and set_game_path().
Here is the call graph for this function:
void ExultStudio::info_received | ( | unsigned char * | data, | |
int | datalen | |||
) |
Definition at line 2347 of file studio.cc.
References EStudio::Alert(), Game_info_in(), mode_names, and Exult_server::version.
Here is the call graph for this function:
void ExultStudio::background_color_okay | ( | GtkWidget * | dlg, | |
gpointer | data | |||
) | [static] |
Definition at line 1952 of file studio.cc.
References app_xml, background_color, and get_instance().
Referenced by on_prefs_background_choose_clicked().
Here is the call graph for this function:
void ExultStudio::open_preferences | ( | ) |
void ExultStudio::save_preferences | ( | ) |
Definition at line 2061 of file studio.cc.
References config, and Configuration::set().
Referenced by on_prefs_apply_clicked(), and on_prefs_okay_clicked().
Here is the call graph for this function:
bool ExultStudio::get_toggle | ( | char * | name | ) |
Definition at line 1447 of file studio.cc.
Referenced by Shape_chooser::create_new_shape(), and on_export_tiles_okay_clicked().
void ExultStudio::set_toggle | ( | char * | name, | |
bool | val | |||
) |
void ExultStudio::set_bit_toggles | ( | char ** | names, | |
int | num, | |||
unsigned char | bits | |||
) |
unsigned char ExultStudio::get_bit_toggles | ( | char ** | names, | |
int | num | |||
) |
int ExultStudio::get_spin | ( | char * | name | ) |
Definition at line 1539 of file studio.cc.
Referenced by Shape_chooser::create_new_shape(), on_export_tiles_okay_clicked(), on_main_window_configure_event(), on_new_shape_font_color_draw_expose_event(), Combo_editor::set_order(), and Combo_editor::set_position().
void ExultStudio::set_spin | ( | char * | name, | |
int | val, | |||
bool | sensitive = true | |||
) |
Definition at line 1553 of file studio.cc.
Referenced by font_file_chosen(), on_main_window_configure_event(), and Combo_editor::set_controls().
void ExultStudio::set_spin | ( | char * | name, | |
int | val, | |||
int | low, | |||
int | high | |||
) |
const gchar * ExultStudio::get_text_entry | ( | char * | name | ) |
Definition at line 1620 of file studio.cc.
Referenced by Shape_chooser::create_new_shape(), and Combo_editor::save().
void ExultStudio::set_entry | ( | char * | name, | |
int | val, | |||
bool | hex = false , |
|||
bool | sensitive = true | |||
) |
Definition at line 1635 of file studio.cc.
Referenced by font_file_chosen(), and Combo_editor::set_combo().
void ExultStudio::set_entry | ( | char * | name, | |
const char * | val, | |||
bool | sensitive = true | |||
) |
guint ExultStudio::set_statusbar | ( | char * | name, | |
int | context, | |||
char * | msg | |||
) |
void ExultStudio::remove_statusbar | ( | char * | name, | |
int | context, | |||
guint | msgid | |||
) |
void ExultStudio::set_button | ( | char * | name, | |
const char * | text | |||
) |
void ExultStudio::set_visible | ( | char * | name, | |
bool | vis | |||
) |
Definition at line 1729 of file studio.cc.
Referenced by on_shinfo_ammo_check_toggled(), on_shinfo_armor_check_toggled(), on_shinfo_monster_check_toggled(), and on_shinfo_weapon_check_toggled().
void ExultStudio::set_sensitive | ( | char * | name, | |
bool | vis | |||
) |
Definition at line 1749 of file studio.cc.
Referenced by Shape_chooser::from_font_toggled(), Shape_chooser::new_shape(), on_teleport_coord_toggled(), and Combo_editor::set_controls().
int ExultStudio::prompt | ( | const char * | msg, | |
const char * | choice0, | |||
const char * | choice1 = 0 , |
|||
const char * | choice2 = 0 | |||
) |
char* ExultStudio::glade_path [private] |
GtkWidget* ExultStudio::app [private] |
GladeXML* ExultStudio::app_xml [private] |
Definition at line 58 of file studio.h.
Referenced by background_color_okay(), ExultStudio(), get_xml(), set_browser(), setup_file_list(), and ~ExultStudio().
char* ExultStudio::static_path [private] |
char* ExultStudio::image_editor [private] |
Definition at line 60 of file studio.h.
Referenced by ExultStudio(), get_image_editor(), and ~ExultStudio().
char* ExultStudio::default_game [private] |
guint32 ExultStudio::background_color [private] |
Definition at line 62 of file studio.h.
Referenced by background_color_okay(), ExultStudio(), get_background_color(), and set_game_path().
ExultStudio * ExultStudio::self [static, private] |
bool ExultStudio::shape_info_modified [private] |
bool ExultStudio::shape_names_modified [private] |
Shape_file_set* ExultStudio::files [private] |
Definition at line 66 of file studio.h.
Referenced by get_files(), set_game_path(), and ~ExultStudio().
std::vector<GtkWindow*> ExultStudio::group_windows [private] |
Shape_file_info* ExultStudio::curfile [private] |
Shape_file_info* ExultStudio::vgafile [private] |
Definition at line 69 of file studio.h.
Referenced by create_browser(), get_vgafile(), and set_game_path().
Shape_file_info* ExultStudio::facefile [private] |
std::vector<char *> ExultStudio::names [private] |
Definition at line 71 of file studio.h.
Referenced by get_shape_name(), set_game_path(), and ~ExultStudio().
Object_browser* ExultStudio::browser [private] |
Definition at line 72 of file studio.h.
Referenced by get_browser(), set_browser(), and set_game_path().
unsigned char* ExultStudio::palbuf [private] |
Definition at line 73 of file studio.h.
Referenced by create_browser(), get_palbuf(), set_game_path(), and ~ExultStudio().
GtkWidget* ExultStudio::eggwin [private] |
Shape_draw* ExultStudio::egg_monster_draw [private] |
int ExultStudio::egg_ctx [private] |
GtkWidget* ExultStudio::npcwin [private] |
Shape_draw* ExultStudio::npc_draw [private] |
Shape_draw * ExultStudio::npc_face_draw [private] |
int ExultStudio::npc_ctx [private] |
guint ExultStudio::npc_status_id [private] |
GtkWidget* ExultStudio::objwin [private] |
Shape_draw* ExultStudio::obj_draw [private] |
GtkWidget* ExultStudio::shapewin [private] |
Shape_draw* ExultStudio::shape_draw [private] |
GtkWidget* ExultStudio::equipwin [private] |
Locator* ExultStudio::locwin [private] |
Combo_editor* ExultStudio::combowin [private] |
GtkWidget* ExultStudio::compilewin [private] |
Exec_box* ExultStudio::compile_box [private] |
int ExultStudio::server_socket [private] |
gint ExultStudio::server_input_tag [private] |
Msg_callback ExultStudio::waiting_for_server [private] |
void* ExultStudio::waiting_client [private] |