From bbee5633a9b9d021342643ba3b11e4aff4109b29 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 29 Dec 2010 19:03:37 -0500 Subject: [PATCH] Move Routine noteskin selection to lua. Only dance mode's skins are definite for now. --- Themes/_fallback/Scripts/03 Gameplay.lua | 26 ++++++++++++++++++++++++ Themes/_fallback/metrics.ini | 4 ++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Themes/_fallback/Scripts/03 Gameplay.lua b/Themes/_fallback/Scripts/03 Gameplay.lua index 464320ad59..4d3c690108 100644 --- a/Themes/_fallback/Scripts/03 Gameplay.lua +++ b/Themes/_fallback/Scripts/03 Gameplay.lua @@ -147,6 +147,32 @@ function FailCombo() return Combo[sGame] end +function RoutineSkinP1() + sGame = GAMESTATE:GetCurrentGame():GetName() + local Combo = { + dance = "midi-routine-p1", + pump = "default", + beat = "default", + kb7 = "default", + para = "default", + guitar = "default" + } + return Combo[sGame] +end + +function RoutineSkinP2() + sGame = GAMESTATE:GetCurrentGame():GetName() + local Combo = { + dance = "midi-routine-p2", + pump = "simple", + beat = "default", + kb7 = "retrobar", + para = "default", + guitar = "default" + } + return Combo[sGame] +end + -- todo: use tables for some of these -aj function HoldTiming() if GAMESTATE:GetCurrentGame():GetName() == "pump" then diff --git a/Themes/_fallback/metrics.ini b/Themes/_fallback/metrics.ini index 3f6de4c871..6164f916c9 100644 --- a/Themes/_fallback/metrics.ini +++ b/Themes/_fallback/metrics.ini @@ -867,8 +867,8 @@ Bar4thAlpha=1 Bar8thAlpha=1 Bar16thAlpha=1 # -RoutineNoteSkinP1="midi-routine-p1" -RoutineNoteSkinP2="midi-routine-p2" +RoutineNoteSkinP1=RoutineSkinP1() +RoutineNoteSkinP2=RoutineSkinP2() [PlayerStageStats] # Original CVS Grading