Skip to content

Commit

Permalink
Add some more NSkinElement getter things
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Apr 3, 2021
1 parent 5208792 commit 6d90f71
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions Themes/_fallback/Scripts/09 SimNSkinPreview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,32 @@ local function SimChild(Container, Type)
return rType
end

function GameToNSkinElements()
local out = Def.ActorFrame {}
function GivenGameToFullNSkinElements(game)
-- for this, restrict to only 4 keys to show them off
-- and to save on visible space
local theTable = {
dance = {
"Left", "Down", "Up", "Right"
},
pump = {
"DownLeft", "UpLeft", "Center", "UpRight", "DownRight"
},
kb7 = {
"Key1", "Key2", "Key3", "Key4", "Key5", "Key6", "Key7"
},
beat = {
--"scratch", "Key1", "Key2", "Key3"
"Key1", "Key2", "Key3", "Key4", "Key5", "Key6", "Key7", "scratch"
},
solo = {
--"Left", "UpLeft", "UpRight", "Right"
"Left", "UpLeft", "Down", "Up", "UpRight", "Right"
}
}
return theTable[game]
end

function GivenGameToNSkinElements(game)
-- for this, restrict to only 4 keys to show them off
-- and to save on visible space
local theTable = {
Expand All @@ -64,9 +88,12 @@ function GameToNSkinElements()
--"Left", "UpLeft", "Down", "Up", "UpRight", "Right"
}
}
return theTable[game]
end

function GameToNSkinElements()
local game = PREFSMAN:GetPreference("CurrentGame")
return theTable[game]
return GivenGameToNSkinElements(game)
end

--- Load a NoteSkin preview actor
Expand Down

0 comments on commit 6d90f71

Please sign in to comment.