Skip to content

Commit

Permalink
UPDATE 20230402
Browse files Browse the repository at this point in the history
  • Loading branch information
Curilang committed Apr 2, 2023
1 parent 8f862ce commit 8dd409a
Show file tree
Hide file tree
Showing 83 changed files with 182 additions and 255 deletions.
2 changes: 1 addition & 1 deletion Themes/DDR A3/BGAnimations/ModDate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ return Def.BitmapText{
Font="_futura pt medium 30px";
InitCommand=function(s)
-- MDX:A:A:A:Year/Month/Day/00
s:settext("MDX:A:A:A:20230324")
s:settext("MDX:A:A:A:2023040200")
s:xy(SCREEN_LEFT+64.2,SCREEN_TOP+8.5)
s:zoomx(0.42)
s:zoomy(0.4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,10 @@ end

for pn in ivalues(GAMESTATE:GetEnabledPlayers()) do
if not GAMESTATE:IsDemonstration() then
if ReadPrefFromFile("SelectCharacter") ~= nil then
if GetUserPref("SelectCharacter"..pn) == "Random" then
GAMESTATE:SetCharacter(pn,GetUserPref("CharaRandom"..pn))
else
GAMESTATE:SetCharacter(pn,GetUserPref("SelectCharacter"..pn))
end
if GetUserPref("SelectCharacter"..pn) ~= "Random" then
GAMESTATE:SetCharacter(pn,GetUserPref("SelectCharacter"..pn))
else
GAMESTATE:SetCharacter(pn,CharaRandom[math.random(#CharaRandom)])
GAMESTATE:SetCharacter(pn,GetUserPref("CharaRandom"..pn))
end
else
GAMESTATE:SetCharacter(pn,CharaRandom[math.random(#CharaRandom)])
Expand All @@ -60,8 +56,8 @@ end
------- CHARACTER ORDER -------

Listed = {
Character(PLAYER_1),
Character(PLAYER_2),
GAMESTATE:GetCharacter(PLAYER_1):GetDisplayName(),
GAMESTATE:GetCharacter(PLAYER_2):GetDisplayName(),
GetUserPref("Mate1"),
GetUserPref("Mate2"),
GetUserPref("Mate3"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (VideoStage() and GAMESTATE:GetCurrentSong():HasBGChanges()) or (not GAMESTAT
t[#t+1] = LoadActor(StagesFolder..DanceStage.."/LoaderA.lua" )

-------------- CHARACTERS --------------
if not (GetUserPref("SelectCharacter"..PLAYER_1) == "None" or GetUserPref("SelectCharacter"..PLAYER_2) == "None") then
if not (GetUserPref("SelectCharacter"..PLAYER_1) == "None") or (GetUserPref("SelectCharacter"..PLAYER_2) == "None") then
t[#t+1] = LoadActor("Characters");
end
------- DANCESTAGE LOADER 2 -------
Expand Down
29 changes: 0 additions & 29 deletions Themes/DDR A3/BGAnimations/ScreenGameplay decorations/Score.lua

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ t[#t+1] = Def.ActorFrame {
speedDelta = -0.25;
end;

speed = math.max(0.5, math.min(speed + speedDelta, 10.0));
speed = math.max(0.25, math.min(speed + speedDelta, 10.0));
targetBPM[pn] = speed * maxBPM[pn];

local modstring = ps:GetPlayerOptionsString("ModsLevel_Preferred");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ t[#t+1] = Def.Actor{
end;
};

local lastAnnouncer = ANNOUNCER:GetCurrentAnnouncer()
t[#t+1] = Def.ActorFrame {
Def.Actor {
InitCommand=function(s)
ANNOUNCER:SetCurrentAnnouncer('')
s:sleep(BeginReadyDelay()):queuecommand('Play')
end,
PlayCommand=function(s)
if lastAnnouncer then
ANNOUNCER:SetCurrentAnnouncer(lastAnnouncer)
end
SOUND:PlayAnnouncer('gameplay ready') end,
},
};

if not GAMESTATE:IsDemonstration() then
if ShowCutIns() then
if GetUserPref("OptionRowGameplayBackground")=='DanceStages' then
Expand Down Expand Up @@ -56,7 +71,10 @@ end

t[#t+1] = LoadActor("ScoreFrame")..{ InitCommand=function(s) s:draworder(99) end, };
t[#t+1] = LoadActor("message")..{ InitCommand=function(s) s:draworder(99) end, };
t[#t+1] = LoadActor("doors")..{ InitCommand=function(s) s:draworder(99) end, };

if not GAMESTATE:IsDemonstration() then
t[#t+1] = LoadActor("doors")..{ InitCommand=function(s) s:draworder(99) end, };
end

t[#t+1] = Def.ActorFrame {
Condition=not GAMESTATE:IsDemonstration(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ return Def.ActorFrame {
};
LoadActor(Model().."Back") .. {
InitCommand=function(s)
if IsOptionService() or IsCustomOptions() or IsOptionManageProfiles() then
if IsOptionService() or IsOptionManageProfiles() then
s:xy(_screen.cx+10,_screen.cy-24):setsize(500,400)
else
s:xy(_screen.cx,_screen.cy-9):setsize(720,430)
Expand All @@ -24,7 +24,7 @@ return Def.ActorFrame {
};
LoadActor(THEME:GetPathG("","ScreenSelectProfile/"..Model().."bottom")) .. {
InitCommand=function(s) s:x(_screen.cx):setsize(400,59)
if IsOptionService() or IsCustomOptions() or IsOptionManageProfiles() then
if IsOptionService() or IsOptionManageProfiles() then
s:y(SCREEN_BOTTOM-86)
else
s:y(SCREEN_BOTTOM-60)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,28 @@ end
local screen = SCREENMAN:GetTopScreen();


local rownames
local rownames = OptionNumber()
if GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2() then
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds" }
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "Remove", "Freeze", "Jump", "VisualDelaySeconds" }
else
if GetUserPref("OptionRowGameplayBackground")=='DanceStages' then
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "DanceStage" }
if GetUserPref("NTOption")=='On' then
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "DanceStage", "Arrow" }
else
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "DanceStage" }
end
elseif GetUserPref("OptionRowGameplayBackground")=='SNCharacters' then
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "Characters" }
if GetUserPref("NTOption")=='On' then
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "Characters", "Arrow" }
else
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "Characters" }
end
else
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", }
if GetUserPref("NTOption")=='On' then
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", "Arrow" }
else
rownames = { "Speed", "Accel", "Appearance", "Turn", "Hide", "Scroll", "NoteSkins", "Remove", "Freeze", "Jump", "VisualDelaySeconds", "Gauge", }
end
end
end

Expand Down
Binary file added Themes/DDR A3/Graphics/OptionIcon/P1/Speed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x025.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x050.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x075.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x100.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x125.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x150.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x175.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x200.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x225.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x250.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x275.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x300.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x325.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x350.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x375.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x400.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x425.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x450.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x475.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x500.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x525.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x550.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x575.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x600.png
Binary file not shown.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x625.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x650.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x675.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x700.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x725.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x750.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x775.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P1/Speed/x800.png
Diff not rendered.
Binary file added Themes/DDR A3/Graphics/OptionIcon/P2/Speed.png
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x025.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x050.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x075.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x100.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x125.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x150.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x175.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x200.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x225.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x250.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x275.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x300.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x325.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x350.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x375.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x400.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x425.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x450.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x475.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x500.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x525.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x550.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x575.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x600.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x625.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x650.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x675.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x700.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x725.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x750.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x775.png
Diff not rendered.
Binary file removed Themes/DDR A3/Graphics/OptionIcon/P2/Speed/x800.png
Diff not rendered.
109 changes: 26 additions & 83 deletions Themes/DDR A3/Graphics/OptionIcon/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,8 @@ local player = ToEnumShortString(pn)

return Def.ActorFrame {
-- Speed
Def.Sprite {
OnCommand=function(self)
self:x(-186);
if GAMESTATE:PlayerIsUsingModifier(pn,'0.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x025.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'0.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x050.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'0.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x075.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'1x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x100.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'1.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x125.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'1.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x150.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'1.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x175.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'2x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x200.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'2.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x225.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'2.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x250.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'2.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x275.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'3x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x300.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'3.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x325.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'3.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x350.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'3.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x375.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'4x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x400.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'4.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x425.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'4.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x450.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'4.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x475.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x500.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'5.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x525.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'5.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x550.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'5.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x575.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'6x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x600.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'6.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x625.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'6.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x650.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'6.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x675.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'7x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x700.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'7.25x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x725.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'7.5x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x750.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'7.75x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x775.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'8x') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Speed/x800.png"));
end;
end;
Def.ActorFrame{
OnCommand=function(s) s:x(-186) end,
PlayerJoinedMessageCommand=function(self, params)
if params.Player == pn then
self:playcommand("On");
Expand All @@ -82,16 +15,26 @@ return Def.ActorFrame {
self:queuecommand("On");
end;
end;
Def.Sprite{
Texture=THEME:GetPathG("","OptionIcon/"..player.."/Speed"),
};
Def.BitmapText{
Font="_arial black 28px",
OnCommand=function(self)
self:y(1):zoomx(0.78):zoomy(0.74):maxwidth(34)
self:settext("x"..GAMESTATE:GetPlayerState(pn):GetPlayerOptions("ModsLevel_Preferred"):ScrollSpeed());
end;
};
};
-- Boost
Def.Sprite {
InitCommand=function(self)
self:x(-153);
if IsBoost(pn) then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Boost() == 1 then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Boost/Boost.png"));
elseif IsBrake(pn) then
elseif GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Brake() == 1 then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Boost/Brake.png"));
elseif IsWave(pn) then
elseif GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Wave() == 1 then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Boost/Wave.png"));
end;
end;
Expand Down Expand Up @@ -133,13 +76,13 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(-85);
if GAMESTATE:PlayerIsUsingModifier(pn,'mirror') then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Mirror() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Turn/Mirror.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'left') then
elseif GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Left() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Turn/Left.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'right') then
elseif GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Right() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Turn/Right.png"));
elseif GAMESTATE:PlayerIsUsingModifier(pn,'shuffle') then
elseif GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Shuffle() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Turn/Shuffle.png"));
end;
end;
Expand All @@ -153,7 +96,7 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(-51);
if IsDark(pn) then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Dark() == 1 then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Dark/Off.png"));
end;
end;
Expand All @@ -167,7 +110,7 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(-18);
if IsReverse(pn) then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Reverse() == 1 then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Scroll/Reverse.png"));
end;
end;
Expand Down Expand Up @@ -199,7 +142,7 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(49);
if GAMESTATE:PlayerIsUsingModifier(pn,'little') then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):Little() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Cut/On1.png"));
end;
end;
Expand All @@ -213,7 +156,7 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(83);
if GAMESTATE:PlayerIsUsingModifier(pn,'noholds') then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):NoHolds() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Freeze/Off.png"));
end;
end;
Expand All @@ -227,7 +170,7 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(116);
if GAMESTATE:PlayerIsUsingModifier(pn,'nojumps') then
if GAMESTATE:GetPlayerState(pn):GetPlayerOptions('ModsLevel_Current'):NoJumps() then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Jump/On2.png"));
end;
end;
Expand All @@ -241,9 +184,9 @@ return Def.ActorFrame {
Def.Sprite {
InitCommand=function(self)
self:x(151);
if Is4Lives(pn) then
if table.search(GAMESTATE:GetPlayerState(pn):GetPlayerOptionsArray("ModsLevel_Preferred"), '4Lives') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Gauge/Life4.png"));
elseif Is1Lives(pn) then
elseif table.search(GAMESTATE:GetPlayerState(pn):GetPlayerOptionsArray("ModsLevel_Preferred"), '1Lives') then
self:Load(THEME:GetPathG("","OptionIcon/"..player.."/Gauge/Risky.png"));
end;
end;
Expand Down
Loading

0 comments on commit 8dd409a

Please sign in to comment.