Project Alice
Loading...
Searching...
No Matches
gui_modifier_tooltips.cpp File Reference
#include "gui_modifier_tooltips.hpp"
#include "dcon_generated.hpp"
#include "demographics.hpp"
#include "system_state.hpp"
#include "script_constants.hpp"
#include "text.hpp"
#include "triggers.hpp"
#include "ve_scalar_extensions.hpp"
Include dependency graph for gui_modifier_tooltips.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ui::modifier_display_info
 

Namespaces

namespace  ui
 

Macros

#define MOD_LIST_ELEMENT(num, name, green_is_negative, display_type, locale_name)    modifier_display_info{green_is_negative, display_type, locale_name},
 
#define MOD_LIST_ELEMENT(num, name, green_is_negative, display_type, locale_name)    modifier_display_info{green_is_negative, display_type, locale_name},
 

Enumerations

enum class  ui::modifier_display_type : uint8_t { ui::integer , ui::percent , ui::fp_two_places , ui::fp_three_places }
 

Functions

std::string ui::format_modifier_value (sys::state &state, float value, modifier_display_type type)
 
void ui::modifier_description (sys::state &state, text::layout_base &layout, dcon::modifier_id mid, int32_t indentation=0)
 
void ui::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 ui::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 ui::acting_modifiers_description_province (sys::state &state, text::layout_base &layout, dcon::province_id p, int32_t identation, bool &header, T nmid)
 
void ui::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 ui::active_modifiers_description (sys::state &state, text::layout_base &layout, dcon::nation_id n, int32_t identation, dcon::national_modifier_value nmid, bool header)
 

Macro Definition Documentation

◆ MOD_LIST_ELEMENT [1/2]

#define MOD_LIST_ELEMENT (   num,
  name,
  green_is_negative,
  display_type,
  locale_name 
)     modifier_display_info{green_is_negative, display_type, locale_name},

◆ MOD_LIST_ELEMENT [2/2]

#define MOD_LIST_ELEMENT (   num,
  name,
  green_is_negative,
  display_type,
  locale_name 
)     modifier_display_info{green_is_negative, display_type, locale_name},