From 587a5961ed91631bff2edd94cb653eb5aa9f7976 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 6 Apr 2012 17:32:40 -0400 Subject: [PATCH] Some improvements on the techno side. --- NoteSkins/common/_Editor/NoteSkin.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/NoteSkins/common/_Editor/NoteSkin.lua b/NoteSkins/common/_Editor/NoteSkin.lua index 8295c4f0d6..ff3314b960 100644 --- a/NoteSkins/common/_Editor/NoteSkin.lua +++ b/NoteSkins/common/_Editor/NoteSkin.lua @@ -85,7 +85,20 @@ ret.Redir = function(sButton, sElement) if Var "Button" == "UpRight" and not string.find(sElement, "Explosion") then sButton = "SoloUpRight"; end end elseif GAMESTATE:GetCurrentGame():GetName() == "techno" then - -- TODO: Add Techno unique stuff. + -- See below for why two options. + if GAMESTATE:GetMasterPlayerNumber() == "PlayerNumber_P1" then + if Var "Button" == "Center" then sButton = "Centerp1"; end + elseif GAMESTATE:GetMasterPlayerNumber() == "PlayerNumber_P2" then + if Var "Button" == "Center" then sButton = "Centerp2"; end + end + if string.find(sButton, "Center") then + if string.find(sElement, "Bottomcap") then sButton = "Center"; end + if string.find(sElement, "Topcap") then sButton = "Center"; end + if string.find(sElement, "Body") then sButton = "Center"; end + end + if string.find(sElement, "Explosion") then sButton = "Center"; end + if sElement == "Tap Explosion Dim" then sElement = "Tap Explosion Bright"; end + --]] 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 @@ -154,7 +167,7 @@ function ret.Load() 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 elseif GAMESTATE:GetCurrentGame():GetName() == "techno" then - -- TODO: Add Techno unique stuff. + if Var "Element" == "Tap Mine" then t.InitCommand=cmd(zoom,-0.8); end 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