use StandardDecoration for GraphDisplay and ComboGraph so that positions and commands are loaded from metrics
This commit is contained in:
+11
-6
@@ -29,12 +29,17 @@ end
|
|||||||
|
|
||||||
local t = LoadFallbackB();
|
local t = LoadFallbackB();
|
||||||
|
|
||||||
t[#t+1] = GraphDisplay(PLAYER_1) .. {
|
if ShowStandardDecoration("GraphDisplay") then
|
||||||
InitCommand = cmd(x,SCREEN_CENTER_X-222;y,SCREEN_CENTER_Y-16;draworder,1;);
|
for pn in ivalues(PlayerNumber) do
|
||||||
};
|
t[#t+1] = StandardDecorationFromTable( "GraphDisplay" .. PlayerNumber:ToString()[pn], GraphDisplay(pn) );
|
||||||
t[#t+1] = GraphDisplay(PLAYER_2) .. {
|
end
|
||||||
InitCommand = cmd(x,SCREEN_CENTER_X+222;y,SCREEN_CENTER_Y-16;draworder,1;);
|
end
|
||||||
};
|
|
||||||
|
if ShowStandardDecoration("ComboGraph") then
|
||||||
|
for pn in ivalues(PlayerNumber) do
|
||||||
|
t[#t+1] = StandardDecorationFromTable( "ComboGraph" .. PlayerNumber:ToString()[pn], ComboGraph(pn) );
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
t[#t+1] = ComboGraph(PLAYER_1) .. {
|
t[#t+1] = ComboGraph(PLAYER_1) .. {
|
||||||
InitCommand = cmd(x,SCREEN_CENTER_X-222;y,SCREEN_CENTER_Y+10;draworder,1;);
|
InitCommand = cmd(x,SCREEN_CENTER_X-222;y,SCREEN_CENTER_Y+10;draworder,1;);
|
||||||
|
|||||||
@@ -186,11 +186,15 @@ function StandardDecorationFromFile( MetricsName, FileName )
|
|||||||
end
|
end
|
||||||
|
|
||||||
function StandardDecorationFromFileOptional( MetricsName, FileName )
|
function StandardDecorationFromFileOptional( MetricsName, FileName )
|
||||||
if THEME:GetMetric(Var "LoadingScreen","Show"..MetricsName) then
|
if ShowStandardDecoration(MetricsName) then
|
||||||
return StandardDecorationFromFile( MetricsName, FileName );
|
return StandardDecorationFromFile( MetricsName, FileName );
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ShowStandardDecoration( MetricsName )
|
||||||
|
return THEME:GetMetric(Var "LoadingScreen","Show"..MetricsName)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- (c) 2006 Glenn Maynard
|
-- (c) 2006 Glenn Maynard
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
|
|||||||
@@ -1499,6 +1499,26 @@ BarActual5P2Y=SCREEN_CENTER_Y+36
|
|||||||
BarActual5P2OnCommand=horizalign,left;rotationz,0;zoomx,0;sleep,1.1;linear,1.0;zoomx,1
|
BarActual5P2OnCommand=horizalign,left;rotationz,0;zoomx,0;sleep,1.1;linear,1.0;zoomx,1
|
||||||
BarActual5P2OffCommand=linear,0.7;diffusealpha,0
|
BarActual5P2OffCommand=linear,0.7;diffusealpha,0
|
||||||
|
|
||||||
|
ShowGraphDisplay=true
|
||||||
|
GraphDisplayP1X=SCREEN_CENTER_X-222
|
||||||
|
GraphDisplayP1Y=SCREEN_CENTER_Y-16
|
||||||
|
GraphDisplayP1OnCommand=draworder,1
|
||||||
|
GraphDisplayP1OffCommand=
|
||||||
|
GraphDisplayP2X=SCREEN_CENTER_X+222
|
||||||
|
GraphDisplayP2Y=SCREEN_CENTER_Y-16
|
||||||
|
GraphDisplayP2OnCommand=draworder,1
|
||||||
|
GraphDisplayP2OffCommand=
|
||||||
|
|
||||||
|
ShowComboGraph=true
|
||||||
|
ComboGraphP1X=SCREEN_CENTER_X-222
|
||||||
|
ComboGraphP1Y=SCREEN_CENTER_Y-10
|
||||||
|
ComboGraphP1OnCommand=draworder,1
|
||||||
|
ComboGraphP1OffCommand=
|
||||||
|
ComboGraphP2X=SCREEN_CENTER_X+222
|
||||||
|
ComboGraphP2Y=SCREEN_CENTER_Y-10
|
||||||
|
ComboGraphP2OnCommand=draworder,1
|
||||||
|
ComboGraphP2OffCommand=
|
||||||
|
|
||||||
BarActualMaxCommand=glowshift;effectperiod,0.5
|
BarActualMaxCommand=glowshift;effectperiod,0.5
|
||||||
|
|
||||||
CheerDelaySeconds=2.5
|
CheerDelaySeconds=2.5
|
||||||
|
|||||||
Reference in New Issue
Block a user