small changes to gameplay decorations, nothing serious
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB |
@@ -22,8 +22,8 @@ local function CreateSegments(Player)
|
|||||||
local steps = GAMESTATE:GetCurrentSteps( Player );
|
local steps = GAMESTATE:GetCurrentSteps( Player );
|
||||||
if steps then
|
if steps then
|
||||||
local timingData = steps:GetTimingData();
|
local timingData = steps:GetTimingData();
|
||||||
-- if we're using SSC, might as well use the StepsSeconds, which will
|
-- use the StepsSeconds, which will almost always be more proper
|
||||||
-- almost always be more proper than a r21'd file.
|
-- than a file with ITG2r21 compatibility.
|
||||||
if song then
|
if song then
|
||||||
local songLen = song:MusicLengthSeconds();
|
local songLen = song:MusicLengthSeconds();
|
||||||
|
|
||||||
@@ -150,6 +150,8 @@ end
|
|||||||
local t = LoadFallbackB()
|
local t = LoadFallbackB()
|
||||||
t[#t+1] = StandardDecorationFromFileOptional("ScoreFrame","ScoreFrame");
|
t[#t+1] = StandardDecorationFromFileOptional("ScoreFrame","ScoreFrame");
|
||||||
|
|
||||||
|
local function songMeterScale(val) return scale(val,0,1,-380/2,380/2) end
|
||||||
|
|
||||||
for pn in ivalues(PlayerNumber) do
|
for pn in ivalues(PlayerNumber) do
|
||||||
local MetricsName = "SongMeterDisplay" .. PlayerNumberToString(pn);
|
local MetricsName = "SongMeterDisplay" .. PlayerNumberToString(pn);
|
||||||
local songMeterDisplay = Def.ActorFrame{
|
local songMeterDisplay = Def.ActorFrame{
|
||||||
@@ -166,15 +168,15 @@ for pn in ivalues(PlayerNumber) do
|
|||||||
};
|
};
|
||||||
Def.Quad {
|
Def.Quad {
|
||||||
InitCommand=cmd(zoomto,2,8);
|
InitCommand=cmd(zoomto,2,8);
|
||||||
OnCommand=cmd(x,scale(0.25,0,1,-380/2,380/2);diffuse,PlayerColor(pn);diffusealpha,0.5);
|
OnCommand=cmd(x,songMeterScale(0.25);diffuse,PlayerColor(pn);diffusealpha,0.5);
|
||||||
};
|
};
|
||||||
Def.Quad {
|
Def.Quad {
|
||||||
InitCommand=cmd(zoomto,2,8);
|
InitCommand=cmd(zoomto,2,8);
|
||||||
OnCommand=cmd(x,scale(0.5,0,1,-380/2,380/2);diffuse,PlayerColor(pn);diffusealpha,0.5);
|
OnCommand=cmd(x,songMeterScale(0.5);diffuse,PlayerColor(pn);diffusealpha,0.5);
|
||||||
};
|
};
|
||||||
Def.Quad {
|
Def.Quad {
|
||||||
InitCommand=cmd(zoomto,2,8);
|
InitCommand=cmd(zoomto,2,8);
|
||||||
OnCommand=cmd(x,scale(0.75,0,1,-380/2,380/2);diffuse,PlayerColor(pn);diffusealpha,0.5);
|
OnCommand=cmd(x,songMeterScale(0.75);diffuse,PlayerColor(pn);diffusealpha,0.5);
|
||||||
};
|
};
|
||||||
Def.SongMeterDisplay {
|
Def.SongMeterDisplay {
|
||||||
StreamWidth=THEME:GetMetric( MetricsName, 'StreamWidth' );
|
StreamWidth=THEME:GetMetric( MetricsName, 'StreamWidth' );
|
||||||
@@ -189,6 +191,7 @@ for pn in ivalues(PlayerNumber) do
|
|||||||
end
|
end
|
||||||
t[#t+1] = songMeterDisplay
|
t[#t+1] = songMeterDisplay
|
||||||
end;
|
end;
|
||||||
|
|
||||||
for pn in ivalues(PlayerNumber) do
|
for pn in ivalues(PlayerNumber) do
|
||||||
local MetricsName = "ToastyDisplay" .. PlayerNumberToString(pn);
|
local MetricsName = "ToastyDisplay" .. PlayerNumberToString(pn);
|
||||||
t[#t+1] = LoadActor( THEME:GetPathG("Player", 'toasty'), pn ) .. {
|
t[#t+1] = LoadActor( THEME:GetPathG("Player", 'toasty'), pn ) .. {
|
||||||
@@ -204,15 +207,9 @@ end;
|
|||||||
t[#t+1] = StandardDecorationFromFileOptional("BPMDisplay","BPMDisplay");
|
t[#t+1] = StandardDecorationFromFileOptional("BPMDisplay","BPMDisplay");
|
||||||
t[#t+1] = StandardDecorationFromFileOptional("StageDisplay","StageDisplay");
|
t[#t+1] = StandardDecorationFromFileOptional("StageDisplay","StageDisplay");
|
||||||
t[#t+1] = StandardDecorationFromFileOptional("SongTitle","SongTitle");
|
t[#t+1] = StandardDecorationFromFileOptional("SongTitle","SongTitle");
|
||||||
t[#t+1] = Def.ActorFrame {
|
|
||||||
InitCommand=cmd(x,SCREEN_RIGHT;y,SCREEN_BOTTOM;draworder,5);
|
|
||||||
--[[ LoadActor("_whatsup") .. {
|
|
||||||
InitCommand=cmd(horizalign,left;vertalign,top);
|
|
||||||
ToastyMessageCommand=cmd(smooth,3;x,-256;y,-200;sleep,2;smooth,3;x,256;y,200)
|
|
||||||
}; ]]
|
|
||||||
};
|
|
||||||
if( not GAMESTATE:IsCourseMode() ) then
|
if( not GAMESTATE:IsCourseMode() ) then
|
||||||
t[#t+1] = Def.Actor{
|
t[#t+1] = Def.Actor{
|
||||||
JudgmentMessageCommand = function(self, params)
|
JudgmentMessageCommand = function(self, params)
|
||||||
if params.TapNoteScore and
|
if params.TapNoteScore and
|
||||||
params.TapNoteScore ~= 'TapNoteScore_Invalid' and
|
params.TapNoteScore ~= 'TapNoteScore_Invalid' and
|
||||||
@@ -222,7 +219,7 @@ t[#t+1] = Def.Actor{
|
|||||||
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
|
STATSMAN:GetCurStageStats():GetPlayerStageStats(params.Player))
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
};
|
};
|
||||||
end;
|
end;
|
||||||
|
|
||||||
return t
|
return t
|
||||||
|
|||||||
Reference in New Issue
Block a user