|
enum class | production_sort_order {
name
, factories
, primary_workers
, secondary_workers
,
owners
, infrastructure
} |
|
enum class | production_window_tab : uint8_t { factories = 0x0
, investments = 0x1
, projects = 0x2
, goods = 0x3
} |
|
enum class | country_list_sort : uint8_t {
country
, boss
, economic_rank
, military_rank
,
prestige_rank
, total_rank
, relation
, opinion
,
priority
, player_investment
, player_influence
, factories
,
gp_influence = 0x40
, gp_investment = 0x80
} |
|
enum class | country_list_filter : uint8_t {
all
, neighbors
, sphere
, enemies
,
allies
, find_allies
, neighbors_no_vassals
, influenced
,
deselect_all
, best_guess
, continent
} |
|
enum class | mouse_probe_type { click
, tooltip
, scroll
} |
|
enum | event_pool_slot : uint8_t {
country
, country_election
, country_major
, province
,
count
} |
|
enum class | object_type : uint8_t {
generic_sprite = 0x00
, bordered_rect = 0x01
, horizontal_progress_bar = 0x02
, vertical_progress_bar = 0x03
,
flag_mask = 0x04
, tile_sprite = 0x05
, text_sprite = 0x06
, barchart = 0x07
,
piechart = 0x08
, linegraph = 0x09
} |
|
enum class | element_type : uint8_t {
button = 0x01
, text = 0x02
, image = 0x03
, position = 0x04
,
overlapping = 0x05
, listbox = 0x06
, scrollbar = 0x07
, window = 0x00
} |
|
enum class | alignment : uint8_t { left = 0x00
, right = 0x01
, centered = 0x02
, justified = 0x03
} |
|
enum class | rotation : uint8_t { upright = (0x00 << rotation_bit_offset)
, r90_left = (0x01 << rotation_bit_offset)
, r90_right = (0x02 << rotation_bit_offset)
} |
|
enum class | orientation : uint8_t {
upper_left = (0x00 << orientation_bit_offset)
, upper_right = (0x01 << orientation_bit_offset)
, lower_left = (0x02 << orientation_bit_offset)
, lower_right = (0x03 << orientation_bit_offset)
,
upper_center = (0x04 << orientation_bit_offset)
, lower_center = (0x05 << orientation_bit_offset)
, center = (0x06 << orientation_bit_offset)
} |
|
enum class | clicksound : uint16_t { none = (0x00 << clicksound_bit_offset)
, click = (0x01 << clicksound_bit_offset)
, close_window = (0x02 << clicksound_bit_offset)
, start_game = (0x03 << clicksound_bit_offset)
} |
|
enum class | button_scripting : uint16_t { none = (0x00 << button_scripting_bit_offset)
, province = (0x01 << button_scripting_bit_offset)
, nation = (0x02 << button_scripting_bit_offset)
} |
|
enum class | text_background : uint8_t { none = (0x00 << text_background_bit_offset)
, tiles_dialog = (0x01 << text_background_bit_offset)
, transparency = (0x02 << text_background_bit_offset)
, small_tiles_dialog = (0x03 << text_background_bit_offset)
} |
|
enum class | step_size : uint8_t {
one = 0x00
, two = 0x01
, one_tenth = 0x02
, one_hundredth = 0x03
,
one_thousandth = 0x04
, twenty_five = 0x40
} |
|
enum class | message_result { unseen
, seen
, consumed
} |
|
enum class | focus_result { ignored
, accepted
} |
|
enum class | tooltip_behavior { tooltip
, variable_tooltip
, position_sensitive_tooltip
, no_tooltip
} |
|
enum class | lc_mod_type {
terrain
, river
, dice
, digin
,
leader
, gas
} |
|
enum class | regiment_rank { attacker_front
, attacker_back
, defender_front
, defender_back
} |
|
enum class | leader_select_sort {
attack
, defense
, recon
, morale
,
reliability
, org
, speed
, experience
} |
|
enum class | ledger_sort_type {
country_name
, country_status
, military_score
, industrial_score
,
prestige
, total_score
, total_pop
, provinces
,
factories
, leadership
, literacy
, brigades
,
ships
, government_type
, ruling_party
, ruling_ideology
,
national_value
, militancy
, conciousness
, religion
,
culture
, dom_issue
, dom_ideology
, province_name
,
state_name
, commodity_type
, output_amount
, profit
,
employment
, rgo_size
, factory_level
, gdp
,
gdp_capita
, sol
} |
|
enum class | main_menu_sub_window { controls
, audio
, graphics
, message_settings
} |
|
enum class | message_settings_category : uint8_t {
all
, combat
, diplomacy
, units
,
provinces
, events
, others
, count
} |
|
enum class | modifier_display_type : uint8_t { integer
, percent
, fp_two_places
, fp_three_places
} |
|
enum class | picker_sort { name
, mil_rank
, indust_rank
, p_rank
} |
|
enum class | outliner_filter : uint8_t {
rebel_occupations
, sieges
, hostile_sieges
, combat
,
naval_combat
, armies
, navies
, factories
,
buildings
, army_construction
, navy_construction
, gp_influence
,
national_focus
, rally_points
, count
} |
|
enum class | outline_color : uint8_t {
gray = 0
, gold = 1
, blue = 2
, cyan = 3
,
red = 4
} |
|
enum class | unitpanel_action : uint8_t {
close
, reorg
, split
, disband
,
changeleader
, temp
} |
|
enum class | reorg_win_action : uint8_t { close = 0
, balance = 1
} |
|
enum class | diplomacy_action : uint8_t {
ally
, cancel_ally
, call_ally
, military_access
,
cancel_military_access
, give_military_access
, cancel_give_military_access
, increase_relations
,
decrease_relations
, war_subsidies
, cancel_war_subsidies
, declare_war
,
command_units
, cancel_command_units
, increase_opinion
, add_to_sphere
,
remove_from_sphere
, justify_war
, make_peace
, crisis_backdown
,
crisis_support
, add_wargoal
, state_transfer
} |
|
enum class | gp_choice_actions { discredit
, expel_advisors
, ban_embassy
, decrease_opinion
} |
|
enum class | budget_slider_target : uint8_t {
poor_tax
, middle_tax
, rich_tax
, army_stock
,
navy_stock
, construction_stock
, education
, admin
,
social
, military
, tariffs
, domestic_investment
,
raw
, overseas
, stockpile_filling
, diplomatic_interest
,
interest
, subsidies
, gold_income
, target_count
} |
|
enum class | slider_scaling : uint8_t { linear
, quadratic
} |
|
enum class | diplomacy_window_tab : uint8_t { great_powers = 0x0
, wars = 0x1
, casus_belli = 0x2
, crisis = 0x3
} |
|
enum class | politics_window_tab : uint8_t { reforms = 0x0
, movements = 0x1
, decisions = 0x2
, releasables = 0x3
} |
|
enum class | politics_issue_sort_order : uint8_t { name
, popular_support
, voter_support
} |
|
enum class | pop_list_sort : uint8_t {
size
, type
, nationality
, religion
,
location
, mil
, con
, ideology
,
issues
, unemployment
, cash
, life_needs
,
everyday_needs
, luxury_needs
, revoltrisk
, change
,
literacy
} |
|
enum class | invention_sort_type { name
, type
, chance
} |
|
enum class | trade_sort : uint8_t {
commodity
, stockpile
, stockpile_change
, price
,
demand_satisfaction
, needs
, market
, real_demand
,
domestic_market
, global_market_pool
} |
|
enum class | trade_sort_assoc : uint8_t {
market_activity
, stockpile
, common_market
, needs_government
,
needs_factories
, needs_pops
} |
|
enum class | movements_sort_order { size
, radicalism
, name
} |
|
enum class | production_action : uint8_t { investment_window
, foreign_invest_window
} |
|
|
void | create_in_game_windows (sys::state &state) |
|
void | open_chat_before_game (sys::state &state) |
|
void | open_chat_during_game (sys::state &state) |
|
void | open_chat_window (sys::state &state) |
|
bool | country_category_filter_check (sys::state &state, country_list_filter filt, dcon::nation_id a, dcon::nation_id b) |
|
void | sort_countries (sys::state &state, std::vector< dcon::nation_id > &list, country_list_sort sort, bool sort_ascend) |
|
std::string | get_status_text (sys::state &state, dcon::nation_id nation_id) |
|
void | open_build_foreign_factory (sys::state &state, dcon::state_instance_id st) |
|
void | open_foreign_investment (sys::state &state, dcon::nation_id n) |
|
void | initialize_console_fif_environment (sys::state &state) |
|
std::string | format_fif_value (sys::state &state, int64_t data, int32_t type) |
|
void | effect_description (sys::state &state, text::layout_base &layout, dcon::effect_key k, int32_t primary_slot, int32_t this_slot, int32_t from_slot, uint32_t r_lo, uint32_t r_hi) |
|
template<typename T > |
T | retrieve (sys::state &state, element_base *parent) |
|
template<typename T > |
void | send (sys::state &state, element_base *parent, T value) |
|
template<typename T > |
T | send_and_retrieve (sys::state &state, element_base *parent, T value) |
|
void | trigger_description (sys::state &state, text::layout_base &layout, dcon::trigger_key k, int32_t primary_slot=-1, int32_t this_slot=-1, int32_t from_slot=-1) |
|
void | multiplicative_value_modifier_description (sys::state &state, text::layout_base &layout, dcon::value_modifier_key modifier, int32_t primary, int32_t this_slot, int32_t from_slot) |
|
void | additive_value_modifier_description (sys::state &state, text::layout_base &layout, dcon::value_modifier_key modifier, int32_t primary, int32_t this_slot, int32_t from_slot) |
|
void | modifier_description (sys::state &state, text::layout_base &layout, dcon::modifier_id mid, int32_t indentation=0) |
|
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) |
|
void | active_modifiers_description (sys::state &state, text::layout_base &layout, dcon::province_id p, int32_t identation, dcon::provincial_modifier_value nmid, bool have_header) |
|
void | invention_description (sys::state &state, text::layout_base &contents, dcon::invention_id inv_id, int32_t indent) noexcept |
|
void | technology_description (sys::state &state, text::layout_base &contents, dcon::technology_id tech_id) noexcept |
|
void | reform_description (sys::state &state, text::columnar_layout &contents, dcon::issue_option_id ref) |
|
void | reform_description (sys::state &state, text::columnar_layout &contents, dcon::reform_option_id ref) |
|
void | reform_rules_description (sys::state &state, text::columnar_layout &contents, uint32_t rules) |
|
message_result | greater_result (message_result a, message_result b) |
|
ogl::color_modification | get_color_modification (bool is_under_mouse, bool is_disabled, bool is_interactable) |
|
uint32_t | internal_get_interactable_disabled_color (float r, float g, float b) |
|
uint32_t | internal_get_interactable_color (float r, float g, float b) |
|
uint32_t | internal_get_disabled_color (float r, float g, float b) |
|
void | render_text_chunk (sys::state &state, text::text_chunk t, float x, float baseline_y, uint16_t font_id, ogl::color3f text_color, ogl::color_modification cmod) |
|
ogl::color3f | get_text_color (sys::state &state, text::text_color text_color) |
|
void | make_size_from_graphics (sys::state &state, ui::element_data &dat) |
|
std::unique_ptr< element_base > | make_element (sys::state &state, std::string_view name) |
|
std::unique_ptr< element_base > | make_element_immediate (sys::state &state, dcon::gui_def_id id) |
|
void | populate_shortcut_tooltip (sys::state &state, ui::element_base &elm, text::columnar_layout &contents) noexcept |
|
template<typename T , typename ... Params> |
std::unique_ptr< element_base > | make_element_by_type (sys::state &state, std::string_view name, Params &&... params) |
|
template<typename T , typename ... Params> |
std::unique_ptr< T > | make_element_by_type (sys::state &state, dcon::gui_def_id id, Params &&... params) |
|
void | popup_error_window (sys::state &state, std::string_view title, std::string_view body) |
|
void | populate_event_submap (sys::state &state, text::substitution_map &sub, std::variant< event::pending_human_n_event, event::pending_human_f_n_event, event::pending_human_p_event, event::pending_human_f_p_event > const &phe) noexcept |
|
void | close_expired_event_windows (sys::state &state) |
|
void | clear_event_windows (sys::state &state) |
|
bool | events_pause_test (sys::state &state) |
|
template<typename T > |
void | new_event_window_1 (sys::state &state, event_data_wrapper &dat, event_pool_slot e_slot) |
|
void | new_event_window (sys::state &state, event_data_wrapper dat) |
|
void | load_text_gui_definitions (sys::state &state, parsers::building_gfx_context &context, parsers::error_handler &err) |
|
int16_t | child_relative_location_y_component (element_base const &parent, element_base const &child) |
|
xy_pair | child_relative_non_mirror_location (sys::state &state, element_base const &parent, element_base const &child) |
|
xy_pair | child_relative_location (sys::state &state, element_base const &parent, element_base const &child) |
|
xy_pair | get_absolute_location (sys::state &state, element_base const &node) |
|
xy_pair | get_absolute_non_mirror_location (sys::state &state, element_base const &node) |
|
int32_t | ui_width (sys::state const &state) |
|
int32_t | ui_height (sys::state const &state) |
|
void | populate_definitions_map (sys::state &state) |
|
template<typename T > |
constexpr ui_hook_fn | hook () |
|
void | show_main_menu_nation_basic (sys::state &state) |
|
void | show_main_menu_nation_picker (sys::state &state) |
|
void | open_leader_selection (sys::state &state, dcon::army_id a, dcon::navy_id v, int32_t x, int32_t y) |
|
void | display_leader_attributes (sys::state &state, dcon::leader_id lid, text::layout_base &contents, int32_t indent) |
|
void | display_leader_full (sys::state &state, dcon::leader_id lid, text::layout_base &contents, int32_t indent) |
|
uint32_t | get_ui_scale_index (float current_scale) |
|
std::string | get_setting_text_key (int32_t type) |
|
std::string | format_modifier_value (sys::state &state, float value, modifier_display_type type) |
|
void | active_single_modifier_description (sys::state &state, text::layout_base &layout, dcon::modifier_id mid, int32_t indentation, bool &header, dcon::national_modifier_value nmid, float scaled) |
|
void | active_single_modifier_description (sys::state &state, text::layout_base &layout, dcon::modifier_id mid, int32_t indentation, bool &header, dcon::provincial_modifier_value pmid, float scaled) |
|
template<typename T > |
void | acting_modifiers_description_province (sys::state &state, text::layout_base &layout, dcon::province_id p, int32_t identation, bool &header, T nmid) |
|
void | province_owner_rgo_draw_tooltip (sys::state &state, text::columnar_layout &contents, dcon::province_id prov_id) noexcept |
|
int32_t | status_frame (sys::state &state, dcon::army_id a) |
|
int32_t | status_frame (sys::state &state, dcon::navy_id a) |
|
outline_color | to_color (sys::state &state, unit_var display_unit) |
|
bool | color_equivalent (outline_color a, outline_color b) |
|
bool | color_less (outline_color a, outline_color b) |
|
bool | unit_var_ordering (sys::state &state, unit_var a, unit_var b) |
|
float | selected_relative_attrition_amount (sys::state &state, dcon::nation_id n, std::vector< dcon::army_id > &list, dcon::province_id prov) |
|
void | country_name_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | terrain_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | political_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | militancy_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | diplomatic_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | region_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | infrastructure_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | colonial_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | admin_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | recruitment_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | nationalfocus_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | rgooutput_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | population_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | nationality_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | sphere_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | supply_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | party_loyalty_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | rank_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | migration_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | civilsation_level_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | relation_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | crisis_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | naval_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | religion_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | issues_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | income_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | ideology_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | con_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | employment_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | literacy_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | factory_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | fort_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | growth_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | revolt_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | players_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | life_needs_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | everyday_needs_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | luxury_needs_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | officers_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | ctc_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | life_rating_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | crime_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | rally_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | workforce_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | mobilization_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | picking_map_tt_box (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | populate_map_tooltip (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
int32_t | calculate_partial_score (sys::state &state, dcon::nation_id target, dcon::cb_type_id id, dcon::state_definition_id state_def, dcon::national_identity_id second_nation) |
|
void | explain_influence (sys::state &state, dcon::nation_id target, text::columnar_layout &contents) |
|
void | describe_conversion (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_migration (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_colonial_migration (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_emigration (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_promotion_demotion (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_con (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_mil (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_lit (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_growth (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
void | describe_assimilation (sys::state &state, text::columnar_layout &contents, dcon::pop_id ids) |
|
std::vector< dcon::pop_id > const & | get_pop_window_list (sys::state &state) |
|
dcon::pop_id | get_pop_details_pop (sys::state &state) |
|
void | populate_production_states_list (sys::state &state, std::vector< dcon::state_instance_id > &row_contents, dcon::nation_id n, bool show_empty, production_sort_order sort_order) |
|
std::string | name_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
bool | compare_price (sys::state &state, element_base *container, const dcon::commodity_id a, const dcon::commodity_id b) |
|
std::string | price_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
std::string | supply_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
std::string | demand_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
std::string | balance_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
std::string | stockpile_market_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
std::string | stockpile_player_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
std::string | stockpile_target_player_view_commodity_id (sys::state &state, element_base *container, dcon::commodity_id item) |
|
bool | compare_name (sys::state &state, element_base *container, dcon::commodity_id a, dcon::commodity_id b) |
|
bool | compare_supply (sys::state &state, element_base *container, dcon::commodity_id a, dcon::commodity_id b) |
|
bool | compare_demand (sys::state &state, element_base *container, dcon::commodity_id a, dcon::commodity_id b) |
|
bool | compare_balance (sys::state &state, element_base *container, dcon::commodity_id a, dcon::commodity_id b) |
|
bool | compare_stockpile_market (sys::state &state, element_base *container, dcon::commodity_id a, dcon::commodity_id b) |
|
bool | compare_stockpile_player (sys::state &state, element_base *container, dcon::commodity_id a, dcon::commodity_id b) |
|
void | produce_decision_substitutions (sys::state &state, text::substitution_map &m, dcon::nation_id n) |
|
unitamounts | calc_amounts_from_army (sys::state &state, dcon::army_fat_id army) |
|
unitamounts | calc_amounts_from_navy (sys::state &state, dcon::navy_fat_id navy) |
|
void | single_unit_tooltip (sys::state &state, text::columnar_layout &contents, dcon::army_id a) |
|
void | single_unit_tooltip (sys::state &state, text::columnar_layout &contents, dcon::navy_id n) |
|
void | populate_armies (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | populate_navies (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|
void | populate_unit_tooltip (sys::state &state, text::columnar_layout &contents, dcon::province_id prov) |
|