Project Alice
Loading...
Searching...
No Matches
ui::state Struct Reference

#include <gui_graphics.hpp>

Collaboration diagram for ui::state:

Public Member Functions

 state ()
 
 ~state ()
 

Public Attributes

element_baseunder_mouse = nullptr
 
element_baseleft_mouse_hold_target = nullptr
 
uint16_t scrollbar_timer = 0
 
uint16_t fps_timer = 0
 
std::chrono::time_point< std::chrono::steady_clock > last_render_time {}
 
bool scrollbar_continuous_movement = false
 
float last_fps = 0.f
 
bool lazy_load_in_game = false
 
element_basescroll_target = nullptr
 
element_basedrag_target = nullptr
 
element_baseedit_target = nullptr
 
element_baselast_tooltip = nullptr
 
element_basemouse_sensitive_target = nullptr
 
xy_pair target_ul_bounds = xy_pair{ 0, 0 }
 
xy_pair target_lr_bounds = xy_pair{ 0, 0 }
 
uint32_t cursor_size = 16
 
xy_pair relative_mouse_location = xy_pair{0, 0}
 
std::unique_ptr< element_baseunits_root
 
std::unique_ptr< element_basergos_root
 
std::unique_ptr< element_baseprovince_details_root
 
std::unique_ptr< element_baseroot
 
std::unique_ptr< element_basemilitary_root
 
std::unique_ptr< element_basenation_picker
 
std::unique_ptr< element_baseend_screen
 
std::unique_ptr< element_baseselect_states_legend
 
std::unique_ptr< element_basearmy_group_selector_root
 
std::unique_ptr< element_basearmy_group_deselector_root
 
std::unique_ptr< tool_tiptooltip
 
std::unique_ptr< grid_boxunit_details_box
 
ankerl::unordered_dense::map< dcon::text_key, element_target, hash_text_keydefs_by_name
 
element_basemain_menu = nullptr
 
element_baser_main_menu = nullptr
 
element_basefps_counter = nullptr
 
element_baseconsole_window = nullptr
 
element_baseconsole_window_r = nullptr
 
element_basetopbar_window = nullptr
 
element_basetopbar_subwindow = nullptr
 
element_baseprovince_window = nullptr
 
element_basesearch_window = nullptr
 
element_baseledger_window = nullptr
 
element_baser_ledger_window = nullptr
 
element_basediplomacy_subwindow = nullptr
 
element_basepolitics_subwindow = nullptr
 
element_basepopulation_subwindow = nullptr
 
element_baseproduction_subwindow = nullptr
 
element_basetrade_subwindow = nullptr
 
element_baseunit_window_army = nullptr
 
element_baseunit_window_navy = nullptr
 
element_basebuild_unit_window = nullptr
 
element_basemsg_filters_window = nullptr
 
element_baseoutliner_window = nullptr
 
element_basetechnology_subwindow = nullptr
 
element_basemilitary_subwindow = nullptr
 
element_baserequest_window = nullptr
 
unit_details_window< dcon::army_id > * army_status_window = nullptr
 
unit_details_window< dcon::navy_id > * navy_status_window = nullptr
 
element_basearmy_group_window_land = nullptr
 
element_basemulti_unit_selection_window = nullptr
 
element_basemsg_log_window = nullptr
 
element_basemsg_window = nullptr
 
element_basemenubar_window = nullptr
 
element_basemain_menu_win = nullptr
 
element_basechat_window = nullptr
 
element_baser_chat_window = nullptr
 
element_basemap_gradient_legend = nullptr
 
element_basemap_civ_level_legend = nullptr
 
element_basemap_col_legend = nullptr
 
element_basemap_dip_legend = nullptr
 
element_basemap_rr_legend = nullptr
 
element_basemap_nav_legend = nullptr
 
element_basemap_rank_legend = nullptr
 
element_basemap_rec_legend = nullptr
 
element_basetl_chat_list = nullptr
 
element_baseerror_win = nullptr
 
element_basenaval_combat_window = nullptr
 
element_basearmy_combat_window = nullptr
 
element_basechange_leader_window = nullptr
 
element_basemacro_builder_window = nullptr
 
element_baserequest_topbar_listbox = nullptr
 
element_basebuild_province_unit_window = nullptr
 
std::array< chat_message, 32 > chat_messages
 
std::vector< dcon::technology_id > tech_queue
 
uint8_t chat_messages_index = 0
 
dcon::gfx_object_id bg_gfx_id {}
 
dcon::gfx_object_id load_screens_gfx_id [8]
 
std::vector< std::unique_ptr< element_base > > endof_landcombat_windows
 
