36 state.world.nation_get_modifier_values(n, sys::national_mod_offsets::supply_consumption) + 1.0f);
79 state.world.nation_get_modifier_values(n, sys::national_mod_offsets::land_organisation) + 1.0f);
101 state.world.nation_get_modifier_values(n, sys::national_mod_offsets::naval_organisation) + 1.0f);
122 return (
text::format_float(
state.world.nation_get_modifier_values(n, sys::national_mod_offsets::regular_experience_level)) +
165 return std::to_string(int16_t(
state.defines.base_combat_width +
166 int16_t(
state.world.nation_get_modifier_values(n, sys::national_mod_offsets::combat_width))));
187 return std::to_string(int16_t(
state.world.nation_get_modifier_values(n, sys::national_mod_offsets::dig_in_cap)));
209 state.defines.base_military_tactics);
230 if(
name ==
"war_exhaustion_icon") {
231 return make_element_by_type<image_element_base>(
state,
id);
233 }
else if(
name ==
"war_exhaustion_desc") {
234 return make_element_by_type<simple_text_element_base>(
state,
id);
236 }
else if(
name ==
"supply_consumption_icon") {
237 return make_element_by_type<image_element_base>(
state,
id);
239 }
else if(
name ==
"supply_consumption_desc") {
240 return make_element_by_type<simple_text_element_base>(
state,
id);
242 }
else if(
name ==
"org_regain_icon") {
243 return make_element_by_type<image_element_base>(
state,
id);
245 }
else if(
name ==
"org_regain_desc") {
246 return make_element_by_type<simple_text_element_base>(
state,
id);
248 }
else if(
name ==
"army_org_icon") {
249 return make_element_by_type<image_element_base>(
state,
id);
251 }
else if(
name ==
"army_org_desc") {
252 return make_element_by_type<simple_text_element_base>(
state,
id);
254 }
else if(
name ==
"navy_org_icon") {
255 return make_element_by_type<image_element_base>(
state,
id);
257 }
else if(
name ==
"navy_org_desc") {
258 return make_element_by_type<simple_text_element_base>(
state,
id);
260 }
else if(
name ==
"unit_experience_icon") {
261 return make_element_by_type<image_element_base>(
state,
id);
263 }
else if(
name ==
"unit_experience_desc") {
264 return make_element_by_type<simple_text_element_base>(
state,
id);
266 }
else if(
name ==
"recruit_time_icon") {
267 return make_element_by_type<image_element_base>(
state,
id);
269 }
else if(
name ==
"recruit_time_desc") {
270 return make_element_by_type<simple_text_element_base>(
state,
id);
272 }
else if(
name ==
"combat_width_icon") {
273 return make_element_by_type<image_element_base>(
state,
id);
275 }
else if(
name ==
"combat_width_desc") {
276 return make_element_by_type<simple_text_element_base>(
state,
id);
278 }
else if(
name ==
"digin_cap_icon") {
279 return make_element_by_type<image_element_base>(
state,
id);
281 }
else if(
name ==
"digin_cap_desc") {
282 return make_element_by_type<simple_text_element_base>(
state,
id);
284 }
else if(
name ==
"tactics_level_icon") {
285 return make_element_by_type<image_element_base>(
state,
id);
287 }
else if(
name ==
"tactics_level_desc") {
288 return make_element_by_type<simple_text_element_base>(
state,
id);
290 }
else if(
name ==
"war_exhaustion") {
291 return make_element_by_type<statswin_warexhaustion>(
state,
id);
293 }
else if(
name ==
"supply_consumption") {
294 return make_element_by_type<statswin_supplyconsumption>(
state,
id);
296 }
else if(
name ==
"org_regain") {
297 return make_element_by_type<statswin_orgregain>(
state,
id);
299 }
else if(
name ==
"army_org") {
300 return make_element_by_type<statswin_armyorg>(
state,
id);
302 }
else if(
name ==
"navy_org") {
303 return make_element_by_type<statswin_navyorg>(
state,
id);
305 }
else if(
name ==
"unit_experience") {
306 return make_element_by_type<statswin_unitexperience>(
state,
id);
308 }
else if(
name ==
"recruit_time") {
309 return make_element_by_type<statswin_recruittime>(
state,
id);
311 }
else if(
name ==
"combat_width") {
312 return make_element_by_type<statswin_combatwidth>(
state,
id);
314 }
else if(
name ==
"digin_cap") {
315 return make_element_by_type<statswin_digincap>(
state,
id);
317 }
else if(
name ==
"tactics_level") {
318 return make_element_by_type<statswin_tactics>(
state,
id);
void set_text(sys::state &state, std::string const &new_text)
std::unique_ptr< element_base > make_child(sys::state &state, std::string_view name, dcon::gui_def_id id) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
void on_update(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
void on_update(sys::state &state) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
void on_update(sys::state &state) noexcept override
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
tooltip_behavior has_tooltip(sys::state &state) noexcept override
void on_update(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
void on_update(sys::state &state) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
void on_update(sys::state &state) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
tooltip_behavior has_tooltip(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
void on_update(sys::state &state) noexcept override
void on_update(sys::state &state) noexcept override
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
tooltip_behavior has_tooltip(sys::state &state) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
void on_update(sys::state &state) noexcept override
void on_update(sys::state &state) noexcept override
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
std::string get_text(sys::state &state, dcon::nation_id n) noexcept
tooltip_behavior has_tooltip(sys::state &state) noexcept override
pop_satisfaction_wrapper_fat fatten(data_container const &c, pop_satisfaction_wrapper_id id) noexcept
std::string format_float(float num, size_t digits)
void add_line_break_to_layout(sys::state &state, columnar_layout &dest)
std::string format_percentage(float num, size_t digits)
void active_modifiers_description(sys::state &state, text::layout_base &layout, dcon::nation_id n, int32_t identation, dcon::national_modifier_value nmid, bool header)