lots of theme tweaks from midiman
This commit is contained in:
@@ -2,6 +2,27 @@
|
|||||||
-- This is the sm-ssc version. You should not be using this in themes for
|
-- This is the sm-ssc version. You should not be using this in themes for
|
||||||
-- SM4 right now... We'll post an updated version soon.
|
-- SM4 right now... We'll post an updated version soon.
|
||||||
|
|
||||||
|
--[[ Globals ]]
|
||||||
|
function IsArcade()
|
||||||
|
local sPayMode = GAMESTATE:GetCoinMode();
|
||||||
|
local bIsArcade = (sPayMode ~= 'CoinMode_Home');
|
||||||
|
return bIsArcade;
|
||||||
|
end
|
||||||
|
|
||||||
|
function IsHome()
|
||||||
|
local sPayMode = GAMESTATE:GetCoinMode();
|
||||||
|
local bIsArcade = (sPayMode == 'CoinMode_Home');
|
||||||
|
return bIsArcade;
|
||||||
|
end
|
||||||
|
|
||||||
|
function IsFreePlay()
|
||||||
|
if IsArcade() then
|
||||||
|
return (GAMESTATE:GetCoinMode() == 'CoinMode_Free');
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--[[ Aliases ]]
|
--[[ Aliases ]]
|
||||||
|
|
||||||
-- Blend Modes
|
-- Blend Modes
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ function LoadPlayerStuff(Player)
|
|||||||
};
|
};
|
||||||
Def.Quad {
|
Def.Quad {
|
||||||
InitCommand=cmd(zoomto,200-10,40);
|
InitCommand=cmd(zoomto,200-10,40);
|
||||||
OnCommand=cmd(diffuse,PlayerColor(Player);glow,color("1,1,1,0.25"));
|
OnCommand=cmd(diffuse,PlayerColor(Player);fadeleft,0.25;faderight,0.25;glow,color("1,1,1,0.25"));
|
||||||
};
|
};
|
||||||
Def.Quad {
|
Def.Quad {
|
||||||
InitCommand=cmd(zoomto,200-10,40;y,-40/2+20);
|
InitCommand=cmd(zoomto,200-10,40;y,-40/2+20);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ t[#t+1] = Def.ActorFrame {
|
|||||||
OnCommand=cmd(stoptweening;zoom,1.25;decelerate,3;zoom,1);
|
OnCommand=cmd(stoptweening;zoom,1.25;decelerate,3;zoom,1);
|
||||||
|
|
||||||
LoadActor( THEME:GetPathG("ScreenStageInformation", "Stage " .. ToEnumShortString(GAMESTATE:GetCurrentStage()) ) ) .. {
|
LoadActor( THEME:GetPathG("ScreenStageInformation", "Stage " .. ToEnumShortString(GAMESTATE:GetCurrentStage()) ) ) .. {
|
||||||
OnCommand=cmd(diffusealpha,0;linear,0.5;diffusealpha,1);
|
OnCommand=cmd(diffusealpha,0;linear,0.25;diffusealpha,1;sleep,1.75;linear,0.5;zoomy,0;zoomx,2;diffusealpha,0);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
return Def.SongBPMDisplay {
|
return Def.SongBPMDisplay {
|
||||||
File=THEME:GetPathF("BPMDisplay", "bpm");
|
File=THEME:GetPathF("BPMDisplay", "bpm");
|
||||||
Name="BPMDisplay";
|
Name="BPMDisplay";
|
||||||
InitCommand=cmd(zoom,0.75);
|
InitCommand=cmd(zoom,0.675;shadowlength,1);
|
||||||
SetCommand=function(self) self:SetFromGameState() end;
|
SetCommand=function(self) self:SetFromGameState() end;
|
||||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
|
|||||||
@@ -19,13 +19,23 @@ for idx,diff in pairs(Difficulty) do
|
|||||||
-- local Bar = self:GetChild("Bar");
|
-- local Bar = self:GetChild("Bar");
|
||||||
-- local Meter = self:GetChild("Meter"
|
-- local Meter = self:GetChild("Meter"
|
||||||
local song = GAMESTATE:GetCurrentSong()
|
local song = GAMESTATE:GetCurrentSong()
|
||||||
|
local bHasStepsTypeAndDifficulty = false;
|
||||||
|
local meter = "";
|
||||||
|
if song then
|
||||||
local st = GAMESTATE:GetCurrentStyle():GetStepsType()
|
local st = GAMESTATE:GetCurrentStyle():GetStepsType()
|
||||||
|
bHasStepsTypeAndDifficulty = song:HasStepsTypeAndDifficulty( st, diff );
|
||||||
local steps = song:GetOneSteps( st, diff );
|
local steps = song:GetOneSteps( st, diff );
|
||||||
-- local meter = steps:GetMeter();
|
if steps then
|
||||||
local bHasStepsTypeAndDifficulty =
|
meter = steps:GetMeter();
|
||||||
song and song:HasStepsTypeAndDifficulty( st, diff );
|
if meter >= 50 then
|
||||||
-- c.Meter:settext( meter );
|
meter = "!";
|
||||||
|
end;
|
||||||
|
if diff == 'Difficulty_Edit' then
|
||||||
|
meter = meter .. " Edit";
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
c.Meter:settext( meter );
|
||||||
self:playcommand( bHasStepsTypeAndDifficulty and "Show" or "Hide" );
|
self:playcommand( bHasStepsTypeAndDifficulty and "Show" or "Hide" );
|
||||||
end;
|
end;
|
||||||
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
@@ -41,7 +51,7 @@ for idx,diff in pairs(Difficulty) do
|
|||||||
Text=(sDifficulty == "Edit") and "0 Edits" or "0";
|
Text=(sDifficulty == "Edit") and "0 Edits" or "0";
|
||||||
ShowCommand=cmd(stoptweening;linear,0.1;diffuse,CustomDifficultyToColor( sDifficulty ));
|
ShowCommand=cmd(stoptweening;linear,0.1;diffuse,CustomDifficultyToColor( sDifficulty ));
|
||||||
HideCommand=cmd(stoptweening;decelerate,0.2;diffuse,CustomDifficultyToDarkColor( 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
|
end
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ t[#t+1] = Def.ActorFrame {
|
|||||||
InitCommand=cmd(x,-192;zoom,0.9);
|
InitCommand=cmd(x,-192;zoom,0.9);
|
||||||
LoadActor( gc:GetName() ) .. {
|
LoadActor( gc:GetName() ) .. {
|
||||||
InitCommand=cmd(diffusealpha,0;zoom,0.75);
|
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"));
|
LoseFocusCommand=cmd(stoptweening;stopeffect;smooth,0.25;diffusealpha,0;zoom,0.75;glow,Color("Invisible"));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -579,10 +579,15 @@ StepsTypeSetCommand=
|
|||||||
; a simple bar life meter:
|
; a simple bar life meter:
|
||||||
; PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) local native_width=32; local zoomed_width=12; self:zoomx(zoomed_width/native_width); self:x((itemIndex-(numItems/2))*zoomed_width); end
|
; PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) local native_width=32; local zoomed_width=12; self:zoomx(zoomed_width/native_width); self:x((itemIndex-(numItems/2))*zoomed_width); end
|
||||||
PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
|
PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
|
||||||
self:zoomtowidth(256); \
|
local fItemWidth = ( 256 / numItems ) \
|
||||||
end
|
self:x( ((itemIndex-(numItems/2))*fItemWidth) + 8 ); \
|
||||||
TextureCoordScaleX=1
|
self:zoomtowidth(fItemWidth); \
|
||||||
NumPills=1
|
self:diffuseramp(); \
|
||||||
|
self:effecttiming(3,0.01875*itemIndex,0,1-(0.01875*itemIndex)); \
|
||||||
|
self:effectclock('beatnooffset'); \
|
||||||
|
end;
|
||||||
|
TextureCoordScaleX=1*16
|
||||||
|
NumPills=16
|
||||||
AlwaysBounceNormalBar=false
|
AlwaysBounceNormalBar=false
|
||||||
|
|
||||||
[TextBanner]
|
[TextBanner]
|
||||||
@@ -613,14 +618,14 @@ FooterOffCommand=
|
|||||||
|
|
||||||
ShowHelp=true
|
ShowHelp=true
|
||||||
HelpX=SCREEN_CENTER_X
|
HelpX=SCREEN_CENTER_X
|
||||||
HelpY=SCREEN_BOTTOM-16
|
HelpY=IsArcade() and SCREEN_BOTTOM-16
|
||||||
HelpOnCommand=SetSecsBetweenSwitches,4;shadowlength,0;strokecolor,Color("Outline");draworder,105;zoomy,0;linear,0.175;zoom,1*0.75;diffuseshift;effectcolor1,color("0.5,0.5,0.5,1");
|
HelpOnCommand=SetSecsBetweenSwitches,4;shadowlength,0;strokecolor,Color("Outline");draworder,105;zoomy,0;linear,0.175;zoom,1*0.75;maxwidth,(SCREEN_WIDTH-64)/0.75;diffuseshift;effectcolor1,color("0.5,0.5,0.5,1");
|
||||||
HelpOffCommand=linear,0.175;zoomy,0
|
HelpOffCommand=linear,0.175;zoomy,0
|
||||||
|
|
||||||
AlternateHelpDisplayX=SCREEN_CENTER_X
|
AlternateHelpDisplayX=SCREEN_CENTER_X
|
||||||
AlternateHelpDisplayY=SCREEN_BOTTOM-16
|
AlternateHelpDisplayY=SCREEN_BOTTOM-16
|
||||||
# AlternateHelpDisplayOnCommand=draworder,105;
|
# AlternateHelpDisplayOnCommand=draworder,105;
|
||||||
AlternateHelpDisplayOnCommand=SetSecsBetweenSwitches,4;shadowlength,0;strokecolor,Color("Outline");draworder,105;zoomy,0;linear,0.175;zoom,1*0.75;diffuseshift;effectcolor1,color("0.5,0.5,0.5,1");;diffusealpha,0
|
AlternateHelpDisplayOnCommand=SetSecsBetweenSwitches,4;shadowlength,0;strokecolor,Color("Outline");draworder,105;zoomy,0;linear,0.175;zoom,1*0.75;maxwidth,(SCREEN_WIDTH-64)/0.75;diffuseshift;effectcolor1,color("0.5,0.5,0.5,1");;diffusealpha,0
|
||||||
AlternateHelpDisplayOffCommand=linear,0.175;zoomy,0
|
AlternateHelpDisplayOffCommand=linear,0.175;zoomy,0
|
||||||
|
|
||||||
TimerX=SCREEN_RIGHT-36-4
|
TimerX=SCREEN_RIGHT-36-4
|
||||||
@@ -1176,7 +1181,8 @@ Line17="list,Characters"
|
|||||||
ForceTimer=true
|
ForceTimer=true
|
||||||
TimerOnCommand=visible,false
|
TimerOnCommand=visible,false
|
||||||
TimerSeconds=3
|
TimerSeconds=3
|
||||||
|
#
|
||||||
|
WaitForChildrenBeforeTweening=true
|
||||||
[ScreenGameplay]
|
[ScreenGameplay]
|
||||||
ShowLifeMeterForDisabledPlayers=false
|
ShowLifeMeterForDisabledPlayers=false
|
||||||
#
|
#
|
||||||
@@ -1193,7 +1199,7 @@ SongMeterDisplayP2OffCommand=
|
|||||||
ShowBPMDisplay=true
|
ShowBPMDisplay=true
|
||||||
BPMDisplayX=(PREFSMAN:GetPreference("Center1Player") and GAMESTATE:GetNumPlayersEnabled() == 1) and (GAMESTATE:GetMasterPlayerNumber() == PLAYER_1 and THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX") or THEME:GetMetric(Var "LoadingScreen","PlayerP2OnePlayerOneSideX")) or SCREEN_CENTER_X
|
BPMDisplayX=(PREFSMAN:GetPreference("Center1Player") and GAMESTATE:GetNumPlayersEnabled() == 1) and (GAMESTATE:GetMasterPlayerNumber() == PLAYER_1 and THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX") or THEME:GetMetric(Var "LoadingScreen","PlayerP2OnePlayerOneSideX")) or SCREEN_CENTER_X
|
||||||
BPMDisplayY=SCREEN_BOTTOM-16
|
BPMDisplayY=SCREEN_BOTTOM-16
|
||||||
BPMDisplayOnCommand=zoom,0.5;
|
# BPMDisplayOnCommand=zoom,0.5;
|
||||||
BPMDisplayOffCommand=bounceend,0.25;zoom,0
|
BPMDisplayOffCommand=bounceend,0.25;zoom,0
|
||||||
#
|
#
|
||||||
ShowStageDisplay=false
|
ShowStageDisplay=false
|
||||||
|
|||||||
Reference in New Issue
Block a user