std::vector< std::unique_ptr< element_base > > endof_navalcombat_windows
 
int32_t held_game_speed = 1
 
sys::macro_builder_template current_template
 
sys::macro_builder_template main_template
 
std::vector< sys::macro_builder_templatetemplates
 
uint16_t tooltip_font = 0
 
bool ctrl_held_down = false
 
bool shift_held_down = false
 

Detailed Description

Definition at line 403 of file gui_graphics.hpp.

Constructor & Destructor Documentation

◆ state()

ui::state::state ( )

Definition at line 1210 of file gui_element_types.cpp.

Here is the caller graph for this function:

◆ ~state()

ui::state::~state ( )
default

Member Data Documentation

◆ army_combat_window

element_base* ui::state::army_combat_window = nullptr

Definition at line 486 of file gui_graphics.hpp.

◆ army_group_deselector_root

std::unique_ptr<element_base> ui::state::army_group_deselector_root

Definition at line 434 of file gui_graphics.hpp.

◆ army_group_selector_root

std::unique_ptr<element_base> ui::state::army_group_selector_root

Definition at line 433 of file gui_graphics.hpp.

◆ army_group_window_land

element_base* ui::state::army_group_window_land = nullptr

Definition at line 467 of file gui_graphics.hpp.

◆ army_status_window

unit_details_window<dcon::army_id>* ui::state::army_status_window = nullptr

Definition at line 465 of file gui_graphics.hpp.

◆ bg_gfx_id

dcon::gfx_object_id ui::state::bg_gfx_id {}

Definition at line 496 of file gui_graphics.hpp.

◆ build_province_unit_window

element_base* ui::state::build_province_unit_window = nullptr

Definition at line 490 of file gui_graphics.hpp.

◆ build_unit_window

element_base* ui::state::build_unit_window = nullptr

Definition at line 459 of file gui_graphics.hpp.

◆ change_leader_window

element_base* ui::state::change_leader_window = nullptr

Definition at line 487 of file gui_graphics.hpp.

◆ chat_messages

std::array<chat_message, 32> ui::state::chat_messages

Definition at line 492 of file gui_graphics.hpp.

◆ chat_messages_index

uint8_t ui::state::chat_messages_index = 0

Definition at line 494 of file gui_graphics.hpp.

◆ chat_window

element_base* ui::state::chat_window = nullptr

Definition at line 473 of file gui_graphics.hpp.

◆ console_window

element_base* ui::state::console_window = nullptr

Definition at line 444 of file gui_graphics.hpp.

◆ console_window_r

element_base* ui::state::console_window_r = nullptr

Definition at line 445 of file gui_graphics.hpp.

◆ ctrl_held_down

bool ui::state::ctrl_held_down = false

Definition at line 507 of file gui_graphics.hpp.

◆ current_template

sys::macro_builder_template ui::state::current_template

Definition at line 503 of file gui_graphics.hpp.

◆ cursor_size

uint32_t ui::state::cursor_size = 16

Definition at line 420 of file gui_graphics.hpp.

◆ defs_by_name

ankerl::unordered_dense::map<dcon::text_key, element_target, hash_text_key> ui::state::defs_by_name

Definition at line 438 of file gui_graphics.hpp.

◆ diplomacy_subwindow

element_base* ui::state::diplomacy_subwindow = nullptr

Definition at line 452 of file gui_graphics.hpp.

◆ drag_target

element_base* ui::state::drag_target = nullptr

Definition at line 413 of file gui_graphics.hpp.

◆ edit_target

element_base* ui::state::edit_target = nullptr

Definition at line 414 of file gui_graphics.hpp.

◆ end_screen

std::unique_ptr<element_base> ui::state::end_screen

Definition at line 430 of file gui_graphics.hpp.

◆ endof_landcombat_windows

std::vector<std::unique_ptr<element_base> > ui::state::endof_landcombat_windows

Definition at line 499 of file gui_graphics.hpp.

◆ endof_navalcombat_windows

std::vector<std::unique_ptr<element_base> > ui::state::endof_navalcombat_windows

Definition at line 500 of file gui_graphics.hpp.

◆ error_win

element_base* ui::state::error_win = nullptr

Definition at line 484 of file gui_graphics.hpp.

◆ fps_counter

element_base* ui::state::fps_counter = nullptr

Definition at line 443 of file gui_graphics.hpp.

◆ fps_timer

uint16_t ui::state::fps_timer = 0

Definition at line 407 of file gui_graphics.hpp.

◆ held_game_speed

int32_t ui::state::held_game_speed = 1

