lots of theme tweaks from midiman
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
return Def.SongBPMDisplay {
|
||||
File=THEME:GetPathF("BPMDisplay", "bpm");
|
||||
Name="BPMDisplay";
|
||||
InitCommand=cmd(zoom,0.75);
|
||||
InitCommand=cmd(zoom,0.675;shadowlength,1);
|
||||
SetCommand=function(self) self:SetFromGameState() end;
|
||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
||||
|
||||
@@ -19,13 +19,23 @@ for idx,diff in pairs(Difficulty) do
|
||||
-- local Bar = self:GetChild("Bar");
|
||||
-- local Meter = self:GetChild("Meter"
|
||||
local song = GAMESTATE:GetCurrentSong()
|
||||
local st = GAMESTATE:GetCurrentStyle():GetStepsType()
|
||||
local steps = song:GetOneSteps( st, diff );
|
||||
-- local meter = steps:GetMeter();
|
||||
local bHasStepsTypeAndDifficulty =
|
||||
song and song:HasStepsTypeAndDifficulty( st, diff );
|
||||
-- c.Meter:settext( meter );
|
||||
|
||||
local bHasStepsTypeAndDifficulty = false;
|
||||
local meter = "";
|
||||
if song then
|
||||
local st = GAMESTATE:GetCurrentStyle():GetStepsType()
|
||||
bHasStepsTypeAndDifficulty = song:HasStepsTypeAndDifficulty( st, diff );
|
||||
local steps = song:GetOneSteps( st, diff );
|
||||
if steps then
|
||||
meter = steps:GetMeter();
|
||||
if meter >= 50 then
|
||||
meter = "!";
|
||||
end;
|
||||
if diff == 'Difficulty_Edit' then
|
||||
meter = meter .. " Edit";
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
c.Meter:settext( meter );
|
||||
self:playcommand( bHasStepsTypeAndDifficulty and "Show" or "Hide" );
|
||||
end;
|
||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||
@@ -41,7 +51,7 @@ for idx,diff in pairs(Difficulty) do
|
||||
Text=(sDifficulty == "Edit") and "0 Edits" or "0";
|
||||
ShowCommand=cmd(stoptweening;linear,0.1;diffuse,CustomDifficultyToColor( sDifficulty ));
|
||||
HideCommand=cmd(stoptweening;decelerate,0.2;diffuse,CustomDifficultyToDarkColor( sDifficulty ));
|
||||
InitCommand=cmd(x,-64-8+tLocation[sDifficulty];zoom,0.5;diffuse,CustomDifficultyToColor( sDifficulty ));
|
||||
InitCommand=cmd(x,-64-8+tLocation[sDifficulty];shadowlength,1;zoom,0.5;diffuse,CustomDifficultyToColor( sDifficulty ));
|
||||
};
|
||||
};
|
||||
end
|
||||
|
||||
@@ -23,7 +23,7 @@ t[#t+1] = Def.ActorFrame {
|
||||
InitCommand=cmd(x,-192;zoom,0.9);
|
||||
LoadActor( gc:GetName() ) .. {
|
||||
InitCommand=cmd(diffusealpha,0;zoom,0.75);
|
||||
GainFocusCommand=cmd(stoptweening;smooth,0.125;diffusealpha,1;zoom,1;glow,Color("White");decelerate,0.25;glow,Color("Invisible");pulse;effecttiming,0,0.125,0.125,0.75;effectmagnitude,0.95,1,1;);
|
||||
GainFocusCommand=cmd(stoptweening;stopeffect;smooth,0.125;diffusealpha,1;zoom,1;glow,Color("White");decelerate,0.25;glow,Color("Invisible");pulse;effecttiming,0.75,0.125,0.125,0.75;effectmagnitude,0.95,1,1;);
|
||||
LoseFocusCommand=cmd(stoptweening;stopeffect;smooth,0.25;diffusealpha,0;zoom,0.75;glow,Color("Invisible"));
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user