Files
itgmania212121/Themes/themekit/BGAnimations/ScreenWithMenuElements decorations.lua
T
2011-04-07 17:34:00 -07:00

27 lines
920 B
Lua

-- Loads up a slew of objects to load into the screen, like how 3.9 does.
-- I prefer to keep these optional, incase another screen wants to hide
-- these elements.
local t = Def.ActorFrame {};
-- Image displayed on the top of the screen
t[#t+1] = StandardDecorationFromFileOptional("Header","Header");
-- Text displayed at the top of the screen
t[#t+1] = StandardDecorationFromFileOptional("TextHeader","TextHeader") .. {
BeginCommand=cmd(playcommand,"Set");
SetCommand=function(self)
local sText = '_';
if SCREENMAN:GetTopScreen() then
if SCREENMAN:GetTopScreen():GetName() ~= nil then
sText = THEME:GetString(SCREENMAN:GetTopScreen():GetName(), "HeaderText");
else
sText = 'No Screen Name';
end
else
sText = 'No Top Screen';
end
--
self:settext(sText);
end;
};
-- Image displayed on the bottom of the screen
t[#t+1] = StandardDecorationFromFileOptional("Footer","Footer");
return t