#include <multiplayer_lobby.hpp>
Definition at line 33 of file multiplayer_lobby.hpp.
Definition at line 44 of file multiplayer_lobby.cpp.
References gui::menu::set_numeric_keypress_selection().
void mp::gamebrowser::scroll | ( | unsigned int | pos | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 67 of file multiplayer_lobby.cpp.
References games_, gui::scrollarea::inner_location(), row_height(), gui::widget::set_dirty(), and visible_range_.
Referenced by set_game_items(), and set_inner_location().
void mp::gamebrowser::handle_event | ( | const SDL_Event & | event | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 269 of file multiplayer_lobby.cpp.
References gui::scrollarea::adjust_position(), DOUBLE_CLICK_EVENT, double_clicked_, gui::widget::focus(), games_, get_item_rect(), map_editor::handle_event(), ignore_next_doubleclick_, gui::scrollarea::inner_location(), last_was_doubleclick_, loc, point_in_rect(), selected_, selection_is_joinable(), selection_is_observable(), gui::widget::set_dirty(), gui::widget::set_focus(), and visible_range_.
void mp::gamebrowser::set_inner_location | ( | const SDL_Rect & | rect | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 59 of file multiplayer_lobby.cpp.
References gui::widget::bg_register(), games_, gui::scrollarea::get_position(), row_height(), scroll(), gui::scrollarea::set_full_size(), and gui::scrollarea::set_shown_size().
void mp::gamebrowser::set_item_height | ( | unsigned int | height | ) |
Definition at line 371 of file multiplayer_lobby.cpp.
References _, _n, twml_exception::dev_message, ERR_CF, config::find_child(), games_, config::get_attribute(), config::get_children(), gui::scrollarea::get_max_position(), gui::scrollarea::get_position(), image::getMinimap(), gamemap::h(), gui::scrollarea::has_scrollbar(), gui::scrollarea::inner_location(), item_height_, lexical_cast(), map, mp::minimap_cache_item::map_data, map_hashes_, mp::minimap_cache_item::map_info_size, mp::minimap_cache_item::mini_map, minimap_size_, gamemap::incorrect_format_exception::msg_, read_map(), row_height(), scroll(), selected_, selected_game(), gui::widget::set_dirty(), gui::scrollarea::set_full_size(), gui::scrollarea::set_position(), gui::scrollarea::set_shown_size(), config::values, vgettext(), visible_range_, and gamemap::w().
Referenced by mp::lobby::gamelist_updated().
void mp::gamebrowser::draw | ( | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 86 of file multiplayer_lobby.cpp.
References util::scoped_resource< T, ReleasePolicy >::assign(), gui::widget::bg_restore(), gui::widget::clip_rect(), gui::widget::dirty(), draw_contents(), gui::widget::hidden(), gui::widget::location(), gui::widget::set_dirty(), update_rect(), and gui::widget::video().
void mp::gamebrowser::draw_contents | ( | ) | [virtual] |
Reimplemented from gui::menu.
Definition at line 101 of file multiplayer_lobby.cpp.
References _, gui::menu::style::draw_row(), font::draw_text(), games_, get_item_rect(), gui::scrollarea::inner_location(), margin_, font::NORMAL_COLOUR, gui::menu::NORMAL_ROW, rect, selected_, gui::menu::SELECTED_ROW, font::SIZE_NORMAL, gui::menu::style_, gui::widget::video(), and visible_range_.
Referenced by draw().
void mp::gamebrowser::draw_row | ( | const size_t | row_index, | |
const SDL_Rect & | rect, | |||
ROW_TYPE | type | |||
) | [virtual] |
Reimplemented from gui::menu.
Definition at line 113 of file multiplayer_lobby.cpp.
References _, font::BAD_COLOUR, CVideo::blit_surface(), games_, image::get_image(), font::get_rendered_text(), mp::gamebrowser::game_item::gold, gold_icon_locator_, font::GOOD_COLOUR, font::GRAY_COLOUR, h_padding_, font::make_text_ellipsis(), mp::gamebrowser::game_item::map_info, margin_, mp::gamebrowser::game_item::mini_map, minimap_size_, mp::gamebrowser::game_item::name, no_observer_icon_locator_, font::NORMAL_COLOUR, observer_icon_locator_, mp::gamebrowser::game_item::observers, mp::gamebrowser::game_item::password_required, mp::gamebrowser::game_item::reloaded, font::SIZE_NORMAL, font::SIZE_PLUS, mp::gamebrowser::game_item::started, mp::gamebrowser::game_item::status, mp::gamebrowser::game_item::time_limit, time_limit_icon_locator_, mp::gamebrowser::game_item::use_map_settings, mp::gamebrowser::game_item::vacant_slots, mp::gamebrowser::game_item::verified, gui::widget::video(), mp::gamebrowser::game_item::vision, vision_icon_locator_, mp::gamebrowser::game_item::xp, xp_icon_locator_, and font::YELLOW_COLOUR.
SDL_Rect mp::gamebrowser::get_item_rect | ( | size_t | index | ) | const |
Definition at line 76 of file multiplayer_lobby.cpp.
References gui::scrollarea::inner_location(), loc, row_height(), and visible_range_.
Referenced by draw_contents(), and handle_event().
bool mp::gamebrowser::empty | ( | ) | const [inline] |
Definition at line 69 of file multiplayer_lobby.hpp.
References games_.
Referenced by mp::lobby::process_event(), selected(), selection_is_joinable(), and selection_is_observable().
bool mp::gamebrowser::selection_is_joinable | ( | ) | const [inline] |
Definition at line 70 of file multiplayer_lobby.hpp.
References empty(), games_, and selected_.
Referenced by mp::lobby::gamelist_updated(), handle_event(), and mp::lobby::process_event().
bool mp::gamebrowser::selection_is_observable | ( | ) | const [inline] |
Definition at line 72 of file multiplayer_lobby.hpp.
References empty(), games_, and selected_.
Referenced by mp::lobby::gamelist_updated(), handle_event(), and mp::lobby::process_event().
bool mp::gamebrowser::selected | ( | ) | const [inline] |
Definition at line 73 of file multiplayer_lobby.hpp.
References double_clicked_, and empty().
Referenced by mp::lobby::process_event().
void mp::gamebrowser::reset_selection | ( | ) | [inline] |
Reimplemented from gui::menu.
Definition at line 74 of file multiplayer_lobby.hpp.
References double_clicked_.
Referenced by mp::lobby::process_event().
int mp::gamebrowser::selection | ( | ) | const [inline] |
Reimplemented from gui::menu.
Definition at line 75 of file multiplayer_lobby.hpp.
References selected_.
Referenced by mp::lobby::process_event().
game_item mp::gamebrowser::selected_game | ( | ) | [inline] |
Definition at line 76 of file multiplayer_lobby.hpp.
References games_, and selected_.
Referenced by mp::lobby::process_event(), and set_game_items().
unsigned int mp::gamebrowser::row_height | ( | ) | const [inline, protected] |
Definition at line 78 of file multiplayer_lobby.hpp.
References gui::menu::style::get_thickness(), item_height_, and gui::menu::style_.
Referenced by get_item_rect(), scroll(), set_game_items(), and set_inner_location().
const config* mp::gamebrowser::map_hashes_ [private] |
unsigned int mp::gamebrowser::item_height_ [private] |
Reimplemented from gui::menu.
Definition at line 89 of file multiplayer_lobby.hpp.
Referenced by row_height(), and set_game_items().
int mp::gamebrowser::margin_ [private] |
int mp::gamebrowser::minimap_size_ [private] |
Definition at line 91 of file multiplayer_lobby.hpp.
Referenced by draw_row(), and set_game_items().
int mp::gamebrowser::h_padding_ [private] |
int mp::gamebrowser::header_height_ [private] |
Definition at line 93 of file multiplayer_lobby.hpp.
size_t mp::gamebrowser::selected_ [private] |
Reimplemented from gui::menu.
Definition at line 94 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), handle_event(), selected_game(), selection(), selection_is_joinable(), selection_is_observable(), and set_game_items().
std::pair<size_t, size_t> mp::gamebrowser::visible_range_ [private] |
Definition at line 95 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), get_item_rect(), handle_event(), scroll(), and set_game_items().
std::vector<game_item> mp::gamebrowser::games_ [private] |
Definition at line 96 of file multiplayer_lobby.hpp.
Referenced by draw_contents(), draw_row(), empty(), handle_event(), scroll(), selected_game(), selection_is_joinable(), selection_is_observable(), set_game_items(), and set_inner_location().
std::vector<size_t> mp::gamebrowser::redraw_items_ [private] |
Definition at line 97 of file multiplayer_lobby.hpp.
std::vector<int> mp::gamebrowser::widths_ [private] |
Definition at line 98 of file multiplayer_lobby.hpp.
bool mp::gamebrowser::double_clicked_ [private] |
Reimplemented from gui::menu.
Definition at line 99 of file multiplayer_lobby.hpp.
Referenced by handle_event(), reset_selection(), and selected().
bool mp::gamebrowser::ignore_next_doubleclick_ [private] |
Reimplemented from gui::menu.
Definition at line 100 of file multiplayer_lobby.hpp.
Referenced by handle_event().
bool mp::gamebrowser::last_was_doubleclick_ [private] |
Reimplemented from gui::menu.
Definition at line 101 of file multiplayer_lobby.hpp.
Referenced by handle_event().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |