diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 65aaeca8d4..c6e242c503 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -1,4 +1,4 @@ -StepMania 5 Changelog +StepMania 5 Changelog ________________________________________________________________________________ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt. @@ -9,6 +9,11 @@ ________________________________________________________________________________ StepMania 5.0 alpha 2 | 201204?? -------------------------------------------------------------------------------- +2012/04/06 +---------- +* Modify Jousway's planned noteskin to allow it to work with Technomotion + style gameplay. Expect minor bugs. [Jousway, Wolfman2000] + 2012/04/03 ---------- * [PlayerOptions] Fix setting some effect mods that were always set to Drunk. diff --git a/NoteSkins/common/_Editor/NoteSkin.lua b/NoteSkins/common/_Editor/NoteSkin.lua index 7fe4e5aeb5..8295c4f0d6 100644 --- a/NoteSkins/common/_Editor/NoteSkin.lua +++ b/NoteSkins/common/_Editor/NoteSkin.lua @@ -63,8 +63,11 @@ ret.Redir = function(sButton, sElement) if Var "Button" == "Right" then sButton = "Right"; end if Var "Button" == "Down" then sButton = "Down"; end if Var "Button" == "Up" then sButton = "Up"; end - if Var "Button" == "UpLeft" then sButton = "UpLeft"; end - if Var "Button" == "UpRight" then sButton = "UpRight"; end + if GAMESTATE:GetCurrentGame():GetName() == "dance" then + if Var "Button" == "UpLeft" then sButton = "UpLeft"; end + if Var "Button" == "UpRight" then sButton = "UpRight"; end + end + end end @@ -81,8 +84,9 @@ ret.Redir = function(sButton, sElement) if Var "Button" == "UpLeft" and not string.find(sElement, "Explosion") then sButton = "SoloUpLeft"; end if Var "Button" == "UpRight" and not string.find(sElement, "Explosion") then sButton = "SoloUpRight"; end end - end - if GAMESTATE:GetCurrentGame():GetName() == "pump" then + elseif GAMESTATE:GetCurrentGame():GetName() == "techno" then + -- TODO: Add Techno unique stuff. + elseif GAMESTATE:GetCurrentGame():GetName() == "pump" then --Making Pump it up be rythm color based, Only problem is that in sm player 1 and player 2 noteskins are both defined as player 1 --Need a way to get the parent but atm it ends up as nil because of no parent --So Player 1 and 2 both use Player 1 images for now @@ -149,8 +153,9 @@ function ret.Load() --We define that we dont want the hold heads for UpLeft and UpRight to be rotated because we rotate them in a lua file if Var "Button" == "UpLeft" and string.find(sElement, "Head") then t.BaseRotationZ = nil; end if Var "Button" == "UpRight" and string.find(sElement, "Head") then t.BaseRotationZ = nil; end - end - if GAMESTATE:GetCurrentGame():GetName() == "pump" then + elseif GAMESTATE:GetCurrentGame():GetName() == "techno" then + -- TODO: Add Techno unique stuff. + elseif GAMESTATE:GetCurrentGame():GetName() == "pump" then --Because the images for Pump it up are using the DownLeft for every direction aside from center, We let it be rotated here --Because the rotate table is set up for dance and these are for PIU if Var "Button" == "UpLeft" then t.BaseRotationZ = 90; end @@ -191,8 +196,8 @@ ret.Rotate = UpLeft = 135, UpRight = -135, Center = 0, - DownLeft = 0, - DownRight = -0, + DownLeft = 45, + DownRight = -45, }; --Parts that should be Redirected to _Blank.png diff --git a/NoteSkins/techno/default/metrics.ini b/NoteSkins/techno/default/metrics.ini new file mode 100644 index 0000000000..b5f11fe984 --- /dev/null +++ b/NoteSkins/techno/default/metrics.ini @@ -0,0 +1,2 @@ +[Global] +FallbackNoteSkin=_Editor \ No newline at end of file