-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add til death gameplay title splash to rebirth
- Loading branch information
Showing
3 changed files
with
137 additions
and
0 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,5 +1,6 @@ | ||
local t = Def.ActorFrame {Name = "GameplayOverlayDefaultFile"} | ||
|
||
t[#t+1] = LoadActor("elements") | ||
t[#t+1] = LoadActor("titlesplash") | ||
|
||
return t |
135 changes: 135 additions & 0 deletions
135
Themes/Rebirth/BGAnimations/ScreenGameplay overlay/titlesplash.lua
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 |
---|---|---|
@@ -0,0 +1,135 @@ | ||
local mods = {} | ||
|
||
local translated_info = { | ||
InvalidMods = THEME:GetString("ScreenGameplay", "InvalidMods") | ||
} | ||
|
||
local textSize = 0.8 | ||
local subtextSize = 0.75 | ||
local bigTextSize = 1.2 | ||
|
||
local width = SCREEN_WIDTH / 3 | ||
local linesize = 75 / 1080 * SCREEN_HEIGHT | ||
local height = linesize * 3 | ||
|
||
local t = Def.ActorFrame { | ||
Name = "Splashy", | ||
DootCommand = function(self) | ||
self:RemoveAllChildren() | ||
end, | ||
Def.Quad { | ||
Name = "DestroyMe", | ||
InitCommand = function(self) | ||
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y) | ||
self:zoomto(width, height) | ||
self:valign(1) | ||
self:diffuse(getMainColor("PrimaryBackground")) | ||
self:fadeleft(0.4):faderight(0.4) | ||
self:diffusealpha(0) | ||
end, | ||
OnCommand = function(self) | ||
self:smooth(0.5) | ||
self:diffusealpha(0.7) | ||
self:sleep(1) | ||
self:smooth(0.7) | ||
self:diffusealpha(0) | ||
end | ||
}, | ||
LoadFont("Common Large") .. { | ||
Name = "DestroyMe2", | ||
InitCommand = function(self) | ||
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y - linesize * 2) | ||
self:zoom(textSize) | ||
self:diffuse(getMainColor("PrimaryText")) | ||
self:diffusealpha(0) | ||
self:maxwidth(width / textSize) | ||
end, | ||
BeginCommand = function(self) | ||
self:settext(GAMESTATE:GetCurrentSong():GetDisplayMainTitle()) | ||
end, | ||
OnCommand = function(self) | ||
self:smooth(0.5) | ||
self:diffusealpha(1) | ||
self:sleep(1) | ||
self:smooth(0.7) | ||
self:diffusealpha(0) | ||
end | ||
}, | ||
LoadFont("Common Normal") .. { | ||
Name = "DestroyMe3", | ||
InitCommand = function(self) | ||
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y - linesize * 1.5) | ||
self:zoom(subtextSize) | ||
self:diffuse(getMainColor("PrimaryText")) | ||
self:diffusealpha(0) | ||
self:maxwidth(width / subtextSize) | ||
end, | ||
BeginCommand = function(self) | ||
self:settext(GAMESTATE:GetCurrentSong():GetDisplaySubTitle()) | ||
end, | ||
OnCommand = function(self) | ||
self:smooth(0.5) | ||
self:diffusealpha(1) | ||
self:sleep(1) | ||
self:smooth(0.7) | ||
self:diffusealpha(0) | ||
end | ||
}, | ||
LoadFont("Common Normal") .. { | ||
Name = "DestroyMe4", | ||
InitCommand = function(self) | ||
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y - linesize) | ||
self:zoom(subtextSize) | ||
self:diffuse(getMainColor("PrimaryText")) | ||
self:diffusealpha(0) | ||
self:maxwidth(width / subtextSize) | ||
end, | ||
BeginCommand = function(self) | ||
self:settext(GAMESTATE:GetCurrentSong():GetDisplayArtist()) | ||
end, | ||
OnCommand = function(self) | ||
local time = 0.4 | ||
if #mods > 0 then | ||
time = 2 | ||
end | ||
self:smooth(0.5) | ||
self:diffusealpha(1) | ||
self:sleep(1) | ||
self:smooth(0.7) | ||
self:diffusealpha(0) | ||
self:sleep(time) | ||
self: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 + linesize) | ||
self:zoom(bigTextSize) | ||
self:diffuse(getMainColor("PrimaryText")) | ||
self:diffusealpha(0) | ||
self:valign(0) | ||
end, | ||
BeginCommand = function(self) | ||
mods = GAMESTATE:GetPlayerState():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) | ||
self:diffusealpha(1) | ||
self:sleep(1) | ||
self:smooth(2.7) | ||
self:diffusealpha(0) | ||
end | ||
} | ||
} | ||
return t |
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