This namespace provides handlers which play the sounds / notifications for various mp server events, depending on the preference configuration. More...
Functions | |
void | game_created (const std::string &scenario, const std::string &name) |
void | player_joins (bool is_lobby) |
void | player_leaves (bool is_lobby) |
void | public_message (bool is_lobby, const std::string &sender, const std::string &message) |
void | friend_message (bool is_lobby, const std::string &sender, const std::string &message) |
void | private_message (bool is_lobby, const std::string &sender, const std::string &message) |
void | server_message (bool is_lobby, const std::string &sender, const std::string &message) |
void | ready_for_start () |
void | game_has_begun () |
void | turn_changed (const std::string &player_name) |
bool | get_def_pref_sound (const std::string &id) |
bool | get_def_pref_notif (const std::string &id) |
bool | get_def_pref_lobby (const std::string &id) |
Variables | |
const std::vector< std::string > | items |
This namespace provides handlers which play the sounds / notifications for various mp server events, depending on the preference configuration.
This namespace provides handlers which play the sounds / notificaitons for various mp server events, depending on the preference configuration.
void mp::ui_alerts::friend_message | ( | bool | is_lobby, |
const std::string & | sender, | ||
const std::string & | message | ||
) |
Definition at line 138 of file mp_ui_alerts.cpp.
References desktop::notifications::CHAT, game_config::sounds::friend_message, mp::message, sound::play_UI_sound(), and desktop::notifications::send().
Referenced by display_chat_manager::add_chat_message(), and mp::do_notify().
void mp::ui_alerts::game_created | ( | const std::string & | scenario, |
const std::string & | name | ||
) |
Definition at line 77 of file mp_ui_alerts.cpp.
References _(), game_config::sounds::game_created, mp::message, desktop::notifications::OTHER, sound::play_UI_sound(), desktop::notifications::send(), and VGETTEXT.
Referenced by mp::do_notify().
void mp::ui_alerts::game_has_begun | ( | ) |
Definition at line 198 of file mp_ui_alerts.cpp.
References _(), game_config::sounds::game_has_begun, desktop::notifications::OTHER, sound::play_UI_sound(), and desktop::notifications::send().
Referenced by gui2::dialogs::mp_join_game::post_show().
bool mp::ui_alerts::get_def_pref_lobby | ( | const std::string & | id | ) |
Definition at line 234 of file mp_ui_alerts.cpp.
Referenced by gui2::dialogs::revert_to_default_pref_values(), and gui2::dialogs::setup_item().
bool mp::ui_alerts::get_def_pref_notif | ( | const std::string & | id | ) |
Definition at line 223 of file mp_ui_alerts.cpp.
References desktop::notifications::available().
Referenced by gui2::dialogs::revert_to_default_pref_values(), and gui2::dialogs::setup_item().
bool mp::ui_alerts::get_def_pref_sound | ( | const std::string & | id | ) |
Definition at line 218 of file mp_ui_alerts.cpp.
Referenced by gui2::dialogs::revert_to_default_pref_values(), and gui2::dialogs::setup_item().
void mp::ui_alerts::player_joins | ( | bool | is_lobby | ) |
Definition at line 93 of file mp_ui_alerts.cpp.
References _(), desktop::notifications::OTHER, sound::play_UI_sound(), game_config::sounds::player_joins, and desktop::notifications::send().
Referenced by mp::do_notify().
void mp::ui_alerts::player_leaves | ( | bool | is_lobby | ) |
Definition at line 108 of file mp_ui_alerts.cpp.
References _(), desktop::notifications::OTHER, sound::play_UI_sound(), game_config::sounds::player_leaves, and desktop::notifications::send().
Referenced by mp::do_notify().
void mp::ui_alerts::private_message | ( | bool | is_lobby, |
const std::string & | sender, | ||
const std::string & | message | ||
) |
Definition at line 153 of file mp_ui_alerts.cpp.
References desktop::notifications::CHAT, mp::message, sound::play_UI_sound(), game_config::sounds::private_message, and desktop::notifications::send().
Referenced by display_chat_manager::add_chat_message(), and mp::do_notify().
void mp::ui_alerts::public_message | ( | bool | is_lobby, |
const std::string & | sender, | ||
const std::string & | message | ||
) |
Definition at line 123 of file mp_ui_alerts.cpp.
References desktop::notifications::CHAT, mp::message, sound::play_UI_sound(), game_config::sounds::public_message, and desktop::notifications::send().
Referenced by display_chat_manager::add_chat_message(), and mp::do_notify().
void mp::ui_alerts::ready_for_start | ( | ) |
Definition at line 183 of file mp_ui_alerts.cpp.
References _(), desktop::notifications::OTHER, sound::play_bell(), game_config::sounds::ready_for_start, desktop::notifications::send(), and preferences::UI_sound_on().
Referenced by gui2::dialogs::mp_staging::network_handler().
void mp::ui_alerts::server_message | ( | bool | is_lobby, |
const std::string & | sender, | ||
const std::string & | message | ||
) |
Definition at line 168 of file mp_ui_alerts.cpp.
References desktop::notifications::CHAT, mp::message, sound::play_UI_sound(), desktop::notifications::send(), and game_config::sounds::server_message.
Referenced by display_chat_manager::add_chat_message(), and mp::do_notify().
void mp::ui_alerts::turn_changed | ( | const std::string & | player_name | ) |
Definition at line 209 of file mp_ui_alerts.cpp.
References _(), desktop::notifications::send(), desktop::notifications::TURN_CHANGED, and VGETTEXT.
Referenced by playmp_controller::play_human_turn().
const std::vector< std::string > mp::ui_alerts::items |
Definition at line 64 of file mp_ui_alerts.cpp.
Referenced by halo::halo_impl::add(), ai::target_location_goal::add_targets(), ai::protect_goal::add_targets(), ng::depcheck::manager::change_era_dialog(), ng::depcheck::manager::change_scenario_dialog(), default_map_generator_job::default_generate_map(), wfl::builtins::DEFINE_WFL_FUNCTION(), ng::depcheck::manager::disable_mods_dialog(), editor::editor_controller::do_execute_command(), ng::depcheck::manager::enable_mods_dialog(), controller_base::execute_action(), hotkey::command_executor::execute_action(), editor::context_manager::expand_areas_menu(), play_controller::hotkey_handler::expand_autosaves(), editor::context_manager::expand_load_mru_menu(), editor::context_manager::expand_local_time_menu(), editor::context_manager::expand_open_maps_menu(), editor::editor_palette< Item >::expand_palette_groups_menu(), editor::empty_palette::expand_palette_groups_menu(), editor::location_palette::expand_palette_groups_menu(), play_controller::hotkey_handler::expand_quickreplay(), editor::context_manager::expand_sides_menu(), editor::context_manager::expand_time_menu(), play_controller::hotkey_handler::expand_wml_commands(), gui::menu::fill_items(), cave_map_generator::cave_map_generator_job::generate_chambers(), preprocessor_data::get_chunk(), game_events::wmi_manager::get_items(), hotkey::command_executor::get_menu_images(), ng::depcheck::manager::get_required_not_installed(), wfl::string_callable::get_value(), controller_base::handle_event(), display::init_flags_for_side_internal(), terrain_builder::load_images(), controller_base::long_touch_callback(), markov_prefixes(), theme::object::modify_location(), gui2::dialogs::depcheck_select_new::post_show(), gui2::dialogs::depcheck_select_new::pre_show(), gui2::dialogs::mp_alerts_options::pre_show(), read_rect(), resolve_rect(), gui2::dialogs::revert_to_default_pref_values(), gui::menu::set_items(), gui::button::set_label(), gui2::set_scrollbar_mode(), editor::terrain_palette::setup(), controller_base::show_menu(), editor::editor_controller::show_menu(), play_controller::hotkey_handler::show_menu(), hotkey::command_executor::show_menu(), and lua_gui2::show_menu().