Definition at line 502 of file gui_graphics.hpp.

◆ last_fps

float ui::state::last_fps = 0.f

Definition at line 410 of file gui_graphics.hpp.

◆ last_render_time

std::chrono::time_point<std::chrono::steady_clock> ui::state::last_render_time {}

Definition at line 408 of file gui_graphics.hpp.

◆ last_tooltip

element_base* ui::state::last_tooltip = nullptr

Definition at line 415 of file gui_graphics.hpp.

◆ lazy_load_in_game

bool ui::state::lazy_load_in_game = false

Definition at line 411 of file gui_graphics.hpp.

◆ ledger_window

element_base* ui::state::ledger_window = nullptr

Definition at line 450 of file gui_graphics.hpp.

◆ left_mouse_hold_target

element_base* ui::state::left_mouse_hold_target = nullptr

Definition at line 405 of file gui_graphics.hpp.

◆ load_screens_gfx_id

dcon::gfx_object_id ui::state::load_screens_gfx_id[8]

Definition at line 497 of file gui_graphics.hpp.

◆ macro_builder_window

element_base* ui::state::macro_builder_window = nullptr

Definition at line 488 of file gui_graphics.hpp.

◆ main_menu

element_base* ui::state::main_menu = nullptr

Definition at line 441 of file gui_graphics.hpp.

◆ main_menu_win

element_base* ui::state::main_menu_win = nullptr

Definition at line 472 of file gui_graphics.hpp.

◆ main_template

sys::macro_builder_template ui::state::main_template

Definition at line 504 of file gui_graphics.hpp.

◆ map_civ_level_legend

element_base* ui::state::map_civ_level_legend = nullptr

Definition at line 476 of file gui_graphics.hpp.

◆ map_col_legend

element_base* ui::state::map_col_legend = nullptr

Definition at line 477 of file gui_graphics.hpp.

◆ map_dip_legend

element_base* ui::state::map_dip_legend = nullptr

Definition at line 478 of file gui_graphics.hpp.

◆ map_gradient_legend

element_base* ui::state::map_gradient_legend = nullptr

Definition at line 475 of file gui_graphics.hpp.

◆ map_nav_legend

element_base* ui::state::map_nav_legend = nullptr

Definition at line 480 of file gui_graphics.hpp.

◆ map_rank_legend

element_base* ui::state::map_rank_legend = nullptr

Definition at line 481 of file gui_graphics.hpp.

◆ map_rec_legend

element_base* ui::state::map_rec_legend = nullptr

Definition at line 482 of file gui_graphics.hpp.

◆ map_rr_legend

element_base* ui::state::map_rr_legend = nullptr

Definition at line 479 of file gui_graphics.hpp.

◆ menubar_window

element_base* ui::state::menubar_window = nullptr

Definition at line 471 of file gui_graphics.hpp.

◆ military_root

std::unique_ptr<element_base> ui::state::military_root

Definition at line 428 of file gui_graphics.hpp.

◆ military_subwindow

element_base* ui::state::military_subwindow = nullptr

Definition at line 463 of file gui_graphics.hpp.

◆ mouse_sensitive_target

element_base* ui::state::mouse_sensitive_target = nullptr

Definition at line 416 of file gui_graphics.hpp.

◆ msg_filters_window

element_base* ui::state::msg_filters_window = nullptr

Definition at line 460 of file gui_graphics.hpp.

◆ msg_log_window

element_base* ui::state::msg_log_window = nullptr

Definition at line 469 of file gui_graphics.hpp.

◆ msg_window

element_base* ui::state::msg_window = nullptr

Definition at line 470 of file gui_graphics.hpp.

◆ multi_unit_selection_window

element_base* ui::state::multi_unit_selection_window = nullptr

Definition at line 468 of file gui_graphics.hpp.

◆ nation_picker

std::unique_ptr<element_base> ui::state::nation_picker

Definition at line 429 of file gui_graphics.hpp.

◆ naval_combat_window

element_base* ui::state::naval_combat_window = nullptr

Definition at line 485 of file gui_graphics.hpp.

◆ navy_status_window

unit_details_window<dcon::navy_id>* ui::state::navy_status_window = nullptr

Definition at line 466 of file gui_graphics.hpp.

◆ outliner_window

element_base* ui::state::outliner_window = nullptr

Definition at line 461 of file gui_graphics.hpp.

◆ politics_subwindow

element_base* ui::state::politics_subwindow = nullptr

Definition at line 453 of file gui_graphics.hpp.

◆ population_subwindow

element_base* ui::state::population_subwindow = nullptr

Definition at line 454 of file gui_graphics.hpp.

