3#include "dcon_generated.hpp"
12 return "mapmode_" + std::to_string(
uint32_t(v));
54 frame = get_frame_from_mode(
state.map_state.active_map_mode);
59 return "legend_max_mapmode_" + std::to_string(
uint32_t(v));
68 return "legend_min_mapmode_" + std::to_string(
uint32_t(v));
79 if(
name ==
"legend_title") {
80 return make_element_by_type<map_legend_title>(
state,
id);
81 }
else if(
name ==
"gradient_icon") {
82 return make_element_by_type<map_legend_gradient_image>(
state,
id);
83 }
else if(
name ==
"gradient_min") {
84 return make_element_by_type<map_legend_gradient_min>(
state,
id);
85 }
else if(
name ==
"gradient_max") {
86 return make_element_by_type<map_legend_gradient_max>(
state,
id);
102 if(
name ==
"s1_ico") {
103 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 196, 53));
104 }
else if(
name ==
"s5_ico") {
105 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 196, 53));
106 }
else if(
name ==
"s5_ico_b") {
107 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 53, 250));
108 }
else if(
name ==
"s2_ico") {
110 }
else if(
name ==
"s3_ico") {
111 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(250, 250, 5));
112 }
else if(
name ==
"s4_ico") {
129 if(
name ==
"s1_ico") {
130 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(46, 247, 15));
131 }
else if(
name ==
"s2_ico") {
132 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(247, 15, 15));
133 }
else if(
name ==
"s3_ico") {
134 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(140, 247, 15));
135 }
else if(
name ==
"s4_ico") {
136 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(250, 250, 5));
152 if(
name ==
"s1_ico") {
153 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
154 }
else if(
name ==
"s2_ico") {
155 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0xFFAA00));
156 }
else if(
name ==
"s3_ico") {
157 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x0000FF));
158 }
else if(
name ==
"s4_ico") {
159 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x009900));
160 }
else if(
name ==
"s5_ico") {
161 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x55AA55));
162 }
else if(
name ==
"s6_ico") {
163 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
164 }
else if(
name ==
"s7_ico") {
165 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
166 }
else if(
name ==
"s8_ico") {
167 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
168 }
else if(
name ==
"s9_ico") {
169 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
170 }
else if(
name ==
"s7_ico_b") {
171 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
172 }
else if(
name ==
"s8_ico_b") {
173 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0xFFFFFF));
174 }
else if(
name ==
"s9_ico_b") {
175 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FFFF));
191 if(
name ==
"s1_ico") {
193 }
else if(
name ==
"s2_ico") {
194 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(14, 240, 44));
195 }
else if(
name ==
"s3_ico") {
197 }
else if(
name ==
"s3_ico_b") {
198 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(232, 228, 111));
199 }
else if(
name ==
"s4_ico") {
200 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(232, 228, 111));
201 }
else if(
name ==
"s5_ico") {
218 if(
name ==
"s1_ico") {
219 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
220 }
else if(
name ==
"s2_ico") {
221 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x005500));
222 }
else if(
name ==
"s3_ico") {
223 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x005500));
224 }
else if(
name ==
"s3_ico_b") {
225 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
226 }
else if(
name ==
"s4_ico") {
227 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
228 }
else if(
name ==
"s5_ico") {
229 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(50, 150, 200));
245 if(
name ==
"s1_ico") {
246 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(int32_t(48 * 0.65f), int32_t(242 * 0.65f), int32_t(51 * 0.65f)));
247 }
else if(
name ==
"s2_ico") {
248 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(int32_t(36 * 0.65f), int32_t(47 * 0.65f), int32_t(255 * 0.65f)));
249 }
else if(
name ==
"s3_ico") {
250 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(int32_t(238 * 0.65f), int32_t(252 * 0.65f), int32_t(38 * 0.65f)));
251 }
else if(
name ==
"s4_ico") {
252 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(int32_t(250 * 0.65f), int32_t(5 * 0.65f), int32_t(5 * 0.65f)));
268 if(
name ==
"s1_ico") {
269 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 196, 53));
270 }
else if(
name ==
"s2_ico") {
271 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(212, 214, 62));
272 }
else if(
name ==
"s3_ico") {
273 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(155, 156, 149));
virtual void impl_render(sys::state &state, int32_t x, int32_t y) noexcept
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
void on_update(sys::state &state) noexcept override
void on_update(sys::state &state) noexcept override
void on_update(sys::state &state) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void impl_render(sys::state &state, int32_t x, int32_t y) noexcept override
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
void on_update(sys::state &state) noexcept override
void set_text(sys::state &state, std::string const &new_text)
@ clerk_to_craftsmen_ratio
uint32_t pack_color(float r, float g, float b)
std::string produce_simple_string(sys::state const &state, dcon::text_key id)
element_base * msg_log_window
std::unique_ptr< element_base > root