WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
AppSettings Struct Reference

Persistent application settings backed by userSettings/Config.ini. More...

#include <AppSettings.h>

Public Member Functions

void load ()
 Load from Config.ini (also restores the current ThemeManager theme).
 
void save () const
 Persist to Config.ini and save the ImGui layout to disk.
 

Public Attributes

std::string gamePath
 
bool enableDbCache = false
 
bool showConsole = false
 
bool drawGrid = true
 
glm::vec3 bgColor {0.22f, 0.22f, 0.22f}
 
int currentFont = 0
 
float fontSize = 18.0f
 

Static Public Attributes

static constexpr const char * configPath = "userSettings/Config.ini"
 
static constexpr const char * imguiIniPath = "userSettings/imgui_layout.ini"
 

Detailed Description

Persistent application settings backed by userSettings/Config.ini.

Definition at line 7 of file AppSettings.h.

Member Function Documentation

◆ load()

void AppSettings::load ( )

Load from Config.ini (also restores the current ThemeManager theme).

Definition at line 11 of file AppSettings.cpp.

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

◆ save()

void AppSettings::save ( ) const

Persist to Config.ini and save the ImGui layout to disk.

Definition at line 37 of file AppSettings.cpp.

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

Member Data Documentation

◆ bgColor

glm::vec3 AppSettings::bgColor {0.22f, 0.22f, 0.22f}

Definition at line 18 of file AppSettings.h.

◆ configPath

constexpr const char* AppSettings::configPath = "userSettings/Config.ini"
staticconstexpr

Definition at line 25 of file AppSettings.h.

◆ currentFont

int AppSettings::currentFont = 0

Definition at line 21 of file AppSettings.h.

◆ drawGrid

bool AppSettings::drawGrid = true

Definition at line 17 of file AppSettings.h.

◆ enableDbCache

bool AppSettings::enableDbCache = false

Definition at line 13 of file AppSettings.h.

◆ fontSize

float AppSettings::fontSize = 18.0f

Definition at line 22 of file AppSettings.h.

◆ gamePath

std::string AppSettings::gamePath

Definition at line 10 of file AppSettings.h.

◆ imguiIniPath

constexpr const char* AppSettings::imguiIniPath = "userSettings/imgui_layout.ini"
staticconstexpr

Definition at line 26 of file AppSettings.h.

◆ showConsole

bool AppSettings::showConsole = false

Definition at line 14 of file AppSettings.h.


The documentation for this struct was generated from the following files: