Player12
An open source football management simulator
Loading...
Searching...
No Matches
Settings Struct Reference

Stores the game's configuration settings. More...

#include <settings_manager.h>

Public Attributes

Language language = Language::EN
 
int resolution_width = 1280
 
int resolution_height = 720
 
bool fullscreen = false
 
int fps_limit = 60
 
bool vsync = false
 
int theme_preset = 0
 
bool club_accent = true
 
uint32_t accent_rgb = 0x21A663
 
float ui_scale = 0.0f
 
bool compact_density = false
 
bool reduced_motion = false
 
int color_vision = 0
 
float text_scale = 1.0f
 
bool screen_tips = true
 
uint64_t screen_tips_seen = 0
 
int autosave_frequency = 2
 
int autosave_backups = 3
 
float master_volume = 0.8f
 
float crowd_volume = 0.8f
 
float effects_volume = 0.8f
 
bool audio_muted = false
 
bool pause_for_match_changes = true
 
bool pause_at_breaks = true
 
int play_half_minutes
 
bool play_mode = true
 
int play_auto_switch = 2
 
int play_pass_assist = 1
 
float play_dead_zone = 0.2f
 
std::map< std::string, std::vector< std::string > > key_bindings
 
std::map< std::string, std::vector< std::string >, std::less<> > hidden_columns
 

Detailed Description

Stores the game's configuration settings.

Member Data Documentation

◆ accent_rgb

uint32_t Settings::accent_rgb = 0x21A663

Custom accent colour, 0xRRGGBB

◆ audio_muted

bool Settings::audio_muted = false

◆ autosave_backups

int Settings::autosave_backups = 3

Previous saves kept per slot, 0-9

◆ autosave_frequency

int Settings::autosave_frequency = 2

AutosaveFrequency: 0 Off .. 5 season end

◆ club_accent

bool Settings::club_accent = true

Accent follows the managed club

◆ color_vision

int Settings::color_vision = 0

Theme::ColorVision: status colour hues

◆ compact_density

bool Settings::compact_density = false

Denser tables and controls

◆ crowd_volume

float Settings::crowd_volume = 0.8f

◆ effects_volume

float Settings::effects_volume = 0.8f

◆ fps_limit

int Settings::fps_limit = 60

Frames per second limit

◆ fullscreen

bool Settings::fullscreen = false

Fullscreen mode flag

◆ hidden_columns

std::map<std::string, std::vector<std::string>, std::less<> > Settings::hidden_columns

◆ key_bindings

std::map<std::string, std::vector<std::string> > Settings::key_bindings

◆ language

Language Settings::language = Language::EN

The selected language

◆ master_volume

float Settings::master_volume = 0.8f

◆ pause_at_breaks

bool Settings::pause_at_breaks = true

Managed match stops at half-time etc.

◆ pause_for_match_changes

bool Settings::pause_for_match_changes = true

Substitutions/tactics pause play

◆ play_auto_switch

int Settings::play_auto_switch = 2

PlayAutoSwitch: 0 off, 1 assisted, 2 auto

◆ play_dead_zone

float Settings::play_dead_zone = 0.2f

Gamepad stick dead zone, 0.05-0.5

◆ play_half_minutes

int Settings::play_half_minutes
Initial value:
= MatchTuning::Timing::
DEFAULT_PLAY_HALF_MINUTES

Real minutes per regulation half, 3-15

◆ play_mode

bool Settings::play_mode = true

Offer Play / Take control in matches

◆ play_pass_assist

int Settings::play_pass_assist = 1

0 none, 1 normal, 2 strong

◆ reduced_motion

bool Settings::reduced_motion = false

Avoid non-essential animation

◆ resolution_height

int Settings::resolution_height = 720

Screen resolution height

◆ resolution_width

int Settings::resolution_width = 1280

Screen resolution width

◆ screen_tips

bool Settings::screen_tips = true

One-line tip on a screen's first visit

◆ screen_tips_seen

uint64_t Settings::screen_tips_seen = 0

Bit per NavSection already explained

◆ text_scale

float Settings::text_scale = 1.0f

Text size on top of the UI scale

◆ theme_preset

int Settings::theme_preset = 0

Index of the colour preset

◆ ui_scale

float Settings::ui_scale = 0.0f

0 = automatic (display scale)

◆ vsync

bool Settings::vsync = false

Wait for the display refresh


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