ASAPCabinetFE
 
Loading...
Searching...
No Matches
Settings Struct Reference
+ Collaboration diagram for Settings:

Public Types

enum class  ReloadType {
  None , Title , Tables , Assets ,
  Windows , Overlay , Audio , Font
}
 

Public Member Functions

void applyPostProcessing (const std::string &exeDir)
 
std::string resolvePath (const std::string &value, const std::string &exeDir) const
 

Public Attributes

std::string VPXTablesPath = "$HOME/Games/VPX_Tables/"
 
std::string VPinballXPath = "$HOME/Games/vpinball/build/VPinballX_BGFX"
 
std::string vpxIniPath = ""
 
std::string vpxStartArgs = ""
 
std::string vpxEndArgs = ""
 
bool autoPatchTables = false
 
float dpiScale = 1.0f
 
bool enableDpiScaling = true
 
std::string defaultPlayfieldImage = "img/default_table.png"
 
std::string defaultBackglassImage = "img/default_backglass.png"
 
std::string defaultDmdImage = "img/default_dmd.png"
 
std::string defaultWheelImage = "img/default_wheel.png"
 
std::string defaultTopperImage = "img/default_topper.png"
 
std::string defaultPlayfieldVideo = "img/default_table.mp4"
 
std::string defaultBackglassVideo = "img/default_backglass.mp4"
 
std::string defaultDmdVideo = "img/default_dmd.mp4"
 
std::string defaultTopperVideo = "img/default_topper.mp4"
 
std::string customPlayfieldImage = "images/table.png"
 
std::string customBackglassImage = "images/backglass.png"
 
std::string customDmdImage = "images/dmd.png"
 
std::string customWheelImage = "images/wheel.png"
 
std::string customTopperImage = "images/topper.png"
 
std::string customPlayfieldVideo = "video/table.mp4"
 
std::string customBackglassVideo = "video/backglass.mp4"
 
std::string customDmdVideo = "video/dmd.mp4"
 
std::string customTopperVideo = "images/topper.mp4"
 
std::string tableMusic = "audio/music.mp3"
 
std::string customLaunchSound = "audio/launch.mp3"
 
std::string videoBackend = "vlc"
 
bool useVPinballXIni = true
 
int playfieldWindowWidth = 1080
 
int playfieldWindowHeight = 1920
 
int playfieldX = -1
 
int playfieldY = -1
 
bool showBackglass = true
 
int backglassWindowWidth = 1024
 
int backglassWindowHeight = 768
 
int backglassX = -1
 
int backglassY = -1
 
bool showDMD = true
 
int dmdWindowWidth = 1024
 
int dmdWindowHeight = 256
 
int dmdX = -1
 
int dmdY = -1
 
bool showTopper = false
 
int topperWindowWidth = 512
 
int topperWindowHeight = 128
 
int topperWindowX = -1
 
int topperWindowY = -1
 
std::string titleSource = "filename"
 
bool fetchVPSdb = false
 
bool useVpxtool = false
 
bool fetchVpinMediaDb = false
 
bool resizeToWindows = false
 
bool ignoreScanners = false
 
bool forceRebuildMetadata = false
 
std::string titleSortBy = "title"
 
bool showMetadata = false
 
float metadataPanelWidth = 0.7f
 
float metadataPanelHeight = 0.5f
 
float metadataPanelAlpha = 0.6f
 
float titleWeight = 0.6f
 
float yearWeight = 0.2f
 
float manufacturerWeight = 0.1f
 
float romWeight = 0.25f
 
float titleThreshold = 0.55f
 
float confidenceThreshold = 0.6f
 
bool showArrowHint = true
 
float arrowHintWidth = 20.0f
 
float arrowHintHeight = 100.0f
 
float arrowThickness = 4.0f
 
float arrowAlpha = 0.6f
 
float arrowGlow = 1.5f
 
SDL_Color arrowGlowColor = {200, 200, 200, 255}
 
SDL_Color arrowColorTop = {100, 100, 100, 255}
 
SDL_Color arrowColorBottom = {150, 150, 150, 255}
 
bool showScrollbar = true
 
float scrollbarWidth = 12.0f
 
float thumbWidth = 15.0f
 
