From 3565bc0b9303181e6452e4f6ba123a43e4fbb833 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Tue, 27 Dec 2011 20:03:56 -0600 Subject: [PATCH] start the process of moving theme prefs to the new format --- Themes/default/Scripts/03 ThemePrefs.lua | 71 +++++++++++++++++++++++- 1 file changed, 68 insertions(+), 3 deletions(-) diff --git a/Themes/default/Scripts/03 ThemePrefs.lua b/Themes/default/Scripts/03 ThemePrefs.lua index f278f83347..2a06cd6f45 100644 --- a/Themes/default/Scripts/03 ThemePrefs.lua +++ b/Themes/default/Scripts/03 ThemePrefs.lua @@ -1,14 +1,79 @@ --- sm-ssc Default Theme Preferences Handler +-- StepMania 5 Default Theme Preferences Handler +local function OptionNameString(str) + return THEME:GetString('OptionNames',str) +end --- Example usage of new system (not really implemented yet) +-- Example usage of new system (not fully implemented yet) local Prefs = { AutoSetStyle = { Default = false, - Choices = { "ON", "OFF" }, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + GameplayShowStepsDisplay = + { + Default = true, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + GameplayShowScore = + { + Default = false, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + ShowLotsaOptions = + { + Default = true, + Choices = { OptionNameString('Many'), OptionNameString('Few') }, Values = { true, false } }, + LongFail = + { + Default = false, + Choices = { OptionNameString('Short'), OptionNameString('Long') }, + Values = { false, true } + }, + NotePosition = + { + Default = true, + Choices = { OptionNameString('Normal'), OptionNameString('Lower') }, + Values = { true, false } + }, + ComboOnRolls = + { + Default = false, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + FlashyCombos = + { + Default = false, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + ComboUnderField = + { + Default = true, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + FancyUIBG = + { + Default = true, + Choices = { OptionNameString('Off'), OptionNameString('On') }, + Values = { false, true } + }, + --[[ + TimingDisplay, + + ProtimingP1, + ProtimingP2, + + UserPrefScoringMode = 'DDR Extreme' + --]] } ThemePrefs.InitAll(Prefs)