From 2c0eb450ab57f042b54f51c3bbc7edadd093c8d6 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Tue, 10 Dec 2013 01:48:30 +0800 Subject: [PATCH] New wip system to safely save away elements from a screen for reuse on another screen. Song length now updates with rate mod. --- .../ScreenPlayerOptions overlay/default.xml | 18 ++++-------------- Themes/GrooveNights/Scripts/Globals.lua | 10 ++++++++++ Themes/GrooveNights/Scripts/Other.lua | 14 ++++++++++++++ Themes/GrooveNights/metrics.ini | 2 +- 4 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 Themes/GrooveNights/Scripts/Globals.lua diff --git a/Themes/GrooveNights/BGAnimations/ScreenPlayerOptions overlay/default.xml b/Themes/GrooveNights/BGAnimations/ScreenPlayerOptions overlay/default.xml index 9bdd1fd..35a6ada 100644 --- a/Themes/GrooveNights/BGAnimations/ScreenPlayerOptions overlay/default.xml +++ b/Themes/GrooveNights/BGAnimations/ScreenPlayerOptions overlay/default.xml @@ -568,13 +568,8 @@ Text="" Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)" File="_eurostile blue glow" - InitCommand="%function(self) self:horizalign('left'); self:shadowlength(0); self:zoom(0.5); self:x(SCREEN_CENTER_X-200); self:y(SCREEN_CENTER_Y+166); self:queuecommand('loop'); end" - loopCommand="%function(self) - self:stoptweening(); - if curRate ~= 1 then self:settext(gnSongLength..' (x'..curRate..' Music Rate)'); else self:settext(gnSongLength); end - self:sleep(0.03); - self:queuecommand('loop'); - end" + InitCommand="%function(self) self:horizalign('left'); self:shadowlength(0); self:zoom(0.5); self:x(SCREEN_CENTER_X-200); self:y(SCREEN_CENTER_Y+166); end" + RateModChangedMessageCommand="%function(self) self:settext(DisplaySongLength()) end" />