float scrollbarLength = 0.5f
 
SDL_Color scrollbarColor = {50, 50, 50, 200}
 
SDL_Color scrollbarThumbColor = {50, 150, 150, 255}
 
bool showWheel = true
 
std::string wheelWindow = "playfield"
 
bool showTitle = true
 
std::string titleWindow = "playfield"
 
std::string fontPath = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
 
SDL_Color fontColor = {255, 255, 255, 255}
 
SDL_Color fontBgColor = {0, 0, 0, 128}
 
int fontSize = 28
 
int titleX = 30
 
int titleY = 1850
 
bool forceImagesOnly = false
 
int wheelMediaHeight = 350
 
int wheelMediaWidth = 350
 
int wheelMediaX = 720
 
int wheelMediaY = 1550
 
int playfieldMediaWidth = 1080
 
int playfieldMediaHeight = 1920
 
int playfieldMediaX = 0
 
int playfieldMediaY = 0
 
int playfieldRotation = 0
 
int backglassMediaWidth = 1024
 
int backglassMediaHeight = 768
 
int backglassMediaX = 0
 
int backglassMediaY = 0
 
int backglassRotation = 0
 
int dmdMediaWidth = 1024
 
int dmdMediaHeight = 256
 
int dmdMediaX = 0
 
int dmdMediaY = 0
 
int dmdRotation = 0
 
int topperMediaWidth = 512
 
int topperMediaHeight = 128
 
int topperMediaX = 0
 
int topperMediaY = 0
 
int topperRotation = 0
 
bool masterMute = false
 
float masterVol = 100.0f
 
bool mediaAudioMute = false
 
float mediaAudioVol = 60.0f
 
bool tableMusicMute = false
 
float tableMusicVol = 60.0f
 
bool interfaceAudioMute = false
 
float interfaceAudioVol = 60.0f
 
bool interfaceAmbienceMute = false
 
float interfaceAmbienceVol = 60.0f
 
std::string scrollNormalSound = "snd/scroll_normal.mp3"
 
std::string scrollFastSound = "snd/scroll_fast.mp3"
 
std::string scrollJumpSound = "snd/scroll_jump.mp3"
 
std::string scrollRandomSound = "snd/scroll_random.mp3"
 
std::string launchTableSound = "snd/launch_table.mp3"
 
std::string launchScreenshotSound = "snd/launch_screenshot.mp3"
 
std::string panelToggleSound = "snd/panel_toggle.mp3"
 
std::string screenshotTakeSound = "snd/screenshot_take.mp3"
 
std::string ambienceSound = "snd/interface_ambience.mp3"
 
std::string exeDir
 
std::string vpxSubCmd = "-Play"
 
std::string vpsDbPath = "data/vpsdb.json"
 
std::string vpsDbUpdateFrequency = "startup"
 
std::string vpsDbLastUpdated = "data/lastUpdated.json"
 
std::string vpxtoolBin = ""
 
std::string vpxtoolIndex = "vpxtool_index.json"
 
std::string indexPath = "data/asapcab_index.json"
 
int screenshotWait = 4
 
float configUIWidth = 0.7f
 
float configUIHeight = 0.5f
 
std::map< std::string, std::string > keybinds_
 

Static Public Attributes

static const std::map< std::string, std::pair< ReloadType, std::string > > settingsMetadata
 

Friends

void to_json (nlohmann::json &j, const Settings &s)
 
void from_json (const nlohmann::json &j, Settings &s)
 

Member Data Documentation

◆ keybinds_

std::map<std::string, std::string> Settings::keybinds_
Initial value:
= {
{"Previous Table", "Left Shift"},
{"Next Table", "Right Shift"},
{"Fast Previous Table", "Left Ctrl"},
{"Fast Next Table", "Right Ctrl"},
{"Jump Next Letter", "/"},
{"Jump Previous Letter", "Z"},
{"Random Table", "R"},
{"Launch Table", "Return"},
{"Toggle Config", "C"},
{"Quit", "Q"},
{"Screenshot Mode", "S"},
{"Screenshot Key", "S"},
{"Screenshot Quit", "Q"},
{"Toggle Editor", "M"},
{"Toggle Catalog", "N"}
}

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