easier than I thought.
This commit is contained in:
@@ -2,6 +2,26 @@
|
|||||||
-- I prefer to keep these optional, incase another screen wants to hide
|
-- I prefer to keep these optional, incase another screen wants to hide
|
||||||
-- these elements.
|
-- these elements.
|
||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
-- Image displayed on the top of the screen
|
||||||
t[#t+1] = StandardDecorationFromFileOptional("Header","Header");
|
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");
|
t[#t+1] = StandardDecorationFromFileOptional("Footer","Footer");
|
||||||
return t
|
return t
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Common Normal
|
||||||
|
-- Fun Fact, Redirs only read the 1st line in any of the files, so you can
|
||||||
|
-- comment them as much as you want!
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
-- This actually returns an object for stepmania to use instead of a regular image or movie! Pretty sneaky stuff.
|
||||||
|
return LoadFont("ScreenWithMenuElements","TextHeader");
|
||||||
@@ -1,25 +1,40 @@
|
|||||||
[Global]
|
[Global]
|
||||||
FallbackTheme=_fallback
|
FallbackTheme=_fallback
|
||||||
|
[ScreenSystemLayer]
|
||||||
|
CreditsP1X=SCREEN_CENTER_X-256-32
|
||||||
|
CreditsP1Y=SCREEN_BOTTOM-4
|
||||||
|
CreditsP1OnCommand=horizalign,left;vertalign,bottom;zoom,0.675;shadowlength,1;diffusebottomedge,PlayerColor(PLAYER_1);
|
||||||
|
#
|
||||||
|
CreditsP2X=SCREEN_CENTER_X+256+32
|
||||||
|
CreditsP2Y=SCREEN_BOTTOM-4
|
||||||
|
CreditsP2OnCommand=horizalign,right;vertalign,bottom;zoom,0.675;shadowlength,1;diffusebottomedge,PlayerColor(PLAYER_2);
|
||||||
[ScreenWithMenuElements]
|
[ScreenWithMenuElements]
|
||||||
|
# Header ( Top of Screen )
|
||||||
ShowHeader=true
|
ShowHeader=true
|
||||||
HeaderX=SCREEN_CENTER_X
|
HeaderX=SCREEN_CENTER_X
|
||||||
HeaderY=SCREEN_TOP
|
HeaderY=SCREEN_TOP
|
||||||
HeaderOnCommand=vertalign,top
|
HeaderOnCommand=vertalign,top
|
||||||
HeaderOffCommand=
|
HeaderOffCommand=
|
||||||
#
|
# Text Header ( Text displayed at top of screen on top of header )
|
||||||
|
ShowTextHeader=true
|
||||||
|
TextHeaderX=SCREEN_CENTER_X-256-32
|
||||||
|
TextHeaderY=SCREEN_TOP+32+8-1.5
|
||||||
|
TextHeaderOnCommand=horizalign,left;vertalign,bottom;
|
||||||
|
TextHeaderOffCommand=
|
||||||
|
# Footer ( Bottom Of Screen )
|
||||||
ShowFooter=true
|
ShowFooter=true
|
||||||
FooterX=SCREEN_CENTER_X
|
FooterX=SCREEN_CENTER_X
|
||||||
FooterY=SCREEN_BOTTOM
|
FooterY=SCREEN_BOTTOM
|
||||||
FooterOnCommand=vertalign,bottom
|
FooterOnCommand=vertalign,bottom
|
||||||
FooterOffCommand=
|
FooterOffCommand=
|
||||||
#
|
# Menu Timer
|
||||||
TimerX=SCREEN_WIDTH-64
|
TimerX=SCREEN_CENTER_X+256+32
|
||||||
TimerY=SCREEN_TOP+48-4.5
|
TimerY=SCREEN_TOP+32+8-1.5
|
||||||
TimerOnCommand=
|
TimerOnCommand=
|
||||||
TimerOffCommand=
|
TimerOffCommand=
|
||||||
[MenuTimer]
|
[MenuTimer]
|
||||||
# Text
|
# Text
|
||||||
Text1OnCommand=stopeffect;stoptweening;vertalign,bottom;horizalign,right
|
Text1OnCommand=stopeffect;stoptweening;horizalign,right;vertalign,bottom;
|
||||||
Text1FormatFunction=function(fSeconds) \
|
Text1FormatFunction=function(fSeconds) \
|
||||||
return string.format("%0.1f", fSeconds); \
|
return string.format("%0.1f", fSeconds); \
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user