Theme changes
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
Common Normal
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Common Normal
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
local t = Def.ActorFrame {};
|
||||||
|
local function UpdateTime(self)
|
||||||
|
local c = self:GetChildren();
|
||||||
|
for pn in ivalues(PlayerNumber) do
|
||||||
|
local vStats = STATSMAN:GetCurStageStats():GetPlayerStageStats( pn );
|
||||||
|
local vTime;
|
||||||
|
local obj = self:GetChild( string.format("RemainingTime" .. PlayerNumberToString(pn) ) );
|
||||||
|
if vStats then
|
||||||
|
vTime = vStats:GetLifeRemainingSeconds()
|
||||||
|
obj:settext( SecondsToMMSSMsMs( vTime ) );
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
if GAMESTATE:GetCurrentCourse() then
|
||||||
|
if GAMESTATE:GetCurrentCourse():GetCourseType() == "CourseType_Survival" then
|
||||||
|
-- RemainingTime
|
||||||
|
for pn in ivalues(PlayerNumber) do
|
||||||
|
local MetricsName = "RemainingTime" .. PlayerNumberToString(pn);
|
||||||
|
t[#t+1] = LoadActor( THEME:GetPathG( Var "LoadingScreen", "RemainingTime"), pn ) .. {
|
||||||
|
InitCommand=function(self)
|
||||||
|
self:player(pn);
|
||||||
|
self:name(MetricsName);
|
||||||
|
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen");
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
end
|
||||||
|
for pn in ivalues(PlayerNumber) do
|
||||||
|
local MetricsName = "DeltaSeconds" .. PlayerNumberToString(pn);
|
||||||
|
t[#t+1] = LoadActor( THEME:GetPathG( Var "LoadingScreen", "DeltaSeconds"), pn ) .. {
|
||||||
|
InitCommand=function(self)
|
||||||
|
self:player(pn);
|
||||||
|
self:name(MetricsName);
|
||||||
|
ActorUtil.LoadAllCommandsAndSetXY(self,Var "LoadingScreen");
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
end
|
||||||
|
end;
|
||||||
|
end; --]]
|
||||||
|
t.InitCommand=cmd(SetUpdateFunction,UpdateTime);
|
||||||
|
return t
|
||||||
@@ -103,8 +103,8 @@ t[#t+1] = Def.ActorFrame {
|
|||||||
Def.Quad {
|
Def.Quad {
|
||||||
Name="ProtimingGraphAverage";
|
Name="ProtimingGraphAverage";
|
||||||
InitCommand=cmd(visible,false;y,32;zoomto,2,7;);
|
InitCommand=cmd(visible,false;y,32;zoomto,2,7;);
|
||||||
ResetCommand=cmd(finishtweening;diffusealpha,0.5;visible,false);
|
ResetCommand=cmd(finishtweening;diffusealpha,0.85;visible,false);
|
||||||
OnCommand=cmd(diffuse,Color("Blue");diffusealpha,0.5;glowshift);
|
OnCommand=cmd(diffuse,Color("Orange");diffusealpha,0.85);
|
||||||
};
|
};
|
||||||
Def.Quad {
|
Def.Quad {
|
||||||
Name="ProtimingGraphCenter";
|
Name="ProtimingGraphCenter";
|
||||||
@@ -147,8 +147,10 @@ t[#t+1] = Def.ActorFrame {
|
|||||||
bUseNegative = false;
|
bUseNegative = false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if fTapNoteOffset ~= 1 then
|
||||||
-- we're safe, you can push the values
|
-- we're safe, you can push the values
|
||||||
tTotalJudgments[#tTotalJudgments+1] = bUseNegative and fTapNoteOffset or math.abs( fTapNoteOffset );
|
tTotalJudgments[#tTotalJudgments+1] = bUseNegative and fTapNoteOffset or math.abs( fTapNoteOffset );
|
||||||
|
end
|
||||||
|
|
||||||
self:playcommand("Reset");
|
self:playcommand("Reset");
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
local PlayerNumber = ...;
|
||||||
|
assert( PlayerNumber );
|
||||||
|
|
||||||
|
local t = LoadFont("ScreenGameplay","RemainingTime") .. {
|
||||||
|
Name="RemainingTime";
|
||||||
|
Text="";
|
||||||
|
JudgmentMessageCommand=function(self,params)
|
||||||
|
if params.Player == PlayerNumber then
|
||||||
|
if params.TapNoteScore then
|
||||||
|
self:playcommand( "GainSeconds" );
|
||||||
|
self:playcommand( ToEnumShortString( params.TapNoteScore ) );
|
||||||
|
self:settextf( "%+1.1fs", PREFSMAN:GetPreference( string.format("TimeMeterSecondsChange%s", ToEnumShortString( params.TapNoteScore ) ) ) );
|
||||||
|
else
|
||||||
|
return
|
||||||
|
end
|
||||||
|
else
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
return t
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
local PlayerNumber = ...;
|
||||||
|
assert( PlayerNumber );
|
||||||
|
|
||||||
|
local t = LoadFont("ScreenGameplay","RemainingTime") .. {
|
||||||
|
Name="SurvivalTime";
|
||||||
|
Text="";
|
||||||
|
};
|
||||||
|
|
||||||
|
return t
|
||||||
+27
-12
@@ -343,20 +343,15 @@ TextOffCommand=
|
|||||||
[ScoreDisplayLifeTime]
|
[ScoreDisplayLifeTime]
|
||||||
FrameX=
|
FrameX=
|
||||||
FrameY=
|
FrameY=
|
||||||
FrameOnCommand=
|
FrameOnCommand=visible,false;spin
|
||||||
FrameOffCommand=
|
FrameOffCommand=
|
||||||
#
|
#
|
||||||
TextX=
|
|
||||||
TextY=
|
|
||||||
TextOnCommand=shadowlength,1;diffusebottomedge,BoostColor(Color('White'),0.75)
|
|
||||||
TextOffCommand=
|
|
||||||
#
|
|
||||||
TimeRemainingX=
|
TimeRemainingX=
|
||||||
TimeRemainingY=
|
TimeRemainingY=80
|
||||||
TimeRemainingOnCommand=zoom,1;shadowlength,1
|
TimeRemainingOnCommand=zoom,1;shadowlength,1;settext,"Hi!";
|
||||||
TimeRemainingOffCommand=
|
TimeRemainingOffCommand=
|
||||||
#
|
#
|
||||||
DeltaSecondsOnCommand=y,-40;zoom,0.5;settext,"";
|
DeltaSecondsOnCommand=y,80;settext,Hi;spin;
|
||||||
DeltaSecondsNoneCommand=
|
DeltaSecondsNoneCommand=
|
||||||
DeltaSecondsHitMineCommand=
|
DeltaSecondsHitMineCommand=
|
||||||
DeltaSecondsAvoidMineCommand=
|
DeltaSecondsAvoidMineCommand=
|
||||||
@@ -370,7 +365,7 @@ DeltaSecondsW2Command=
|
|||||||
DeltaSecondsW1Command=
|
DeltaSecondsW1Command=
|
||||||
DeltaSecondsLetGoCommand=
|
DeltaSecondsLetGoCommand=
|
||||||
DeltaSecondsHeldCommand=
|
DeltaSecondsHeldCommand=
|
||||||
DeltaSecondsGainLifeCommand=
|
DeltaSecondsGainLifeCommand=zoom,0.5;settext,"Hi!";
|
||||||
[ScoreDisplayPercentage Percent]
|
[ScoreDisplayPercentage Percent]
|
||||||
PercentP1OnCommand=shadowlength,1;diffuse,PlayerColor(PLAYER_1);diffusetopedge,BoostColor(PlayerColor(PLAYER_1),1.5)
|
PercentP1OnCommand=shadowlength,1;diffuse,PlayerColor(PLAYER_1);diffusetopedge,BoostColor(PlayerColor(PLAYER_1),1.5)
|
||||||
PercentP2OnCommand=shadowlength,1;diffuse,PlayerColor(PLAYER_2);diffusetopedge,BoostColor(PlayerColor(PLAYER_2),1.5)
|
PercentP2OnCommand=shadowlength,1;diffuse,PlayerColor(PLAYER_2);diffusetopedge,BoostColor(PlayerColor(PLAYER_2),1.5)
|
||||||
@@ -1435,15 +1430,35 @@ ToastyDisplayP2Y=SCREEN_CENTER_Y
|
|||||||
ToastyDisplayP2OnCommand=visible,false
|
ToastyDisplayP2OnCommand=visible,false
|
||||||
ToastyDisplayP2OffCommand=
|
ToastyDisplayP2OffCommand=
|
||||||
#
|
#
|
||||||
SongNumberP1X=THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX") - 60
|
SongNumberP1X=Center1Player() and SCREEN_CENTER_X - 60 or THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX") - 60
|
||||||
SongNumberP1Y=SCREEN_TOP+24+7
|
SongNumberP1Y=SCREEN_TOP+24+7
|
||||||
SongNumberP1OnCommand=zoom,0.75;diffuse,PlayerColor(PLAYER_1);strokecolor,BoostColor(PlayerColor(PLAYER_1),0.5)
|
SongNumberP1OnCommand=zoom,0.75;diffuse,PlayerColor(PLAYER_1);strokecolor,BoostColor(PlayerColor(PLAYER_1),0.5)
|
||||||
SongNumberP1OffCommand=
|
SongNumberP1OffCommand=
|
||||||
SongNumberP2X=THEME:GetMetric(Var "LoadingScreen","PlayerP2OnePlayerOneSideX") + 60
|
SongNumberP2X=Center1Player() and SCREEN_CENTER_X + 60 or THEME:GetMetric(Var "LoadingScreen","PlayerP2OnePlayerOneSideX") + 60
|
||||||
SongNumberP2Y=SCREEN_TOP+24+7
|
SongNumberP2Y=SCREEN_TOP+24+7
|
||||||
SongNumberP2OnCommand=zoom,0.75;diffuse,PlayerColor(PLAYER_2);strokecolor,BoostColor(PlayerColor(PLAYER_2),0.5)
|
SongNumberP2OnCommand=zoom,0.75;diffuse,PlayerColor(PLAYER_2);strokecolor,BoostColor(PlayerColor(PLAYER_2),0.5)
|
||||||
SongNumberP2OffCommand=
|
SongNumberP2OffCommand=
|
||||||
#
|
#
|
||||||
|
RemainingTimeP1X=THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX") + 32
|
||||||
|
RemainingTimeP1Y=THEME:GetMetric(Var "LoadingScreen","ScoreP1Y") - 22
|
||||||
|
RemainingTimeP1OnCommand=shadowlength,1;diffuse,PlayerColor(PLAYER_1);diffusebottomedge,ColorMidTone(PlayerColor(PLAYER_1));
|
||||||
|
RemainingTimeP1OffCommand=
|
||||||
|
RemainingTimeP2X=THEME:GetMetric(Var "LoadingScreen","PlayerP2OnePlayerOneSideX") + 32
|
||||||
|
RemainingTimeP2Y=THEME:GetMetric(Var "LoadingScreen","ScoreP2Y") - 22
|
||||||
|
RemainingTimeP2OnCommand=shadowlength,1;diffuse,PlayerColor(PLAYER_2);diffusebottomedge,ColorMidTone(PlayerColor(PLAYER_2));
|
||||||
|
RemainingTimeP2OffCommand=
|
||||||
|
#
|
||||||
|
DeltaSecondsP1X=THEME:GetMetric(Var "LoadingScreen","RemainingTimeP1X") - 80
|
||||||
|
DeltaSecondsP1Y=THEME:GetMetric(Var "LoadingScreen","RemainingTimeP1Y")
|
||||||
|
DeltaSecondsP1OnCommand=shadowlength,1;skewx,-0.125
|
||||||
|
DeltaSecondsP1GainSecondsCommand=finishtweening;diffusealpha,1;zoom,1;decelerate,0.3;zoom,0.75;sleep,0.5;linear,0.2;diffusealpha,0;zoom,0
|
||||||
|
DeltaSecondsP1OffCommand=
|
||||||
|
DeltaSecondsP2X=THEME:GetMetric(Var "LoadingScreen","RemainingTimeP2X") - 80
|
||||||
|
DeltaSecondsP2Y=THEME:GetMetric(Var "LoadingScreen","RemainingTimeP2Y")
|
||||||
|
DeltaSecondsP2OnCommand=shadowlength,1;skewx,-0.125
|
||||||
|
DeltaSecondsP2GainSecondsCommand=finishtweening;diffusealpha,1;zoom,1;decelerate,0.3;zoom,0.75;sleep,0.5;linear,0.2;diffusealpha,0;zoom,0
|
||||||
|
DeltaSecondsP2OffCommand=
|
||||||
|
#
|
||||||
ScoreP1X=Center1Player() and SCREEN_CENTER_X or THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX")
|
ScoreP1X=Center1Player() and SCREEN_CENTER_X or THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX")
|
||||||
# ScoreP1X=(PREFSMAN:GetPreference("Center1Player") and GAMESTATE:GetNumPlayersEnabled() == 1) and SCREEN_CENTER_X or THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX")
|
# ScoreP1X=(PREFSMAN:GetPreference("Center1Player") and GAMESTATE:GetNumPlayersEnabled() == 1) and SCREEN_CENTER_X or THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX")
|
||||||
ScoreP1Y=SCREEN_BOTTOM-28
|
ScoreP1Y=SCREEN_BOTTOM-28
|
||||||
|
|||||||
Reference in New Issue
Block a user