-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
3,093 additions
and
2,744 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
-- Random BG Colour | ||
return Def.Quad { | ||
OnCommand=function(self) self:Center():zoomto(SCREEN_WIDTH,SCREEN_HEIGHT):diffuse(math.random()/4,math.random()/4,math.random()/4,1) end | ||
} | ||
OnCommand = function(self) self:Center():zoomto(SCREEN_WIDTH, SCREEN_HEIGHT):diffuse(math.random() / 4, math.random() / | ||
4, math.random() / 4, 1) end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-- Insantly go to DDR Wheel. | ||
return Def.ActorFrame { | ||
OnCommand=function(self) | ||
OnCommand = function(self) | ||
SCREENMAN:GetTopScreen():SetNextScreenName("OFSelectMusic"):StartTransitioningScreen("SM_GoToNextScreen") | ||
end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
return function(Songs) | ||
|
||
local Groups = {} | ||
local Groups = {} | ||
|
||
for _,v in ipairs(Songs) do | ||
for _, v in ipairs(Songs) do | ||
local Add = true | ||
for _,v2 in ipairs(Groups) do | ||
for _, v2 in ipairs(Groups) do | ||
if v2 == v[1]:GetGroupName() then Add = false break end | ||
end | ||
if Add then | ||
Groups[#Groups+1] = v[1]:GetGroupName() | ||
end | ||
end | ||
return Groups | ||
end | ||
Groups[#Groups + 1] = v[1]:GetGroupName() | ||
end | ||
end | ||
|
||
return Groups | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
-- Return the main function that contains a list of the groups. | ||
return function(Songs,CurGroup) | ||
return function(Songs, CurGroup) | ||
|
||
local Groups = {} | ||
|
||
for _,v in ipairs(Songs) do | ||
for _, v in ipairs(Songs) do | ||
local Add = true | ||
for _,v2 in ipairs(Groups) do | ||
for _, v2 in ipairs(Groups) do | ||
if v2 == v[1]:GetGroupName() then Add = false break end | ||
end | ||
if Add then | ||
Groups[#Groups+1] = v[1]:GetGroupName() | ||
end | ||
end | ||
Groups[#Groups + 1] = v[1]:GetGroupName() | ||
end | ||
end | ||
|
||
local function compare(a, b) | ||
return a < b | ||
end | ||
|
||
local function compare(a,b) | ||
return a < b | ||
end | ||
|
||
table.sort(Groups, compare) | ||
|
||
local GroupsAndSongs = {} | ||
for _,v in ipairs(Groups) do | ||
GroupsAndSongs[#GroupsAndSongs+1] = v | ||
|
||
for _, v in ipairs(Groups) do | ||
GroupsAndSongs[#GroupsAndSongs + 1] = v | ||
if v == CurGroup then | ||
for _,v2 in ipairs(Songs) do | ||
for _, v2 in ipairs(Songs) do | ||
if v2[1]:GetGroupName() == v then | ||
GroupsAndSongs[#GroupsAndSongs+1] = v2 | ||
GroupsAndSongs[#GroupsAndSongs + 1] = v2 | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
||
return GroupsAndSongs | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
local DiffTab = { | ||
["Difficulty_Beginner"] = 1, | ||
["Difficulty_Easy"] = 1, | ||
["Difficulty_Medium"] = 2, | ||
["Difficulty_Hard"] = 2, | ||
["Difficulty_Challenge"] = 3, | ||
["Difficulty_Edit"] = 4 | ||
local DiffTab = { | ||
["Difficulty_Beginner"] = 1, | ||
["Difficulty_Easy"] = 1, | ||
["Difficulty_Medium"] = 2, | ||
["Difficulty_Hard"] = 2, | ||
["Difficulty_Challenge"] = 3, | ||
["Difficulty_Edit"] = 4 | ||
} | ||
|
||
return function(Songs,CurGroup) | ||
return function(Songs, CurGroup) | ||
local DiffSongs = {} | ||
for i = 1,4 do | ||
for i = 1, 4 do | ||
DiffSongs[i] = {} | ||
end | ||
|
||
for _,song in pairs(Songs) do | ||
for _, song in pairs(Songs) do | ||
|
||
if CurGroup == "" then | ||
CurGroup = song[1]:GetGroupName() | ||
end | ||
|
||
if CurGroup == song[1]:GetGroupName() then | ||
for _,diffs in pairs(song) do | ||
for _, diffs in pairs(song) do | ||
if diffs ~= song[1] then | ||
local curdiff = DiffTab[diffs:GetDifficulty()] | ||
DiffSongs[curdiff][#DiffSongs[curdiff]+1] = {song[1],diffs} | ||
DiffSongs[curdiff][#DiffSongs[curdiff] + 1] = { song[1], diffs } | ||
end | ||
end | ||
end | ||
end | ||
|
||
return DiffSongs | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
local Songs = TF_WHEEL.Songs | ||
local Modes = TF_WHEEL.Modes | ||
|
||
local Images = Def.ActorFrame {Name="PreLoad"} | ||
local Images = Def.ActorFrame { Name = "PreLoad" } | ||
|
||
for i = 1,#Songs do | ||
for i = 1, #Songs do | ||
if type(Songs[i]) ~= "string" then | ||
if string.find(string.lower(Modes), "banner") then | ||
Images[#Images+1] = Def.Sprite { | ||
Name=Songs[i][1]:GetBannerPath(), | ||
Texture=Songs[i][1]:GetBannerPath() | ||
Images[#Images + 1] = Def.Sprite { | ||
Name = Songs[i][1]:GetBannerPath(), | ||
Texture = Songs[i][1]:GetBannerPath() | ||
} | ||
end | ||
if string.find(string.lower(Modes), "background") then | ||
Images[#Images+1] = Def.Sprite { | ||
Name=Songs[i][1]:GetBackgroundPath(), | ||
Texture=Songs[i][1]:GetBackgroundPath() | ||
Images[#Images + 1] = Def.Sprite { | ||
Name = Songs[i][1]:GetBackgroundPath(), | ||
Texture = Songs[i][1]:GetBackgroundPath() | ||
} | ||
end | ||
else | ||
if SONGMAN:GetSongGroupBannerPath(Songs[i]) ~= "" then | ||
Images[#Images+1] = Def.Sprite { | ||
Name=SONGMAN:GetSongGroupBannerPath(Songs[i]), | ||
Texture="../../../../"..SONGMAN:GetSongGroupBannerPath(Songs[i]) | ||
Images[#Images + 1] = Def.Sprite { | ||
Name = SONGMAN:GetSongGroupBannerPath(Songs[i]), | ||
Texture = "../../../../" .. SONGMAN:GetSongGroupBannerPath(Songs[i]) | ||
} | ||
end | ||
end | ||
end | ||
|
||
return Images | ||
return Images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.