#include <menu_events.hpp>
Protected Member Functions | |
void | add_chat_message (const time_t &time, const std::string &speaker, int side, const std::string &message, events::chat_handler::MESSAGE_TYPE type=events::chat_handler::MESSAGE_PRIVATE) |
void | send_chat_message (const std::string &message, bool allies_only=false) |
Private Member Functions | |
bool | has_friends () const |
void | scenario_settings_table (int selected=0) |
game_state & | gamestate () const |
game_data & | gamedata () |
game_board & | board () const |
unit_map & | units () |
std::vector< team > & | teams () const |
const gamemap & | map () |
Private Member Functions inherited from events::chat_handler | |
chat_handler () | |
virtual | ~chat_handler () |
void | send_command (const std::string &cmd, const std::string &args="") |
void | do_speak (const std::string &message, bool allies_only=false) |
virtual void | send_whisper (const std::string &receiver, const std::string &message) |
virtual void | add_whisper_sent (const std::string &receiver, const std::string &message) |
virtual void | add_whisper_received (const std::string &sender, const std::string &message) |
virtual void | send_chat_room_message (const std::string &room, const std::string &message) |
virtual void | add_chat_room_message_sent (const std::string &room, const std::string &message) |
virtual void | add_chat_room_message_received (const std::string &room, const std::string &speaker, const std::string &message) |
virtual void | user_relation_changed (const std::string &name) |
Called when a processed command results in a relation (friend/ignore) change for a user whose name is passed as the 'name' arg. More... | |
void | change_logging (const std::string &data) |
Change the log level of a log domain. More... | |
Private Attributes | |
game_display * | gui_ |
play_controller & | pc_ |
const config & | game_config_ |
gui::floating_textbox | textbox_info_ |
std::string | last_search_ |
map_location | last_search_hit_ |
Friends | |
class | console_handler |
Additional Inherited Members | |
Private Types inherited from events::chat_handler | |
enum | MESSAGE_TYPE { MESSAGE_PUBLIC, MESSAGE_PRIVATE } |
Definition at line 43 of file menu_events.hpp.
events::menu_handler::menu_handler | ( | game_display * | gui, |
play_controller & | pc, | ||
const config & | game_config | ||
) |
Definition at line 94 of file menu_events.cpp.
|
virtual |
Definition at line 104 of file menu_events.cpp.
|
protectedvirtual |
Implements events::chat_handler.
Definition at line 1242 of file menu_events.cpp.
References display_chat_manager::add_chat_message(), plugins_manager::get(), game_display::get_chat_manager(), gui_, preferences::login(), events::chat_handler::MESSAGE_PRIVATE, and plugins_manager::notify_event().
Referenced by do_ai_formula(), events::console_handler::print(), and send_chat_message().
void events::menu_handler::ai_formula | ( | ) |
Definition at line 2223 of file menu_events.cpp.
References gui_, play_controller::is_networked_mp(), pc_, translation::sgettext(), gui::floating_textbox::show(), gui::TEXTBOX_AI, and textbox_info_.
Referenced by playsingle_controller::hotkey_handler::ai_formula().
|
private |
Definition at line 110 of file menu_events.cpp.
References game_state::board_, and gamestate().
Referenced by change_side(), clear_labels(), current_unit(), end_turn(), has_friends(), label_settings(), send_chat_message(), speak(), and status_table().
void events::menu_handler::change_side | ( | mouse_handler & | mousehandler | ) |
Definition at line 964 of file menu_events.cpp.
References board(), unit_map::find(), events::mouse_handler::get_last_hex(), actions::get_village(), i, map(), teams(), units(), and display_context::village_owner().
Referenced by playsingle_controller::hotkey_handler::change_side().
void events::menu_handler::clear_labels | ( | ) |
Definition at line 1039 of file menu_events.cpp.
References board(), map_labels::clear(), replay::clear_labels(), game_display::current_team_name(), gui_, display_context::is_observer(), display::labels(), resources::recorder, and display::team_valid().
Referenced by playsingle_controller::hotkey_handler::clear_labels().
void events::menu_handler::clear_messages | ( | ) |
Definition at line 2230 of file menu_events.cpp.
References display_chat_manager::clear_chat_messages(), game_display::get_chat_manager(), and gui_.
Referenced by playsingle_controller::hotkey_handler::clear_messages().
void events::menu_handler::continue_move | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 1054 of file menu_events.cpp.
References current_unit(), unit_map::end(), unit_map::find(), events::mouse_handler::get_selected_hex(), i, move_unit_to_loc(), and units().
Referenced by playsingle_controller::hotkey_handler::continue_move(), and move_unit_to_loc().
void events::menu_handler::create_unit | ( | mouse_handler & | mousehandler | ) |
Creates a unit (in debug mode via hotkey or context menu).
Definition at line 949 of file menu_events.cpp.
References events::mouse_handler::get_last_hex(), gui_, map(), and units().
Referenced by playsingle_controller::hotkey_handler::create_unit().
unit_map::iterator events::menu_handler::current_unit | ( | ) |
Definition at line 875 of file menu_events.cpp.
References board(), unit_map::end(), game_board::find_visible_unit(), events::mouse_handler::get_last_hex(), play_controller::get_mouse_handler_base(), events::mouse_handler::get_selected_hex(), gui_, pc_, teams(), units(), and display::viewing_team().
Referenced by playsingle_controller::hotkey_handler::can_execute_command(), play_controller::hotkey_handler::can_execute_command(), continue_move(), current_unit(), events::console_handler::do_unit(), rename_unit(), unit_description(), and playsingle_controller::hotkey_handler::whiteboard_suppose_dead().
|
inline |
Definition at line 96 of file menu_events.hpp.
References current_unit().
void events::menu_handler::custom_command | ( | ) |
Definition at line 2214 of file menu_events.cpp.
References c, preferences::custom_command(), do_command(), and utils::split().
Referenced by playsingle_controller::hotkey_handler::custom_command().
void events::menu_handler::do_ai_formula | ( | const std::string & | str, |
int | side_num, | ||
mouse_handler & | mousehandler | ||
) |
Definition at line 2179 of file menu_events.cpp.
References _(), add_chat_message(), and ai::manager::evaluate_command().
Referenced by play_controller::enter_textbox().
void events::menu_handler::do_command | ( | const std::string & | str | ) |
Definition at line 1604 of file menu_events.cpp.
References events::map_command_handler< Worker >::dispatch().
Referenced by custom_command(), and play_controller::enter_textbox().
bool events::menu_handler::do_recruit | ( | const std::string & | name, |
int | side_num, | ||
const map_location & | last_hex | ||
) |
Definition at line 564 of file menu_events.cpp.
References _(), team::action_bonus_count(), util::contains(), unit_type::cost(), unit_type_data::find(), actions::find_recruit_location(), replay_helper::get_recruit(), actions::get_recruits(), play_controller::get_whiteboard(), team::gold(), gui_, unit_type::id(), team::last_recruit(), game_logic::msg(), map_location::null_location(), pc_, synced_context::run_and_throw(), team::set_action_bonus_count(), gui2::show_transient_message(), teams(), unit_types, and display::video().
Referenced by wb::recruit::execute(), recruit(), and repeat_recruit().
void events::menu_handler::do_search | ( | const std::string & | new_search | ) |
Definition at line 1527 of file menu_events.cpp.
References gui2::tmessage::auto_close, chars_equal_insensitive(), unit_map::find(), display::fogged(), map_labels::get_label(), gui_, gamemap::h(), game_display::highlight_hex(), display::labels(), last_search_, last_search_hit_, map(), game_logic::msg(), display::ONSCREEN, display::scroll_to_tile(), gui2::show_message(), display::shrouded(), utils::split(), t_string::str(), teams(), terrain_label::text(), units(), map_location::valid(), vgettext(), display::video(), display::viewing_team(), gamemap::w(), map_location::x, and map_location::y.
Referenced by play_controller::enter_textbox().
void events::menu_handler::do_speak | ( | ) |
Definition at line 1235 of file menu_events.cpp.
References gui::floating_textbox::box(), gui::floating_textbox::check(), events::chat_handler::do_speak(), and textbox_info_.
Referenced by play_controller::enter_textbox().
bool events::menu_handler::end_turn | ( | int | side_num | ) |
Definition at line 782 of file menu_events.cpp.
References _(), board(), gui2::twindow::CANCEL, preferences::confirm_no_moves(), gamedata(), play_controller::get_undo_stack(), play_controller::get_whiteboard(), preferences::green_confirm(), pc_, actions::undo_list::player_acted(), gui2::show_message(), gui2::show_transient_message(), teams(), units(), preferences::yellow_confirm(), and gui2::tmessage::yes_no_buttons.
Referenced by playsingle_controller::end_turn().
void events::menu_handler::end_unit_turn | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 1207 of file menu_events.cpp.
References events::mouse_handler::cycle_units(), display::draw(), unit_map::end(), unit_map::find(), events::mouse_handler::get_selected_hex(), gui_, display::invalidate(), events::mouse_handler::set_current_paths(), and units().
Referenced by playsingle_controller::hotkey_handler::end_unit_turn().
void events::menu_handler::execute_gotos | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 1088 of file menu_events.cpp.
References unit_map::end(), events::mouse_handler::get_route(), play_controller::get_undo_stack(), gui_, display::invalidate_game_status(), LOG_NG, map(), pathfind::marked_route::marks, actions::move_unit_and_record(), pc_, game_display::set_route(), pathfind::marked_route::steps, teams(), and units().
Referenced by playsingle_controller::execute_gotos().
|
private |
Definition at line 109 of file menu_events.cpp.
References game_state::gamedata_, and gamestate().
Referenced by events::console_handler::do_choose_level(), events::console_handler::do_show_var(), and end_turn().
|
private |
Definition at line 108 of file menu_events.cpp.
References play_controller::gamestate(), and pc_.
Referenced by board(), events::console_handler::do_lua(), events::console_handler::do_turn(), events::console_handler::do_unsafe_lua(), gamedata(), map(), objectives(), teams(), and units().
std::vector< std::string > events::menu_handler::get_commands_list | ( | ) |
Definition at line 1610 of file menu_events.cpp.
References events::map_command_handler< Worker >::dispatch(), and events::map_command_handler< Worker >::get_commands_list().
Referenced by play_controller::tab().
gui::floating_textbox & events::menu_handler::get_textbox | ( | ) |
Definition at line 115 of file menu_events.cpp.
References textbox_info_.
Referenced by play_controller::enter_textbox(), play_controller::have_keyboard_focus(), play_controller::process_focus_keydown_event(), and play_controller::tab().
std::string events::menu_handler::get_title_suffix | ( | int | side_num | ) |
Definition at line 119 of file menu_events.cpp.
References unit_map::end(), unit_map::find_leader(), i, game_logic::msg(), teams(), and units().
Referenced by recall().
Definition at line 828 of file menu_events.cpp.
References unit_map::find_leader(), gui_, i, display::scroll_to_tile(), units(), and display::WARP.
Referenced by play_controller::hotkey_handler::goto_leader().
|
private |
Definition at line 509 of file menu_events.cpp.
References board(), gui_, game_display::observers(), teams(), and display::viewing_team().
Referenced by send_chat_message(), and speak().
void events::menu_handler::kill_unit | ( | mouse_handler & | mousehandler | ) |
Definition at line 994 of file menu_events.cpp.
References play_controller::check_victory(), unit_map::erase(), unit_map::find(), game_events::t_pump::fire(), events::mouse_handler::get_last_hex(), gui_, i, pc_, play_controller::pump(), actions::recalculate_fog(), display::redraw_minimap(), unit_display::unit_die(), units(), and unit_map::iterator_base< iter_types >::valid().
Referenced by playsingle_controller::hotkey_handler::kill_unit().
void events::menu_handler::label_settings | ( | ) |
Definition at line 1049 of file menu_events.cpp.
References board(), gui2::tlabel_settings::execute(), gui_, display::labels(), map_labels::recalculate_labels(), and display::video().
Referenced by playsingle_controller::hotkey_handler::label_settings().
void events::menu_handler::label_terrain | ( | mouse_handler & | mousehandler, |
bool | team_only | ||
) |
Definition at line 1014 of file menu_events.cpp.
References replay::add_label(), gui2::tedit_label::execute(), map_labels::get_label(), events::mouse_handler::get_last_hex(), team::get_side_rgb(), gui_, int_to_color(), font::LABEL_COLOR, display::labels(), map(), resources::recorder, map_labels::set_label(), map_labels::team_name(), terrain_label::text(), display::video(), display::viewing_side(), and display::viewing_team().
Referenced by playsingle_controller::hotkey_handler::label_terrain().
|
private |
Definition at line 113 of file menu_events.cpp.
References game_state::board_, gamestate(), and game_board::map().
Referenced by change_side(), create_unit(), events::console_handler::do_create(), do_search(), execute_gotos(), label_terrain(), save_map(), status_table(), and terrain_description().
void events::menu_handler::move_unit_to_loc | ( | const unit_map::iterator & | ui, |
const map_location & | target, | ||
bool | continue_move, | ||
int | side_num, | ||
mouse_handler & | mousehandler | ||
) |
Definition at line 1065 of file menu_events.cpp.
References continue_move(), events::mouse_handler::get_route(), play_controller::get_undo_stack(), gui_, display::invalidate_game_status(), LOG_NG, actions::move_unit_and_record(), pc_, game_display::set_route(), pathfind::marked_route::steps, teams(), game_display::unhighlight_reach(), and units().
Referenced by continue_move().
Definition at line 138 of file menu_events.cpp.
References gamestate(), play_controller::get_scenario_name(), game_state::lua_kernel_, team::objectives(), pc_, team::reset_objectives_changed(), dialogs::show_objectives(), and teams().
Referenced by play_controller::hotkey_handler::objectives().
void events::menu_handler::preferences | ( | ) |
Definition at line 468 of file menu_events.cpp.
References game_config_, gui_, display::redraw_everything(), preferences::show_preferences_dialog(), and display::video().
Referenced by play_controller::hotkey_handler::preferences().
void events::menu_handler::recall | ( | int | side_num, |
const map_location & | last_hex | ||
) |
Definition at line 608 of file menu_events.cpp.
References _(), DBG_WB, display::draw(), recall_list_manager::empty(), lg::err(), ERR_NG, actions::find_recall_location(), play_controller::get_disallow_recall(), replay_helper::get_recall(), actions::get_recalls(), get_title_suffix(), play_controller::get_whiteboard(), team::gold(), gui_, unit::id(), synced_context::ignore_error_function(), LOG_NG, game_logic::msg(), unit::name(), map_location::null_location(), pc_, team::recall_cost(), dialogs::recall_dialog(), team::recall_list(), synced_context::run_and_throw(), gui2::show_transient_message(), teams(), display::video(), and vngettext().
Referenced by playsingle_controller::hotkey_handler::recall().
void events::menu_handler::recruit | ( | int | side_num, |
const map_location & | last_hex | ||
) |
Definition at line 524 of file menu_events.cpp.
References _(), do_recruit(), display::draw(), ERR_NG, unit_type_data::find(), actions::get_recruits(), gui2::tdialog::get_retval(), gui2::tunit_recruit::get_selected_index(), gui_, gui2::twindow::OK, gui2::tdialog::show(), gui2::show_transient_message(), teams(), unit_types, and display::video().
Referenced by playsingle_controller::hotkey_handler::recruit().
void events::menu_handler::rename_unit | ( | ) |
Definition at line 856 of file menu_events.cpp.
References replay::add_rename(), current_unit(), gui2::tedit_text::execute(), gui_, game_display::invalidate_unit(), N_, resources::recorder, units(), display::video(), and display::viewing_side().
Referenced by playsingle_controller::hotkey_handler::rename_unit().
void events::menu_handler::repeat_recruit | ( | int | side_num, |
const map_location & | last_hex | ||
) |
Definition at line 557 of file menu_events.cpp.
References do_recruit(), and teams().
Referenced by playsingle_controller::hotkey_handler::repeat_recruit().
void events::menu_handler::request_control_change | ( | int | side_num, |
const std::string & | player | ||
) |
Definition at line 2195 of file menu_events.cpp.
References preferences::login(), pc_, play_controller::send_to_wesnothd(), and teams().
Referenced by gui2::tmp_change_control::controller::change_control(), and events::console_handler::do_control().
void events::menu_handler::save_map | ( | ) |
Definition at line 436 of file menu_events.cpp.
References _(), gui2::twindow::CANCEL, e, filesystem::file_exists(), filesystem::get_dir(), filesystem::get_user_data_dir(), gui_, map(), game_logic::msg(), dialogs::show_file_chooser_dialog_save(), gui2::show_message(), gui2::show_transient_message(), vgettext(), display::video(), game::error::what(), write(), filesystem::write_file(), and gui2::tmessage::yes_no_buttons.
Referenced by play_controller::save_map().
Definition at line 342 of file menu_events.cpp.
References _(), gui::dialog::BUTTON_EXTRA_LEFT, COLUMN_SEPARATOR, gui::DIALOG_BACK, unit_map::find_leader(), team::fogged(), team::get_side_color_index(), team::get_side_highlight(), gui_, HEADING_PREFIX, i, IMAGE_PREFIX, mp_ui_alerts::items, team::knows_about_team(), game_display::scroll_to_leader(), gui::menu::basic_sorter::set_alpha_sort(), gui::menu::basic_sorter::set_numeric_sort(), gui::menu::basic_sorter::set_redirect_sort(), status_table(), teams(), gui::button::TYPE_PRESS, units(), display::video(), and display::viewing_team().
Referenced by status_table().
void events::menu_handler::search | ( | ) |
Definition at line 1224 of file menu_events.cpp.
References _(), gui_, last_search_, last_search_hit_, game_logic::msg(), gui::floating_textbox::show(), textbox_info_, gui::TEXTBOX_SEARCH, and map_location::valid().
Referenced by play_controller::hotkey_handler::search().
|
protectedvirtual |
Implements events::chat_handler.
Definition at line 1495 of file menu_events.cpp.
References add_chat_message(), board(), gui_, has_friends(), display_context::is_observer(), preferences::login(), events::chat_handler::MESSAGE_PRIVATE, events::chat_handler::MESSAGE_PUBLIC, game_config::observer_team_name, game_config::sounds::private_message, resources::recorder, replay::speak(), teams(), display::viewing_side(), and display::viewing_team().
Implements events::chat_handler.
Definition at line 2235 of file menu_events.cpp.
References pc_, and play_controller::send_to_wesnothd().
|
inline |
Definition at line 50 of file menu_events.hpp.
References gui_.
Referenced by play_controller::init().
void events::menu_handler::shout | ( | ) |
Definition at line 503 of file menu_events.cpp.
References preferences::set_message_private(), and speak().
Referenced by playmp_controller::hotkey_handler::shout().
void events::menu_handler::show_chat_log | ( | ) |
Definition at line 475 of file menu_events.cpp.
References c, gui_, resources::recorder, gui2::tdialog::show(), and display::video().
Referenced by play_controller::hotkey_handler::show_chat_log().
Definition at line 698 of file menu_events.cpp.
References unit_map::end(), display::fogged(), gui_, game_display::highlight_another_reach(), teams(), game_display::unhighlight_reach(), units(), and display::viewing_team().
Referenced by play_controller::hotkey_handler::show_enemy_moves().
void events::menu_handler::show_help | ( | ) |
Definition at line 485 of file menu_events.cpp.
References gui_, help::show_help(), and display::video().
Referenced by play_controller::hotkey_handler::show_help().
Definition at line 154 of file menu_events.cpp.
References _(), gui_, team::save_id(), gui::dialog::show(), team::side_name(), and teams().
Referenced by play_controller::hotkey_handler::show_statistics().
void events::menu_handler::speak | ( | ) |
Definition at line 490 of file menu_events.cpp.
References _(), board(), gui_, has_friends(), preferences::message_private(), gui::floating_textbox::show(), textbox_info_, and gui::TEXTBOX_MESSAGE.
Referenced by shout(), playmp_controller::hotkey_handler::speak(), and whisper().
Definition at line 208 of file menu_events.cpp.
References _(), font::BAD_TEXT, board(), gui::dialog::BUTTON_EXTRA_LEFT, display_context::calculate_team_data(), COLUMN_SEPARATOR, game_config::debug, gui::DIALOG_FORWARD, ERR_NG, unit_map::find_leader(), team::fogged(), play_controller::get_classification(), team::get_side_highlight(), team_data::gold, gui_, utils::half_signed_value(), HEADING_PREFIX, i, IMAGE_PREFIX, team::is_enemy(), mp_ui_alerts::items, team::knows_about_team(), map(), team_data::net_income, font::NULL_MARKUP, pc_, scenario_settings_table(), game_display::scroll_to_leader(), gui::menu::basic_sorter::set_alpha_sort(), gui::menu::basic_sorter::set_numeric_sort(), gui::menu::basic_sorter::set_redirect_sort(), utils::signed_value(), team_data::teamname, teams(), gui::button::TYPE_PRESS, team_data::units, units(), team_data::upkeep, team::uses_fog(), team::uses_shroud(), display::video(), display::viewing_team(), team_data::villages, and gamemap::villages().
Referenced by scenario_settings_table(), and play_controller::hotkey_handler::status_table().
|
private |
Definition at line 112 of file menu_events.cpp.
References game_state::board_, gamestate(), and game_board::teams_.
Referenced by change_side(), current_unit(), events::console_handler::do_control(), events::console_handler::do_controller(), events::console_handler::do_droid(), events::console_handler::do_idle(), do_recruit(), do_search(), end_turn(), execute_gotos(), get_title_suffix(), has_friends(), move_unit_to_loc(), objectives(), recall(), recruit(), repeat_recruit(), request_control_change(), scenario_settings_table(), send_chat_message(), show_enemy_moves(), show_statistics(), status_table(), and toggle_shroud_updates().
void events::menu_handler::terrain_description | ( | mouse_handler & | mousehandler | ) |
Definition at line 844 of file menu_events.cpp.
References play_controller::get_display(), events::mouse_handler::get_last_hex(), gamemap::get_terrain_info(), gui_, map(), pc_, help::show_terrain_description(), display::shrouded(), and display::video().
Referenced by play_controller::hotkey_handler::terrain_description().
void events::menu_handler::toggle_ellipses | ( | ) |
Definition at line 1178 of file menu_events.cpp.
References preferences::ellipses(), gui_, display::invalidate_all(), and preferences::set_ellipses().
Referenced by play_controller::hotkey_handler::toggle_ellipses().
void events::menu_handler::toggle_grid | ( | ) |
Definition at line 1184 of file menu_events.cpp.
References preferences::grid(), gui_, display::invalidate_all(), and preferences::set_grid().
Referenced by play_controller::hotkey_handler::toggle_grid().
Definition at line 720 of file menu_events.cpp.
References team::auto_shroud_updates(), replay_helper::get_auto_shroud(), synced_context::run_and_throw(), teams(), and update_shroud_now().
Referenced by playsingle_controller::hotkey_handler::toggle_shroud_updates().
void events::menu_handler::unit_description | ( | ) |
Definition at line 836 of file menu_events.cpp.
References current_unit(), play_controller::get_display(), pc_, help::show_unit_description(), units(), and display::video().
Referenced by play_controller::hotkey_handler::unit_description().
void events::menu_handler::unit_hold_position | ( | mouse_handler & | mousehandler, |
int | side_num | ||
) |
Definition at line 1190 of file menu_events.cpp.
References events::mouse_handler::cycle_units(), display::draw(), unit_map::end(), unit_map::find(), events::mouse_handler::get_selected_hex(), gui_, display::invalidate(), events::mouse_handler::set_current_paths(), and units().
Referenced by playsingle_controller::hotkey_handler::unit_hold_position().
void events::menu_handler::unit_list | ( | ) |
Definition at line 167 of file menu_events.cpp.
References gui_, and dialogs::show_unit_list().
Referenced by play_controller::hotkey_handler::unit_list().
|
private |
Definition at line 111 of file menu_events.cpp.
References game_state::board_, gamestate(), and game_board::units_.
Referenced by change_side(), continue_move(), create_unit(), current_unit(), events::console_handler::do_create(), do_search(), events::console_handler::do_unit(), end_turn(), end_unit_turn(), execute_gotos(), get_title_suffix(), goto_leader(), kill_unit(), move_unit_to_loc(), rename_unit(), scenario_settings_table(), show_enemy_moves(), status_table(), unit_description(), and unit_hold_position().
Definition at line 731 of file menu_events.cpp.
References replay_helper::get_update_shroud(), and synced_context::run_and_throw().
Referenced by toggle_shroud_updates(), and playsingle_controller::hotkey_handler::update_shroud_now().
void events::menu_handler::user_command | ( | ) |
Definition at line 2190 of file menu_events.cpp.
References gui_, translation::sgettext(), gui::floating_textbox::show(), gui::TEXTBOX_COMMAND, and textbox_info_.
Referenced by playsingle_controller::hotkey_handler::user_command().
void events::menu_handler::whisper | ( | ) |
Definition at line 497 of file menu_events.cpp.
References preferences::set_message_private(), and speak().
Referenced by playmp_controller::hotkey_handler::whisper().
|
friend |
Definition at line 115 of file menu_events.hpp.
|
private |
Definition at line 132 of file menu_events.hpp.
Referenced by events::console_handler::do_choose_level(), and preferences().
|
private |
Definition at line 122 of file menu_events.hpp.
Referenced by add_chat_message(), ai_formula(), clear_labels(), clear_messages(), create_unit(), current_unit(), events::console_handler::do_benchmark(), events::console_handler::do_choose_level(), events::console_handler::do_clear(), events::console_handler::do_control(), events::console_handler::do_control_dialog(), events::console_handler::do_create(), events::console_handler::do_droid(), events::console_handler::do_foreground(), events::console_handler::do_idle(), events::console_handler::do_inspect(), events::console_handler::do_layers(), do_recruit(), events::console_handler::do_refresh(), do_search(), events::console_handler::do_show_var(), events::console_handler::do_sunset(), events::console_handler::do_theme(), events::console_handler::do_toggle_draw_coordinates(), events::console_handler::do_toggle_draw_terrain_codes(), events::console_handler::do_undiscover(), events::console_handler::do_unsafe_lua(), end_unit_turn(), execute_gotos(), goto_leader(), has_friends(), kill_unit(), label_settings(), label_terrain(), move_unit_to_loc(), preferences(), recall(), recruit(), rename_unit(), save_map(), scenario_settings_table(), search(), send_chat_message(), set_gui(), show_chat_log(), show_enemy_moves(), show_help(), show_statistics(), speak(), status_table(), terrain_description(), toggle_ellipses(), toggle_grid(), unit_hold_position(), unit_list(), and user_command().
|
private |
Definition at line 135 of file menu_events.hpp.
Referenced by do_search(), and search().
|
private |
Definition at line 136 of file menu_events.hpp.
Referenced by do_search(), and search().
|
private |
Definition at line 123 of file menu_events.hpp.
Referenced by ai_formula(), current_unit(), events::console_handler::do_choose_level(), events::console_handler::do_control(), events::console_handler::do_create(), events::console_handler::do_debug(), events::console_handler::do_droid(), events::console_handler::do_idle(), events::console_handler::do_layers(), do_recruit(), events::console_handler::do_save(), events::console_handler::do_toggle_whiteboard(), events::console_handler::do_whiteboard_options(), end_turn(), execute_gotos(), gamestate(), events::console_handler::is_enabled(), kill_unit(), move_unit_to_loc(), objectives(), recall(), request_control_change(), send_to_server(), status_table(), terrain_description(), and unit_description().
|
private |
Definition at line 134 of file menu_events.hpp.
Referenced by ai_formula(), events::console_handler::do_control(), events::console_handler::do_droid(), events::console_handler::do_idle(), do_speak(), get_textbox(), search(), speak(), and user_command().