◆ production_subwindow

element_base* ui::state::production_subwindow = nullptr

Definition at line 455 of file gui_graphics.hpp.

◆ province_details_root

std::unique_ptr<element_base> ui::state::province_details_root

Definition at line 426 of file gui_graphics.hpp.

◆ province_window

element_base* ui::state::province_window = nullptr

Definition at line 448 of file gui_graphics.hpp.

◆ r_chat_window

element_base* ui::state::r_chat_window = nullptr

Definition at line 474 of file gui_graphics.hpp.

◆ r_ledger_window

element_base* ui::state::r_ledger_window = nullptr

Definition at line 451 of file gui_graphics.hpp.

◆ r_main_menu

element_base* ui::state::r_main_menu = nullptr

Definition at line 442 of file gui_graphics.hpp.

◆ relative_mouse_location

xy_pair ui::state::relative_mouse_location = xy_pair{0, 0}

Definition at line 422 of file gui_graphics.hpp.

◆ request_topbar_listbox

element_base* ui::state::request_topbar_listbox = nullptr

Definition at line 489 of file gui_graphics.hpp.

◆ request_window

element_base* ui::state::request_window = nullptr

Definition at line 464 of file gui_graphics.hpp.

◆ rgos_root

std::unique_ptr<element_base> ui::state::rgos_root

Definition at line 425 of file gui_graphics.hpp.

◆ root

std::unique_ptr<element_base> ui::state::root

Definition at line 427 of file gui_graphics.hpp.

◆ scroll_target

element_base* ui::state::scroll_target = nullptr

Definition at line 412 of file gui_graphics.hpp.

◆ scrollbar_continuous_movement

bool ui::state::scrollbar_continuous_movement = false

Definition at line 409 of file gui_graphics.hpp.

◆ scrollbar_timer

uint16_t ui::state::scrollbar_timer = 0

Definition at line 406 of file gui_graphics.hpp.

◆ search_window

element_base* ui::state::search_window = nullptr

Definition at line 449 of file gui_graphics.hpp.

◆ select_states_legend

std::unique_ptr<element_base> ui::state::select_states_legend

Definition at line 431 of file gui_graphics.hpp.

◆ shift_held_down

bool ui::state::shift_held_down = false

Definition at line 508 of file gui_graphics.hpp.

◆ target_lr_bounds

xy_pair ui::state::target_lr_bounds = xy_pair{ 0, 0 }

Definition at line 418 of file gui_graphics.hpp.

◆ target_ul_bounds

xy_pair ui::state::target_ul_bounds = xy_pair{ 0, 0 }

Definition at line 417 of file gui_graphics.hpp.

◆ tech_queue

std::vector<dcon::technology_id> ui::state::tech_queue

Definition at line 493 of file gui_graphics.hpp.

◆ technology_subwindow

element_base* ui::state::technology_subwindow = nullptr

Definition at line 462 of file gui_graphics.hpp.

◆ templates

std::vector<sys::macro_builder_template> ui::state::templates

Definition at line 505 of file gui_graphics.hpp.

◆ tl_chat_list

element_base* ui::state::tl_chat_list = nullptr

Definition at line 483 of file gui_graphics.hpp.

◆ tooltip

std::unique_ptr<tool_tip> ui::state::tooltip

Definition at line 436 of file gui_graphics.hpp.

◆ tooltip_font

uint16_t ui::state::tooltip_font = 0

Definition at line 506 of file gui_graphics.hpp.

◆ topbar_subwindow

element_base* ui::state::topbar_subwindow = nullptr

Definition at line 447 of file gui_graphics.hpp.

◆ topbar_window

element_base* ui::state::topbar_window = nullptr

Definition at line 446 of file gui_graphics.hpp.

◆ trade_subwindow

element_base* ui::state::trade_subwindow = nullptr

Definition at line 456 of file gui_graphics.hpp.

◆ under_mouse

element_base* ui::state::under_mouse = nullptr

Definition at line 404 of file gui_graphics.hpp.

◆ unit_details_box

std::unique_ptr<grid_box> ui::state::unit_details_box

Definition at line 437 of file gui_graphics.hpp.

◆ unit_window_army

element_base* ui::state::unit_window_army = nullptr

Definition at line 457 of file gui_graphics.hpp.

◆ unit_window_navy

element_base* ui::state::unit_window_navy = nullptr

Definition at line 458 of file gui_graphics.hpp.

◆ units_root

std::unique_ptr<element_base> ui::state::units_root

Definition at line 423 of file gui_graphics.hpp.


The documentation for this struct was generated from the following files: