diff --git a/Themes/themekit/BGAnimations/ScreenWithMenuElements decorations.lua b/Themes/themekit/BGAnimations/ScreenWithMenuElements decorations.lua index d3a0d5252a..0a6c72ce04 100644 --- a/Themes/themekit/BGAnimations/ScreenWithMenuElements decorations.lua +++ b/Themes/themekit/BGAnimations/ScreenWithMenuElements decorations.lua @@ -2,6 +2,26 @@ -- 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 \ No newline at end of file diff --git a/Themes/themekit/Fonts/ScreenWithMenuElements TextHeader.redir b/Themes/themekit/Fonts/ScreenWithMenuElements TextHeader.redir new file mode 100644 index 0000000000..a290ae3b16 --- /dev/null +++ b/Themes/themekit/Fonts/ScreenWithMenuElements TextHeader.redir @@ -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! \ No newline at end of file diff --git a/Themes/themekit/Graphics/ScreenWithMenuElements TextHeader.lua b/Themes/themekit/Graphics/ScreenWithMenuElements TextHeader.lua new file mode 100644 index 0000000000..5724a0826b --- /dev/null +++ b/Themes/themekit/Graphics/ScreenWithMenuElements TextHeader.lua @@ -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"); \ No newline at end of file diff --git a/Themes/themekit/metrics.ini b/Themes/themekit/metrics.ini index 12f3920d82..71ad351513 100644 --- a/Themes/themekit/metrics.ini +++ b/Themes/themekit/metrics.ini @@ -1,25 +1,40 @@ [Global] 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] +# Header ( Top of Screen ) ShowHeader=true HeaderX=SCREEN_CENTER_X HeaderY=SCREEN_TOP HeaderOnCommand=vertalign,top 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 FooterX=SCREEN_CENTER_X FooterY=SCREEN_BOTTOM FooterOnCommand=vertalign,bottom FooterOffCommand= -# -TimerX=SCREEN_WIDTH-64 -TimerY=SCREEN_TOP+48-4.5 +# Menu Timer +TimerX=SCREEN_CENTER_X+256+32 +TimerY=SCREEN_TOP+32+8-1.5 TimerOnCommand= TimerOffCommand= [MenuTimer] # Text -Text1OnCommand=stopeffect;stoptweening;vertalign,bottom;horizalign,right +Text1OnCommand=stopeffect;stoptweening;horizalign,right;vertalign,bottom; Text1FormatFunction=function(fSeconds) \ return string.format("%0.1f", fSeconds); \ end