Project Alice
Loading...
Searching...
No Matches
iui::iui_state Struct Reference

#include <immediate_mode.hpp>

Collaboration diagram for iui::iui_state:

Public Member Functions

void panel (sys::state &state, rect &r)
 
void panel_subsprite (sys::state &state, rect &r, int frame, int total_frames, GLuint texture_handle)
 
void panel_textured (sys::state &state, rect &r, GLuint texture_handle)
 
void panel_colored (sys::state &state, rect &r, float red, float green, float blue)
 
bool button (sys::state &state, int32_t identifier, rect &r, bool active)
 
bool button_textured (sys::state &state, int32_t identifier, rect &r, int total_frames, GLuint texture_handle, bool active)
 
text::endless_layout init_layout (sys::state &state, text::layout &layout, uint16_t font_handle, text::alignment align, float w, float h)
 
void float_2 (sys::state &state, int32_t identifier, rect &r, float value)
 
void int_whole (sys::state &state, int32_t identifier, rect &r, int32_t value)
 
void price (sys::state &state, int32_t identifier, rect &r, float value)
 
void render_text (sys::state &state, std::vector< text::text_chunk > &content, rect &r, ogl::color3f color)
 
void localized_string (sys::state &state, int32_t identifier, rect &r, std::string_view key, ogl::color3f color={ 0.f, 0.f, 0.f })
 
void localized_string_r (sys::state &state, int32_t identifier, rect r, std::string_view key, ogl::color3f color={ 0.f, 0.f, 0.f })
 
void frame_start ()
 
void frame_end ()
 
void load_description (sys::state &state, std::string_view name, element_description &local_desc)
 

Public Attributes

uint16_t current_font = 0
 
int32_t active_element = 0
 
int32_t hovered_element = 0
 
iui_tab tab = iui_tab::none
 
bool over_ui = false
 
bool mouse_pressed = false
 
int page_production_methods = 0
 
std::vector< float > per_market_data
 
std::vector< dcon::nation_id > input_efficiency_leaders
 
std::vector< text::text_chunkinput_efficiency_leaders_string
 
bool loaded_descriptions = false
 
element_description priority_button
 
element_description page_button
 
element_description page_selector_bg
 
element_description item_selector_bg
 
element_description factory_type_bg
 
element_description commodity_bg
 
element_description factory_type_name_bg
 
element_description factory_type_priority_bg
 
element_description close_button
 
element_description top_bar_button
 
element_description map_label
 
ankerl::unordered_dense::map< int32_t, std::vector< text::text_chunk > > gui_text_chunks_map
 
ankerl::unordered_dense::map< int32_t, std::string > gui_text_map
 
ankerl::unordered_dense::map< int32_t, float > gui_float_map
 
ankerl::unordered_dense::map< int32_t, int32_t > gui_int_map
 

Detailed Description

Definition at line 48 of file immediate_mode.hpp.

Member Function Documentation

◆ button()

bool iui::iui_state::button ( sys::state state,
int32_t  identifier,
rect r,
bool  active 
)

Definition at line 130 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ button_textured()

bool iui::iui_state::button_textured ( sys::state state,
int32_t  identifier,
rect r,
int  total_frames,
GLuint  texture_handle,
bool  active 
)

Definition at line 166 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ float_2()

void iui::iui_state::float_2 ( sys::state state,
int32_t  identifier,
rect r,
float  value 
)

Definition at line 250 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ frame_end()

void iui::iui_state::frame_end ( )
inline

Definition at line 159 of file immediate_mode.hpp.

◆ frame_start()

void iui::iui_state::frame_start ( )
inline

Definition at line 155 of file immediate_mode.hpp.

◆ init_layout()

text::endless_layout iui::iui_state::init_layout ( sys::state state,
text::layout layout,
uint16_t  font_handle,
text::alignment  align,
float  w,
float  h 
)

Definition at line 203 of file immediate_mode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ int_whole()

void iui::iui_state::int_whole ( sys::state state,
int32_t  identifier,
rect r,
int32_t  value 
)

Definition at line 278 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ load_description()

void iui::iui_state::load_description ( sys::state state,
std::string_view  name,
element_description local_desc 
)

Definition at line 368 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ localized_string()

void iui::iui_state::localized_string ( sys::state state,
int32_t  identifier,
rect r,
std::string_view  key,
ogl::color3f  color = { 0.f, 0.f, 0.f } 
)

Definition at line 334 of file immediate_mode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ localized_string_r()

void iui::iui_state::localized_string_r ( sys::state state,
int32_t  identifier,
rect  r,
std::string_view  key,
ogl::color3f  color = { 0.f, 0.f, 0.f } 
)

Definition at line 358 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ panel()

