various system direction stuff from midi
This commit is contained in:
@@ -7,5 +7,6 @@ t[#t+1] = StandardDecorationFromFileOptional("CurrentGametype","CurrentGametype"
|
|||||||
t[#t+1] = StandardDecorationFromFileOptional("LifeDifficulty","LifeDifficulty");
|
t[#t+1] = StandardDecorationFromFileOptional("LifeDifficulty","LifeDifficulty");
|
||||||
t[#t+1] = StandardDecorationFromFileOptional("TimingDifficulty","TimingDifficulty");
|
t[#t+1] = StandardDecorationFromFileOptional("TimingDifficulty","TimingDifficulty");
|
||||||
t[#t+1] = StandardDecorationFromFileOptional("NetworkStatus","NetworkStatus");
|
t[#t+1] = StandardDecorationFromFileOptional("NetworkStatus","NetworkStatus");
|
||||||
|
t[#t+1] = StandardDecorationFromFileOptional("SystemDirection","SystemDirection");
|
||||||
|
|
||||||
return t
|
return t
|
||||||
@@ -8,9 +8,12 @@ return Def.CourseContentsList {
|
|||||||
HideCommand=cmd(linear,0.3;zoomy,0);
|
HideCommand=cmd(linear,0.3;zoomy,0);
|
||||||
SetCommand=function(self)
|
SetCommand=function(self)
|
||||||
self:SetFromGameState();
|
self:SetFromGameState();
|
||||||
|
self:PositionItems();
|
||||||
|
self:SetTransformFromHeight(44);
|
||||||
self:SetCurrentAndDestinationItem(0);
|
self:SetCurrentAndDestinationItem(0);
|
||||||
|
-- self:SetDestinationItem( self:GetNumItems()-2 );
|
||||||
self:SetLoop(false);
|
self:SetLoop(false);
|
||||||
self:SetMask(270,44);
|
self:SetMask(270,0);
|
||||||
end;
|
end;
|
||||||
CurrentTrailP1ChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentTrailP1ChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
CurrentTrailP2ChangedMessageCommand=cmd(playcommand,"Set");
|
CurrentTrailP2ChangedMessageCommand=cmd(playcommand,"Set");
|
||||||
@@ -34,7 +37,7 @@ return Def.CourseContentsList {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Def.TextBanner {
|
Def.TextBanner {
|
||||||
InitCommand=cmd(x,-96;y,1;Load,"TextBanner";SetFromString,"", "", "", "", "", "");
|
InitCommand=cmd(x,-128;y,1;Load,"TextBanner";SetFromString,"", "", "", "", "", "");
|
||||||
SetSongCommand=function(self, params)
|
SetSongCommand=function(self, params)
|
||||||
if params.Song then
|
if params.Song then
|
||||||
if GAMESTATE:GetCurrentCourse():GetDisplayFullTitle() == "Abomination" then
|
if GAMESTATE:GetCurrentCourse():GetDisplayFullTitle() == "Abomination" then
|
||||||
@@ -65,17 +68,17 @@ return Def.CourseContentsList {
|
|||||||
end;
|
end;
|
||||||
};
|
};
|
||||||
|
|
||||||
LoadFont("CourseEntryDisplay","number") .. {
|
--[[ LoadFont("CourseEntryDisplay","number") .. {
|
||||||
InitCommand=cmd(x,-114-8;y,-12;shadowlength,1);
|
InitCommand=cmd(x,114+8;y,-12;shadowlength,1);
|
||||||
SetSongCommand=function(self, params)
|
SetSongCommand=function(self, params)
|
||||||
self:settext(string.format("#%i", params.Number));
|
self:settext(string.format("#%i", params.Number));
|
||||||
|
|
||||||
(cmd(finishtweening;zoom,0.5;zoomy,0.5*1.5;diffusealpha,0;sleep,0.125*params.Number;linear,0.125;diffusealpha,1;linear,0.05;zoomy,0.5*1;zoomx,0.5*1.1;glow,color("1,1,1,0.5");decelerate,0.1;zoom,0.5;glow,color("1,1,1,0")))(self);
|
(cmd(finishtweening;zoom,0.5;zoomy,0.5*1.5;diffusealpha,0;sleep,0.125*params.Number;linear,0.125;diffusealpha,1;linear,0.05;zoomy,0.5*1;zoomx,0.5*1.1;glow,color("1,1,1,0.5");decelerate,0.1;zoom,0.5;glow,color("1,1,1,0")))(self);
|
||||||
end;
|
end;
|
||||||
};
|
}; --]]
|
||||||
LoadFont("CourseEntryDisplay","difficulty") .. {
|
LoadFont("CourseEntryDisplay","difficulty") .. {
|
||||||
Text="0";
|
Text="0";
|
||||||
InitCommand=cmd(x,-114;y,3;zoom,0.75;shadowlength,1);
|
InitCommand=cmd(x,114;y,0;zoom,0.75;shadowlength,1);
|
||||||
SetSongCommand=function(self, params)
|
SetSongCommand=function(self, params)
|
||||||
if params.PlayerNumber ~= GAMESTATE:GetMasterPlayerNumber() then return end
|
if params.PlayerNumber ~= GAMESTATE:GetMasterPlayerNumber() then return end
|
||||||
self:settext( params.Meter );
|
self:settext( params.Meter );
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
local t = Def.ActorFrame {};
|
||||||
|
local tInfo = {
|
||||||
|
{"EventMode","Stages"},
|
||||||
|
{"LifeDifficulty","Life"},
|
||||||
|
{"TimingDifficulty","Difficulty"},
|
||||||
|
};
|
||||||
|
local fSpacingX = 72;
|
||||||
|
|
||||||
|
local function MakeIcon( sTarget )
|
||||||
|
local t = Def.ActorFrame {
|
||||||
|
LoadActor(THEME:GetPathG("MenuTimer","Frame"));
|
||||||
|
LoadFont("Common Normal") .. {
|
||||||
|
Text=sTarget[2];
|
||||||
|
InitCommand=cmd(y,24+2;zoom,0.5;shadowlength,1);
|
||||||
|
};
|
||||||
|
--
|
||||||
|
LoadFont("Common Normal") .. {
|
||||||
|
Text="TEST";
|
||||||
|
-- Text=( PREFSMAN:GetPreference("EventMode") ) and "∞" or PREFSMAN:GetPreference("SongsPerPlay");
|
||||||
|
OnCommand=cmd(settext,"4");
|
||||||
|
Condition=sTarget[1] == "EventMode";
|
||||||
|
};
|
||||||
|
--
|
||||||
|
--[[ for i=1,8 do
|
||||||
|
t[#t+1] = Def.Quad {
|
||||||
|
InitCommand=cmd(vertalign,bottom;zoomto,4,10+(i*4));
|
||||||
|
};
|
||||||
|
end --]]
|
||||||
|
};
|
||||||
|
return t
|
||||||
|
end;
|
||||||
|
|
||||||
|
for i=1,#tInfo do
|
||||||
|
t[#t+1] = MakeIcon( tInfo[i] ) .. {
|
||||||
|
InitCommand=cmd(x,(i-1)*fSpacingX);
|
||||||
|
};
|
||||||
|
end
|
||||||
|
|
||||||
|
return t
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ function MakeBitmapTest()
|
|||||||
|
|
||||||
};
|
};
|
||||||
end
|
end
|
||||||
|
if not PREFSMAN:GetPreference("EventMode") then
|
||||||
for s in ivalues(Stage) do
|
for s in ivalues(Stage) do
|
||||||
stages[#stages+1] = MakeBitmapTest() .. {
|
stages[#stages+1] = MakeBitmapTest() .. {
|
||||||
SetCommand=function(self, params)
|
SetCommand=function(self, params)
|
||||||
@@ -36,5 +36,16 @@ for s in ivalues(Stage) do
|
|||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
stages[#stages+1] = MakeBitmapTest() .. {
|
||||||
|
SetCommand=function(self,params)
|
||||||
|
local Stage = GAMESTATE:GetCurrentStageIndex();
|
||||||
|
self:settextf( "Stage %03i", Stage);
|
||||||
|
self:diffuse( StageToColor('Stage_1st') );
|
||||||
|
self:diffusebottomedge( ColorMidTone(StageToColor('Stage_1st')) );
|
||||||
|
self:strokecolor( Colors.Alpha( ColorDarkTone(StageToColor('Stage_1st')), 0.75) );
|
||||||
|
end;
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
return stages;
|
return stages;
|
||||||
|
|||||||
@@ -552,7 +552,7 @@ PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
|
|||||||
end
|
end
|
||||||
TextureCoordScaleX=1
|
TextureCoordScaleX=1
|
||||||
NumPills=1
|
NumPills=1
|
||||||
AlwaysBounceNormalBar=true
|
AlwaysBounceNormalBar=false
|
||||||
|
|
||||||
[TextBanner]
|
[TextBanner]
|
||||||
TitleOnCommand=horizalign,left;shadowlength,1;
|
TitleOnCommand=horizalign,left;shadowlength,1;
|
||||||
@@ -699,6 +699,12 @@ TimingDifficultyY=(SCREEN_HEIGHT*0.1575)-24
|
|||||||
TimingDifficultyOnCommand=vertalign,bottom;horizalign,right;zoom,0.5;
|
TimingDifficultyOnCommand=vertalign,bottom;horizalign,right;zoom,0.5;
|
||||||
TimingDifficultyOffCommand=
|
TimingDifficultyOffCommand=
|
||||||
#
|
#
|
||||||
|
ShowSystemDirection=true
|
||||||
|
SystemDirectionX=SCREEN_LEFT+40
|
||||||
|
SystemDirectionY=SCREEN_TOP+24
|
||||||
|
SystemDirectionOnCommand=
|
||||||
|
SystemDirectionOffCommand=
|
||||||
|
#
|
||||||
ShowVersionInfo=true
|
ShowVersionInfo=true
|
||||||
VersionInfoX=SCREEN_WIDTH*0.9875
|
VersionInfoX=SCREEN_WIDTH*0.9875
|
||||||
VersionInfoY=SCREEN_HEIGHT*0.8825
|
VersionInfoY=SCREEN_HEIGHT*0.8825
|
||||||
@@ -837,7 +843,7 @@ WrapScroller=false
|
|||||||
UseIconMetrics=true
|
UseIconMetrics=true
|
||||||
#
|
#
|
||||||
IconGainFocusCommand=stoptweening;bounceend,0.125;zoom,1;
|
IconGainFocusCommand=stoptweening;bounceend,0.125;zoom,1;
|
||||||
IconLoseFocusCommand=stoptweening;decelerate,0.25;zoom,0.6;
|
IconLoseFocusCommand=stoptweening;decelerate,0.125;zoom,0.6;
|
||||||
#
|
#
|
||||||
IconChoiceEasyX=SCREEN_CENTER_X-160
|
IconChoiceEasyX=SCREEN_CENTER_X-160
|
||||||
IconChoiceEasyY=SCREEN_CENTER_Y-48
|
IconChoiceEasyY=SCREEN_CENTER_Y-48
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user