Skip to content

Commit

Permalink
Add a notification entering Gameplay of invalidating mods
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 30, 2019
1 parent 08f4028 commit 86d5253
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
local mods = {}

local translated_info = {
InvalidMods = THEME:GetString("ScreenGameplay", "InvalidMods")
}

local t =
Def.ActorFrame {
-- splashy thing when you first start a song
Expand Down Expand Up @@ -52,11 +58,35 @@ local t =
self:settext(GAMESTATE:GetCurrentSong():GetDisplayArtist())
end,
OnCommand = function(self)
self:smooth(0.5):diffusealpha(1):sleep(1):smooth(0.3):smooth(0.4):diffusealpha(0):queuecommand("Doot")
local time = 0.4
if #mods > 0 then
time = 2
end
self:smooth(0.5):diffusealpha(1):sleep(1):smooth(0.3):smooth(0.4):diffusealpha(0):sleep(time):queuecommand("Doot")
end,
DootCommand = function(self)
self:GetParent():queuecommand("Doot")
end
},
LoadFont("Common Normal") ..
{
Name = "DestroyMe5",
InitCommand = function(self)
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y - 10):zoom(0.7):diffusealpha(0):valign(0)
end,
BeginCommand = function(self)
mods = GAMESTATE:GetPlayerState(PLAYER_1):GetCurrentPlayerOptions():GetInvalidatingMods()
local translated = {}
if #mods > 0 then
for _,mod in ipairs(mods) do
table.insert(translated, THEME:HasString("OptionNames", mod) and THEME:GetString("OptionNames", mod) or mod)
end
self:settextf("%s\n%s", translated_info["InvalidMods"], table.concat(translated, "\n"))
end
end,
OnCommand = function(self)
self:smooth(0.5):diffusealpha(1):sleep(1):smooth(0.3):smooth(0.4):smooth(2):diffusealpha(0)
end
}
}
return t
1 change: 1 addition & 0 deletions Themes/Til Death/Languages/en.ini
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ ErrorBarLate=Late
ScoringJudge=Judge
ScoringType=Scoring
ComboText=COMBO
InvalidMods=INVALID MODIFIERS

[ScreenNetRoom]
Title=Lobby
Expand Down

0 comments on commit 86d5253

Please sign in to comment.