From 03b894841b8737853f76c1bf2ccebb4d2cb338f1 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 25 Mar 2009 05:57:00 +0000 Subject: [PATCH] make long/marathon balloon animate --- .../ScreenSelectMusic decorations/default.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/stepmania/Themes/default/BGAnimations/ScreenSelectMusic decorations/default.lua b/stepmania/Themes/default/BGAnimations/ScreenSelectMusic decorations/default.lua index a0ff095d7f..9ad9cab4b0 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenSelectMusic decorations/default.lua +++ b/stepmania/Themes/default/BGAnimations/ScreenSelectMusic decorations/default.lua @@ -315,7 +315,7 @@ end t[#t+1] = Def.ActorFrame{ - InitCommand=cmd(x,SCREEN_CENTER_X-190;y,SCREEN_CENTER_Y-32); + InitCommand=cmd(x,SCREEN_CENTER_X-190;y,SCREEN_CENTER_Y-32;diffusealpha,0); ShowCommand=cmd(stoptweening;linear,0.2;diffusealpha,1); HideCommand=cmd(stoptweening;linear,0.2;diffusealpha,0); @@ -337,14 +337,19 @@ t[#t+1] = Def.ActorFrame{ }; LoadFont("_venacti bold 24px")..{ Name="NumStages"; - InitCommand=cmd(x,32;y,-4;shadowlength,0;skewx,-0.2;diffusebottomedge,color("#068EE1FF");strokecolor,color("#FF000000")); + InitCommand=cmd(x,30;y,-6;shadowlengthx,0;shadowlengthy,1;skewx,0;zoom,0.7;diffusebottomedge,color("#068EE1FF");strokecolor,color("#FF000000")); SetCommand=function(self) local Song = GAMESTATE:GetCurrentSong(); if Song then + -- xxx: use localized text local postfix = " STAGES"; + local numStages = GAMESTATE:GetNumStagesForCurrentSongAndStepsOrCourse(); + --[[ if Song:IsLong() then self:settext("2"..postfix); elseif Song:IsMarathon() then self:settext("3"..postfix); end; + ]] + self:settext( numStages..postfix ); else self:settext( "" ); end @@ -353,7 +358,7 @@ t[#t+1] = Def.ActorFrame{ SetCommand=function(self) local Song = GAMESTATE:GetCurrentSong(); - self:playcommand( (Song and (Song:IsLong() or Song:IsMarathon())) and "Show" or "Hide" ); + self:playcommandonchildren( (Song and (Song:IsLong() or Song:IsMarathon())) and "Show" or "Hide" ); end; CurrentSongChangedMessageCommand=cmd(playcommand,"Set"); };