Skip to content

Commit

Permalink
Add 10K support for CustomizeGameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Jun 10, 2019
1 parent 872f898 commit 56c4123
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Themes/Til Death/Scripts/01 player_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ local defaultConfig = {
["5K"] = DeepCopy(defaultGameplayCoordinates),
["6K"] = DeepCopy(defaultGameplayCoordinates),
["7K"] = DeepCopy(defaultGameplayCoordinates),
["8K"] = DeepCopy(defaultGameplayCoordinates)
["8K"] = DeepCopy(defaultGameplayCoordinates),
["10K"] = DeepCopy(defaultGameplayCoordinates)
},
GameplaySizes = {
["4K"] = DeepCopy(defaultGameplaySizes),
["5K"] = DeepCopy(defaultGameplaySizes),
["6K"] = DeepCopy(defaultGameplaySizes),
["7K"] = DeepCopy(defaultGameplaySizes),
["8K"] = DeepCopy(defaultGameplaySizes)
["8K"] = DeepCopy(defaultGameplaySizes),
["10K"] = DeepCopy(defaultGameplaySizes)
}
}

Expand All @@ -120,13 +122,15 @@ playerConfig.load = function(self, slot)
defaultConfig.GameplaySizes["6K"] = sizes
defaultConfig.GameplaySizes["7K"] = sizes
defaultConfig.GameplaySizes["8K"] = sizes
defaultConfig.GameplaySizes["10K"] = sizes
end
if coords and not coords["4K"] then
defaultConfig.GameplayXYCoordinates["4K"] = coords
defaultConfig.GameplayXYCoordinates["5K"] = coords
defaultConfig.GameplayXYCoordinates["6K"] = coords
defaultConfig.GameplayXYCoordinates["7K"] = coords
defaultConfig.GameplayXYCoordinates["8K"] = coords
defaultConfig.GameplayXYCoordinates["10K"] = coords
end
force_table_elements_to_match_type = tmp
return tmp2(self, slot)
Expand Down
1 change: 1 addition & 0 deletions Themes/_fallback/Scripts/00 Utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ function getCurrentKeyMode()
StepsType_Dance_Solo = "6K",
StepsType_Kb7_Single = "7K",
StepsType_Dance_Double = "8K",
StepsType_Pump_Double = "10K"
}
local stepstype = GAMESTATE:GetCurrentSteps(PLAYER_1):GetStepsType()
return keys[stepstype]
Expand Down

0 comments on commit 56c4123

Please sign in to comment.