Project Alice
Loading...
Searching...
No Matches
gui_console.cpp File Reference
#include <string>
#include <string_view>
#include <variant>
#include <filesystem>
#include "gui_console.hpp"
#include "gui_fps_counter.hpp"
#include "nations.hpp"
#include "fif_dcon_generated.hpp"
#include "fif_common.hpp"
#include "stb_image_write.h"
Include dependency graph for gui_console.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STB_IMAGE_WRITE_IMPLEMENTATION   1
 

Functions

void log_to_console (sys::state &state, ui::element_base *parent, std::string_view s) noexcept
 
template<typename F >
void write_single_component (sys::state &state, native_string_view filename, F &&func)
 
int32_t * f_clear (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_fps (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_change_tag (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_spectate (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_set_westernized (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_make_crisis (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_set_mil (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_set_con (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_make_allied (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_end_game (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_dump_oos (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_wargoals (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_reforms (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_deals (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_decisions (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_daily_oos (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_decision_potential (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_set_auto_choice (fif::state_stack &s, int32_t *p, fif::environment *env)
 
int32_t * f_complete_construction (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_instant_research (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_conquer (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_make_core (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_remove_core (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_set_owner (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_set_controller (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_army (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_navy (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_cheat_factories (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_add_days (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_save_map (fif::state_stack &s, int32_t *ptr, fif::environment *e)
 
int32_t * f_dump_econ (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_fire_event (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * f_nation_name (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * compile_modifier (fif::state_stack &s, int32_t *p, fif::environment *e)
 
int32_t * load_file (fif::state_stack &s, int32_t *p, fif::environment *e)
 

Macro Definition Documentation

◆ STB_IMAGE_WRITE_IMPLEMENTATION

#define STB_IMAGE_WRITE_IMPLEMENTATION   1

Definition at line 11 of file gui_console.cpp.

Function Documentation

◆ compile_modifier()

int32_t * compile_modifier ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)
inline

Definition at line 1154 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_add_days()

int32_t * f_add_days ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 942 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_change_tag()

int32_t * f_change_tag ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 98 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_army()

int32_t * f_cheat_army ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 891 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_deals()

int32_t * f_cheat_deals ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 591 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_decision_potential()

int32_t * f_cheat_decision_potential ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 642 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_decisions()

int32_t * f_cheat_decisions ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 608 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_factories()

int32_t * f_cheat_factories ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 925 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_navy()

int32_t * f_cheat_navy ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 908 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_reforms()

int32_t * f_cheat_reforms ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 574 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_cheat_wargoals()

int32_t * f_cheat_wargoals ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 557 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_clear()

int32_t * f_clear ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 56 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_complete_construction()

int32_t * f_complete_construction ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 702 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_conquer()

int32_t * f_conquer ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 765 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_daily_oos()

int32_t * f_daily_oos ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 625 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_dump_econ()

int32_t * f_dump_econ ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 1064 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_dump_oos()

int32_t * f_dump_oos ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 304 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_end_game()

int32_t * f_end_game ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 289 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_fire_event()

int32_t * f_fire_event ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 1093 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_fps()

int32_t * f_fps ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 70 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_instant_research()

int32_t * f_instant_research ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 732 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_make_allied()

int32_t * f_make_allied ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 264 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_make_core()

int32_t * f_make_core ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 795 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_make_crisis()

int32_t * f_make_crisis ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 171 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_nation_name()

int32_t * f_nation_name ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 1128 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_remove_core()

int32_t * f_remove_core ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 819 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_save_map()

int32_t * f_save_map ( fif::state_stack s,
int32_t *  ptr,
fif::environment e 
)

Definition at line 959 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_set_auto_choice()

int32_t * f_set_auto_choice ( fif::state_stack s,
int32_t *  p,
fif::environment env 
)

Definition at line 659 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_set_con()

int32_t * f_set_con ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 236 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_set_controller()

int32_t * f_set_controller ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 867 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_set_mil()

int32_t * f_set_mil ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 209 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_set_owner()

int32_t * f_set_owner ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 843 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_set_westernized()

int32_t * f_set_westernized ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 144 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_spectate()

int32_t * f_spectate ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)

Definition at line 124 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_file()

int32_t * load_file ( fif::state_stack s,
int32_t *  p,
fif::environment e 
)
inline

Definition at line 1184 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ log_to_console()

void log_to_console ( sys::state state,
ui::element_base parent,
std::string_view  s 
)
noexcept

Definition at line 15 of file gui_console.cpp.

Here is the caller graph for this function:

◆ write_single_component()

template<typename F >
void write_single_component ( sys::state state,
native_string_view  filename,
F &&  func 
)

Definition at line 48 of file gui_console.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: