6 auto rgo_good =
state.world.province_get_rgo(prov_id);
7 auto nat_id =
state.world.province_get_nation_from_province_ownership(prov_id);
9 state.world.for_each_commodity([&](dcon::commodity_id c) {
11 auto profit =
state.world.province_get_rgo_profit_per_good(prov_id, c);
13 if(production < 0.0001f) {
18 auto name_box = base_box;
20 auto production_box = base_box;
21 production_box.x_position += 90.f;
23 auto profit_box = base_box;
24 profit_box.x_position += 180.f;
59 bool const is_mine =
state.world.commodity_get_is_mine(rgo_good);
60 auto const efficiency = 1.0f +
61 state.world.province_get_modifier_values(prov_id,
62 is_mine ? sys::provincial_mod_offsets::mine_rgo_eff : sys::provincial_mod_offsets::farm_rgo_eff) +
63 state.world.nation_get_modifier_values(nat_id,
64 is_mine ? sys::national_mod_offsets::mine_rgo_eff : sys::national_mod_offsets::farm_rgo_eff);
74 auto const throughput =
state.world.province_get_rgo_employment(prov_id);
85 province_window->nf_win->
set_visible(
state, !province_window->nf_win->is_visible());
void set_visible(sys::state &state, bool vis)
pop_satisfaction_wrapper_fat fatten(data_container const &c, pop_satisfaction_wrapper_id id) noexcept
float rgo_effective_size(sys::state const &state, dcon::nation_id n, dcon::province_id p, dcon::commodity_id c)
float rgo_production_quantity(sys::state &state, dcon::province_id id, dcon::commodity_id c)
void add_to_layout_box(sys::state &state, layout_base &dest, layout_box &box, embedded_flag ico)
std::string format_money(float num)
std::string get_name_as_string(sys::state &state, T t)
layout_box open_layout_box(layout_base &dest, int32_t indent)
void localised_format_box(sys::state &state, layout_base &dest, layout_box &box, std::string_view key, text::substitution_map const &sub)
void add_line(sys::state &state, layout_base &dest, dcon::text_key txt, int32_t indent)
void add_line_break_to_layout(sys::state &state, columnar_layout &dest)
void add_to_substitution_map(substitution_map &mp, variable_type key, substitution value)
ankerl::unordered_dense::map< uint32_t, substitution > substitution_map
void close_layout_box(columnar_layout &dest, layout_box &box)
void province_owner_rgo_draw_tooltip(sys::state &state, text::columnar_layout &contents, dcon::province_id prov_id) noexcept
element_base * province_window