3#include "dcon_generated.hpp"
12 return "mapmode_" + std::to_string(
uint32_t(v));
65 frame = get_frame_from_mode(
state.map_state.active_map_mode);
70 return "legend_max_mapmode_" + std::to_string(
uint32_t(v));
79 return "legend_min_mapmode_" + std::to_string(
uint32_t(v));
90 if(
name ==
"legend_title") {
91 return make_element_by_type<map_legend_title>(
state,
id);
92 }
else if(
name ==
"gradient_icon") {
93 return make_element_by_type<map_legend_gradient_image>(
state,
id);
94 }
else if(
name ==
"gradient_min") {
95 return make_element_by_type<map_legend_gradient_min>(
state,
id);
96 }
else if(
name ==
"gradient_max") {
97 return make_element_by_type<map_legend_gradient_max>(
state,
id);
113 if(
name ==
"s1_ico") {
114 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 196, 53));
115 }
else if(
name ==
"s5_ico") {
116 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 196, 53));
117 }
else if(
name ==
"s5_ico_b") {
118 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 53, 250));
119 }
else if(
name ==
"s2_ico") {
121 }
else if(
name ==
"s3_ico") {
122 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(250, 250, 5));
123 }
else if(
name ==
"s4_ico") {
140 if(
name ==
"s1_ico") {
141 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(46, 247, 15));
142 }
else if(
name ==
"s2_ico") {
143 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(247, 15, 15));
144 }
else if(
name ==
"s3_ico") {
145 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(140, 247, 15));
146 }
else if(
name ==
"s4_ico") {
147 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(250, 250, 5));
163 if(
name ==
"s1_ico") {
164 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
165 }
else if(
name ==
"s2_ico") {
166 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0xFFAA00));
167 }
else if(
name ==
"s3_ico") {
168 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x0000FF));
169 }
else if(
name ==
"s4_ico") {
170 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x009900));
171 }
else if(
name ==
"s5_ico") {
172 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x55AA55));
173 }
else if(
name ==
"s6_ico") {
174 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
175 }
else if(
name ==
"s7_ico") {
176 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
177 }
else if(
name ==
"s8_ico") {
178 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
179 }
else if(
name ==
"s9_ico") {
180 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
181 }
else if(
name ==
"s7_ico_b") {
182 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
183 }
else if(
name ==
"s8_ico_b") {
184 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0xFFFFFF));
185 }
else if(
name ==
"s9_ico_b") {
186 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FFFF));
202 if(
name ==
"s1_ico") {
204 }
else if(
name ==
"s2_ico") {
205 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(14, 240, 44));
206 }
else if(
name ==
"s3_ico") {
208 }
else if(
name ==
"s3_ico_b") {
209 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(232, 228, 111));
210 }
else if(
name ==
"s4_ico") {
211 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(232, 228, 111));
212 }
else if(
name ==
"s5_ico") {
229 if(
name ==
"s1_ico") {
230 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x222222));
231 }
else if(
name ==
"s2_ico") {
232 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x005500));
233 }
else if(
name ==
"s3_ico") {
234 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x005500));
235 }
else if(
name ==
"s3_ico_b") {
236 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
237 }
else if(
name ==
"s4_ico") {
238 return make_element_by_type<tinted_image_element_base>(
state,
id,
uint32_t(0x00FF00));
239 }
else if(
name ==
"s5_ico") {
240 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(50, 150, 200));
256 if(
name ==
"s1_ico") {
257 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)));
258 }
else if(
name ==
"s2_ico") {
259 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)));
260 }
else if(
name ==
"s3_ico") {
261 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)));
262 }
else if(
name ==
"s4_ico") {
263 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)));
279 if(
name ==
"s1_ico") {
280 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(53, 196, 53));
281 }
else if(
name ==
"s2_ico") {
282 return make_element_by_type<tinted_image_element_base>(
state,
id,
sys::pack_color(212, 214, 62));
283 }
else if(
name ==
"s3_ico") {
284 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)
Holds important data about the game world, state, and other data regarding windowing,...
element_base * msg_log_window
std::unique_ptr< element_base > root