void iui::iui_state::panel ( sys::state state,
rect r 
)

Definition at line 68 of file immediate_mode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ panel_colored()

void iui::iui_state::panel_colored ( sys::state state,
rect r,
float  red,
float  green,
float  blue 
)

Definition at line 50 of file immediate_mode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ panel_subsprite()

void iui::iui_state::panel_subsprite ( sys::state state,
rect r,
int  frame,
int  total_frames,
GLuint  texture_handle 
)

Definition at line 91 of file immediate_mode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ panel_textured()

void iui::iui_state::panel_textured ( sys::state state,
rect r,
GLuint  texture_handle 
)

Definition at line 111 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ price()

void iui::iui_state::price ( sys::state state,
int32_t  identifier,
rect r,
float  value 
)

Definition at line 306 of file immediate_mode.cpp.

Here is the call graph for this function:

◆ render_text()

void iui::iui_state::render_text ( sys::state state,
std::vector< text::text_chunk > &  content,
rect r,
ogl::color3f  color 
)

Definition at line 225 of file immediate_mode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ active_element

int32_t iui::iui_state::active_element = 0

Definition at line 51 of file immediate_mode.hpp.

◆ close_button

element_description iui::iui_state::close_button

Definition at line 74 of file immediate_mode.hpp.

◆ commodity_bg

element_description iui::iui_state::commodity_bg

Definition at line 71 of file immediate_mode.hpp.

◆ current_font

uint16_t iui::iui_state::current_font = 0

Definition at line 50 of file immediate_mode.hpp.

◆ factory_type_bg

element_description iui::iui_state::factory_type_bg

Definition at line 70 of file immediate_mode.hpp.

◆ factory_type_name_bg

element_description iui::iui_state::factory_type_name_bg

Definition at line 72 of file immediate_mode.hpp.

◆ factory_type_priority_bg

element_description iui::iui_state::factory_type_priority_bg

Definition at line 73 of file immediate_mode.hpp.

◆ gui_float_map

ankerl::unordered_dense::map<int32_t, float> iui::iui_state::gui_float_map

Definition at line 80 of file immediate_mode.hpp.

◆ gui_int_map

ankerl::unordered_dense::map<int32_t, int32_t> iui::iui_state::gui_int_map

Definition at line 81 of file immediate_mode.hpp.

◆ gui_text_chunks_map

ankerl::unordered_dense::map<int32_t, std::vector<text::text_chunk> > iui::iui_state::gui_text_chunks_map

Definition at line 78 of file immediate_mode.hpp.

◆ gui_text_map

ankerl::unordered_dense::map<int32_t, std::string> iui::iui_state::gui_text_map

Definition at line 79 of file immediate_mode.hpp.

◆ hovered_element

int32_t iui::iui_state::hovered_element = 0

Definition at line 52 of file immediate_mode.hpp.

◆ input_efficiency_leaders

std::vector<dcon::nation_id> iui::iui_state::input_efficiency_leaders

Definition at line 62 of file immediate_mode.hpp.

◆ input_efficiency_leaders_string

std::vector<text::text_chunk> iui::iui_state::input_efficiency_leaders_string

Definition at line 63 of file immediate_mode.hpp.

◆ item_selector_bg

element_description iui::iui_state::item_selector_bg

Definition at line 69 of file immediate_mode.hpp.

◆ loaded_descriptions

bool iui::iui_state::loaded_descriptions = false

Definition at line 65 of file immediate_mode.hpp.

◆ map_label

element_description iui::iui_state::map_label

Definition at line 76 of file immediate_mode.hpp.

◆ mouse_pressed

bool iui::iui_state::mouse_pressed = false

Definition at line 57 of file immediate_mode.hpp.

◆ over_ui

bool iui::iui_state::over_ui = false

Definition at line 56 of file immediate_mode.hpp.

◆ page_button

element_description iui::iui_state::page_button

Definition at line 67 of file immediate_mode.hpp.

◆ page_production_methods

int iui::iui_state::page_production_methods = 0

Definition at line 59 of file immediate_mode.hpp.

◆ page_selector_bg

element_description iui::iui_state::page_selector_bg

Definition at line 68 of file immediate_mode.hpp.

◆ per_market_data

std::vector<float> iui::iui_state::per_market_data

Definition at line 61 of file immediate_mode.hpp.

◆ priority_button

element_description iui::iui_state::priority_button

Definition at line 66 of file immediate_mode.hpp.

◆ tab

iui_tab iui::iui_state::tab = iui_tab::none

Definition at line 54 of file immediate_mode.hpp.

◆ top_bar_button

element_description iui::iui_state::top_bar_button

Definition at line 75 of file immediate_mode.hpp.


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