Project Alice
|
#include <immediate_mode.hpp>
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) |
Definition at line 48 of file immediate_mode.hpp.
bool iui::iui_state::button | ( | sys::state & | state, |
int32_t | identifier, | ||
rect & | r, | ||
bool | active | ||
) |
bool iui::iui_state::button_textured | ( | sys::state & | state, |
int32_t | identifier, | ||
rect & | r, | ||
int | total_frames, | ||
GLuint | texture_handle, | ||
bool | active | ||
) |
void iui::iui_state::float_2 | ( | sys::state & | state, |
int32_t | identifier, | ||
rect & | r, | ||
float | value | ||
) |
|
inline |
Definition at line 159 of file immediate_mode.hpp.
|
inline |
Definition at line 155 of file immediate_mode.hpp.
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.
void iui::iui_state::int_whole | ( | sys::state & | state, |
int32_t | identifier, | ||
rect & | r, | ||
int32_t | value | ||
) |
void iui::iui_state::load_description | ( | sys::state & | state, |
std::string_view | name, | ||
element_description & | local_desc | ||
) |
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.
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 } |
||
) |
void iui::iui_state::panel | ( | sys::state & | state, |
rect & | r | ||
) |
Definition at line 68 of file immediate_mode.cpp.
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.
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.
void iui::iui_state::panel_textured | ( | sys::state & | state, |
rect & | r, | ||
GLuint | texture_handle | ||
) |
void iui::iui_state::price | ( | sys::state & | state, |
int32_t | identifier, | ||
rect & | r, | ||
float | value | ||
) |
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.
int32_t iui::iui_state::active_element = 0 |
Definition at line 51 of file immediate_mode.hpp.
element_description iui::iui_state::close_button |
Definition at line 74 of file immediate_mode.hpp.
element_description iui::iui_state::commodity_bg |
Definition at line 71 of file immediate_mode.hpp.
uint16_t iui::iui_state::current_font = 0 |
Definition at line 50 of file immediate_mode.hpp.
element_description iui::iui_state::factory_type_bg |
Definition at line 70 of file immediate_mode.hpp.
element_description iui::iui_state::factory_type_name_bg |
Definition at line 72 of file immediate_mode.hpp.
element_description iui::iui_state::factory_type_priority_bg |
Definition at line 73 of file immediate_mode.hpp.
ankerl::unordered_dense::map<int32_t, float> iui::iui_state::gui_float_map |
Definition at line 80 of file immediate_mode.hpp.
ankerl::unordered_dense::map<int32_t, int32_t> iui::iui_state::gui_int_map |
Definition at line 81 of file immediate_mode.hpp.
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.
ankerl::unordered_dense::map<int32_t, std::string> iui::iui_state::gui_text_map |
Definition at line 79 of file immediate_mode.hpp.
int32_t iui::iui_state::hovered_element = 0 |
Definition at line 52 of file immediate_mode.hpp.
std::vector<dcon::nation_id> iui::iui_state::input_efficiency_leaders |
Definition at line 62 of file immediate_mode.hpp.
std::vector<text::text_chunk> iui::iui_state::input_efficiency_leaders_string |
Definition at line 63 of file immediate_mode.hpp.
element_description iui::iui_state::item_selector_bg |
Definition at line 69 of file immediate_mode.hpp.
bool iui::iui_state::loaded_descriptions = false |
Definition at line 65 of file immediate_mode.hpp.
element_description iui::iui_state::map_label |
Definition at line 76 of file immediate_mode.hpp.
bool iui::iui_state::mouse_pressed = false |
Definition at line 57 of file immediate_mode.hpp.
bool iui::iui_state::over_ui = false |
Definition at line 56 of file immediate_mode.hpp.
element_description iui::iui_state::page_button |
Definition at line 67 of file immediate_mode.hpp.
int iui::iui_state::page_production_methods = 0 |
Definition at line 59 of file immediate_mode.hpp.
element_description iui::iui_state::page_selector_bg |
Definition at line 68 of file immediate_mode.hpp.
std::vector<float> iui::iui_state::per_market_data |
Definition at line 61 of file immediate_mode.hpp.
element_description iui::iui_state::priority_button |
Definition at line 66 of file immediate_mode.hpp.
iui_tab iui::iui_state::tab = iui_tab::none |
Definition at line 54 of file immediate_mode.hpp.
element_description iui::iui_state::top_bar_button |
Definition at line 75 of file immediate_mode.hpp.