use correct FontBaseZoom

This commit is contained in:
Chris Danford
2008-04-28 10:55:54 +00:00
parent aa25271322
commit 0ad1703976
41 changed files with 85 additions and 46 deletions
@@ -118,9 +118,9 @@ local sections = {
-- To add people or sections modify the above. -- To add people or sections modify the above.
local fontPath = THEME:GetPathF( "ScreenCredits", "titles" ) local fontPath = THEME:GetPathF( "ScreenCredits", "titles" )
local lineOn = cmd(zoom,0.5) local lineOn = cmd()
local sectionOn = cmd(zoom,0.5;diffuse,1,.5,.5,1) local sectionOn = cmd(diffuse,1,.5,.5,1)
local otherOn = cmd(zoom,0.5;diffuse,.5,.5,1,1) local otherOn = cmd(diffuse,.5,.5,1,1)
local t = Def.ActorScroller { local t = Def.ActorScroller {
SecondsPerItem = 0.40; SecondsPerItem = 0.40;
NumItemsToDraw = 40; NumItemsToDraw = 40;
@@ -50,7 +50,7 @@ local function OptionsArea(pn)
}; };
LoadFont("_terminator two 32" ) .. { LoadFont("_terminator two 32" ) .. {
InitCommand=cmd(y,-4;settext,PlayerNumberToLocalizedString(pn);zoom,0.5;zoom,0.5;diffuse,color("#baa200");shadowlength,0;strokecolor,color("#00000000");); InitCommand=cmd(y,-4;settext,PlayerNumberToLocalizedString(pn);diffuse,color("#baa200");shadowlength,0;strokecolor,color("#00000000"););
}; };
}; };
t[#t+1] = Def.ModIconRow { t[#t+1] = Def.ModIconRow {
@@ -80,7 +80,7 @@ t[#t+1] = Def.ActorFrame {
t[#t+1] = LoadFont("Common", "normal") .. { t[#t+1] = LoadFont("Common", "normal") .. {
InitCommand=cmd(x,SCREEN_CENTER_X-160;y,SCREEN_CENTER_Y+94;playcommand,"Set"); InitCommand=cmd(x,SCREEN_CENTER_X-160;y,SCREEN_CENTER_Y+94;playcommand,"Set");
OnCommand=cmd(zoom,0.5;shadowlength,2;diffusealpha,0;linear,0.5;diffusealpha,1); OnCommand=cmd(shadowlength,2;diffusealpha,0;linear,0.5;diffusealpha,1);
OffCommand=cmd(linear,0.5;diffusealpha,0); OffCommand=cmd(linear,0.5;diffusealpha,0);
SetCommand=function(self) SetCommand=function(self)
@@ -119,7 +119,7 @@ t[#t+1] = Def.ActorFrame {
}; };
LoadFont( "_sf square head bold 28" ) .. { LoadFont( "_sf square head bold 28" ) .. {
InitCommand=cmd(zoom,0.5;maxwidth,300;playcommand,"Set";x,10;shadowlength,0;diffuse,color("#fbfb57");strokecolor,color("#696800");); InitCommand=cmd(maxwidth,300;playcommand,"Set";x,10;shadowlength,0;diffuse,color("#fbfb57");strokecolor,color("#696800"););
SetCommand=cmd(settext,string.upper( SortOrderToLocalizedString(GAMESTATE:GetSortOrder()) )); SetCommand=cmd(settext,string.upper( SortOrderToLocalizedString(GAMESTATE:GetSortOrder()) ));
SortOrderChangedMessageCommand=cmd(playcommand,"Set"); SortOrderChangedMessageCommand=cmd(playcommand,"Set");
}; };
@@ -159,7 +159,7 @@ t[#t+1] = Def.PaneDisplay {
t[#t+1] = Def.BPMDisplay { t[#t+1] = Def.BPMDisplay {
File=THEME:GetPathF("BPMDisplay", "bpm"); File=THEME:GetPathF("BPMDisplay", "bpm");
Name="BPMDisplay"; Name="BPMDisplay";
InitCommand=cmd(horizalign,right;x,SCREEN_CENTER_X+294;y,SCREEN_CENTER_Y+1;shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");zoom,0.5;); InitCommand=cmd(horizalign,right;x,SCREEN_CENTER_X+294;y,SCREEN_CENTER_Y+1;shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000"););
OnCommand=cmd(stoptweening;addx,-SCREEN_WIDTH*0.6;bounceend,0.5;addx,SCREEN_WIDTH*0.6); OnCommand=cmd(stoptweening;addx,-SCREEN_WIDTH*0.6;bounceend,0.5;addx,SCREEN_WIDTH*0.6);
OffCommand=cmd(bouncebegin,0.5;addx,-SCREEN_WIDTH*0.6); OffCommand=cmd(bouncebegin,0.5;addx,-SCREEN_WIDTH*0.6);
SetCommand=function(self) self:SetFromGameState() end; SetCommand=function(self) self:SetFromGameState() end;
@@ -193,7 +193,7 @@ t[#t+1] = LoadActor( "stop icon" ) .. {
}; };
t[#t+1] = LoadFont("_regra 32 bold") .. { t[#t+1] = LoadFont("_regra 32 bold") .. {
InitCommand=cmd(horizalign,left;x,SCREEN_CENTER_X-14;y,SCREEN_CENTER_Y-14;zoom,0.5;settext,"/Senser";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");maxwidth,360); InitCommand=cmd(horizalign,left;x,SCREEN_CENTER_X-14;y,SCREEN_CENTER_Y-14;settext,"xxxx";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");maxwidth,360);
SetCommand=function(self) SetCommand=function(self)
local s = "---"; local s = "---";
local song = GAMESTATE:GetCurrentSong(); local song = GAMESTATE:GetCurrentSong();
@@ -209,7 +209,7 @@ t[#t+1] = LoadFont("_regra 32 bold") .. {
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set"); CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
}; };
t[#t+1] = LoadFont("_regra 32 bold") .. { t[#t+1] = LoadFont("_regra 32 bold") .. {
InitCommand=cmd(horizalign,right;x,SCREEN_CENTER_X+228;y,SCREEN_CENTER_Y+4;zoom,0.5;settext,"_Hardcore Techno";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");); InitCommand=cmd(horizalign,right;x,SCREEN_CENTER_X+228;y,SCREEN_CENTER_Y+4;settext,"xxxx";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000"););
SetCommand=function(self) SetCommand=function(self)
local s = "---"; local s = "---";
local song = GAMESTATE:GetCurrentSong(); local song = GAMESTATE:GetCurrentSong();
@@ -300,7 +300,7 @@ t[#t+1] = Def.CourseContentsList {
}; };
LoadFont("Common","normal") .. { LoadFont("Common","normal") .. {
OnCommand=cmd(x,SCREEN_CENTER_X-192;y,SCREEN_CENTER_Y-230;horizalign,right;zoom,0.5;shadowlength,0); OnCommand=cmd(x,SCREEN_CENTER_X-192;y,SCREEN_CENTER_Y-230;horizalign,right;shadowlength,0);
SetSongCommand=function(self, params) self:settext(params.Modifiers); end; SetSongCommand=function(self, params) self:settext(params.Modifiers); end;
}; };
@@ -344,7 +344,7 @@ t[#t+1] = Def.ActorFrame{
}; };
LoadFont("_venacti 24")..{ LoadFont("_venacti 24")..{
Name="NumStages"; Name="NumStages";
InitCommand=cmd(x,32;y,-4;shadowlength,0;zoom,0.5;skewx,-0.2;diffusebottomedge,color("#068EE1FF");strokecolor,color("#FF000000")); InitCommand=cmd(x,32;y,-4;shadowlength,0;skewx,-0.2;diffusebottomedge,color("#068EE1FF");strokecolor,color("#FF000000"));
SetCommand=function(self) SetCommand=function(self)
local Song = GAMESTATE:GetCurrentSong(); local Song = GAMESTATE:GetCurrentSong();
local postfix = " STAGES"; local postfix = " STAGES";
@@ -401,7 +401,7 @@ if not GAMESTATE:IsCourseMode() then
end; end;
}; };
LoadFont( "_terminator two 32" ) .. { LoadFont( "_terminator two 32" ) .. {
InitCommand=cmd(x,-4;y,-3;settext,"P1";zoom,0.5;diffuse,color("#baa200");shadowlength,0;strokecolor,color("#00000000");); InitCommand=cmd(x,-4;y,-3;settext,"P1";diffuse,color("#baa200");shadowlength,0;strokecolor,color("#00000000"););
BeginCommand=cmd(player,"PlayerNumber_P1";); BeginCommand=cmd(player,"PlayerNumber_P1";);
PlayerJoinedMessageCommand=function(self,param ) PlayerJoinedMessageCommand=function(self,param )
if param.Player ~= "PlayerNumber_P1" then return end; if param.Player ~= "PlayerNumber_P1" then return end;
@@ -426,7 +426,7 @@ if not GAMESTATE:IsCourseMode() then
end; end;
}; };
LoadFont( "_terminator two 32" ) .. { LoadFont( "_terminator two 32" ) .. {
InitCommand=cmd(x,4;y,-3;settext,"P2";zoom,0.5;diffuse,color("#83b767");shadowlength,0;strokecolor,color("#00000000");); InitCommand=cmd(x,4;y,-3;settext,"P2";diffuse,color("#83b767");shadowlength,0;strokecolor,color("#00000000"););
BeginCommand=cmd(player,"PlayerNumber_P2";); BeginCommand=cmd(player,"PlayerNumber_P2";);
PlayerJoinedMessageCommand=function(self,param ) PlayerJoinedMessageCommand=function(self,param )
if param.Player ~= "PlayerNumber_P2" then return end; if param.Player ~= "PlayerNumber_P2" then return end;
@@ -6,7 +6,7 @@ local t = Def.ActorFrame {
InitCommand=cmd(x,SCREEN_CENTER_X-200;y,SCREEN_TOP;vertalign,top;); InitCommand=cmd(x,SCREEN_CENTER_X-200;y,SCREEN_TOP;vertalign,top;);
}; };
LoadFont("Common", "normal") .. { LoadFont("Common", "normal") .. {
InitCommand=cmd(x,SCREEN_CENTER_X-266;y,SCREEN_TOP+36;horizalign,left;zoom,0.5;shadowlengthx,0;shadowlengthy,2;playcommand,"Set"); InitCommand=cmd(x,SCREEN_CENTER_X-266;y,SCREEN_TOP+36;horizalign,left;shadowlengthx,0;shadowlengthy,2;playcommand,"Set");
SetCommand=function(self) SetCommand=function(self)
local s = ""; local s = "";
local fmt = THEME:GetString( Var "LoadingScreen", "%d songs in %d groups" ); local fmt = THEME:GetString( Var "LoadingScreen", "%d songs in %d groups" );
@@ -37,14 +37,14 @@ local t = Def.ActorFrame {
end; end;
}; };
LoadFont("Common", "normal") .. { LoadFont("Common", "normal") .. {
InitCommand=cmd(x,SCREEN_LEFT+20;y,SCREEN_TOP+36;horizalign,left;diffuse,0.6,0.6,0.6,1;zoom,0.5;shadowlength,2); InitCommand=cmd(x,SCREEN_LEFT+20;y,SCREEN_TOP+36;horizalign,left;diffuse,0.6,0.6,0.6,1;shadowlength,2);
}; };
Def.ActorFrame { Def.ActorFrame {
InitCommand=cmd(x,SCREEN_CENTER_X-250;y,SCREEN_CENTER_Y+200;); InitCommand=cmd(x,SCREEN_CENTER_X-250;y,SCREEN_CENTER_Y+200;);
LoadActor( "stepmania logo" ) .. { LoadActor( "stepmania logo" ) .. {
}; };
LoadFont( "_venacti bold 24" ) .. { LoadFont( "_venacti bold 24" ) .. {
InitCommand=cmd(y,-25;settext,ProductVersion() .. " " .. VersionTime();zoom,0.5;diffuse,color("#000000");shadowlength,0;); InitCommand=cmd(y,-25;settext,ProductVersion() .. " " .. VersionTime();diffuse,color("#000000");shadowlength,0;);
}; };
}; };
} }
@@ -5,6 +5,7 @@ LineSpacing=38
DrawExtraPixelsLeft=3 DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=12 0=12
1=12 1=12
2=12 2=12
@@ -5,6 +5,7 @@ LineSpacing=43
DrawExtraPixelsLeft=3 DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -6,6 +6,7 @@ DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=3 AdvanceExtraPixels=3
ScaleAllWidthsBy=1.2068965517241379310344827586207 ScaleAllWidthsBy=1.2068965517241379310344827586207
FontBaseZoom=0.5
0=4 0=4
1=4 1=4
2=4 2=4
@@ -6,6 +6,7 @@ DrawExtraPixelsLeft=0
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=3 AdvanceExtraPixels=3
ScaleAllWidthsBy=1.2068965517241379310344827586207 ScaleAllWidthsBy=1.2068965517241379310344827586207
FontBaseZoom=0.5
0=4 0=4
1=4 1=4
2=4 2=4
@@ -5,6 +5,7 @@ LineSpacing=51
DrawExtraPixelsLeft=0 DrawExtraPixelsLeft=0
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=7 0=7
1=7 1=7
2=7 2=7
@@ -5,6 +5,7 @@ LineSpacing=60
DrawExtraPixelsLeft=0 DrawExtraPixelsLeft=0
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=2 AdvanceExtraPixels=2
FontBaseZoom=0.5
0=12 0=12
1=12 1=12
2=12 2=12
@@ -6,6 +6,7 @@ DrawExtraPixelsLeft=0
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
AddToAllWidths=2 AddToAllWidths=2
FontBaseZoom=0.5
0=6 0=6
1=6 1=6
2=6 2=6
@@ -5,6 +5,7 @@ LineSpacing=32
DrawExtraPixelsLeft=4 DrawExtraPixelsLeft=4
DrawExtraPixelsRight=4 DrawExtraPixelsRight=4
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=8 0=8
1=8 1=8
2=8 2=8
@@ -6,6 +6,7 @@ DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5 FontBaseZoom=0.5
DefaultStrokeColor=#FFFFFF DefaultStrokeColor=#FFFFFF
[numbers] [numbers]
Baseline=34 Baseline=34
0=26 0=26
@@ -5,6 +5,7 @@ LineSpacing=51
DrawExtraPixelsLeft=4 DrawExtraPixelsLeft=4
DrawExtraPixelsRight=4 DrawExtraPixelsRight=4
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=8 0=8
1=8 1=8
2=8 2=8
@@ -5,6 +5,7 @@ LineSpacing=60
DrawExtraPixelsLeft=0 DrawExtraPixelsLeft=0
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=2 AdvanceExtraPixels=2
FontBaseZoom=0.5
0=24 0=24
1=24 1=24
2=24 2=24
@@ -5,6 +5,7 @@ LineSpacing=92
DrawExtraPixelsLeft=1 DrawExtraPixelsLeft=1
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=2 AdvanceExtraPixels=2
FontBaseZoom=0.5
0=21 0=21
1=21 1=21
2=21 2=21
@@ -5,6 +5,7 @@ LineSpacing=60
DrawExtraPixelsLeft=2 DrawExtraPixelsLeft=2
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=2 AdvanceExtraPixels=2
FontBaseZoom=0.5
0=24 0=24
1=24 1=24
2=24 2=24
@@ -5,6 +5,7 @@ LineSpacing=92
DrawExtraPixelsLeft=2 DrawExtraPixelsLeft=2
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=2 AdvanceExtraPixels=2
FontBaseZoom=0.5
0=21 0=21
1=21 1=21
2=21 2=21
@@ -5,6 +5,7 @@ LineSpacing=120
DrawExtraPixelsLeft=8 DrawExtraPixelsLeft=8
DrawExtraPixelsRight=8 DrawExtraPixelsRight=8
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
[numbers] [numbers]
0=67 0=67
@@ -5,6 +5,7 @@ LineSpacing=24
DrawExtraPixelsLeft=2 DrawExtraPixelsLeft=2
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=29
DrawExtraPixelsLeft=2 DrawExtraPixelsLeft=2
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=2 AdvanceExtraPixels=2
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=28
DrawExtraPixelsLeft=4 DrawExtraPixelsLeft=4
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=31
DrawExtraPixelsLeft=3 DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=34
DrawExtraPixelsLeft=3 DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=28
DrawExtraPixelsLeft=3 DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=1 AdvanceExtraPixels=1
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=38
DrawExtraPixelsLeft=3 DrawExtraPixelsLeft=3
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
0=0 0=0
1=0 1=0
2=0 2=0
@@ -5,6 +5,7 @@ LineSpacing=60
DrawExtraPixelsLeft=0 DrawExtraPixelsLeft=0
DrawExtraPixelsRight=0 DrawExtraPixelsRight=0
AdvanceExtraPixels=0 AdvanceExtraPixels=0
FontBaseZoom=0.5
[numbers] [numbers]
Baseline=54 Baseline=54
@@ -1 +1 @@
ModIconRow icon filled ModIcon Filled
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

@@ -0,0 +1,10 @@
return Def.ActorFrame {
LoadActor("focus") .. {
GainFocusCommand=cmd(visible,true;);
LoseFocusCommand=cmd(visible,false;);
};
LoadActor("nofocus") .. {
GainFocusCommand=cmd(visible,false;);
LoseFocusCommand=cmd(visible,true;);
};
};
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

@@ -0,0 +1,10 @@
return Def.ActorFrame {
LoadActor("focus") .. {
GainFocusCommand=cmd(visible,true;);
LoseFocusCommand=cmd(visible,false;);
};
LoadActor("nofocus") .. {
GainFocusCommand=cmd(visible,false;);
LoseFocusCommand=cmd(visible,true;);
};
};
@@ -30,7 +30,7 @@ local t = Def.ActorFrame {
InitCommand=cmd(x,94;settext,string.upper(gc:GetText());shadowlength,0;zoom,0.7;zoomtowidth,300;rotationz,-90;diffuse,c;shadowlengthx,4;shadowlengthy,0;); InitCommand=cmd(x,94;settext,string.upper(gc:GetText());shadowlength,0;zoom,0.7;zoomtowidth,300;rotationz,-90;diffuse,c;shadowlengthx,4;shadowlengthy,0;);
}; };
LoadFont( "_euromode 44" ) .. { LoadFont( "_euromode 44" ) .. {
InitCommand=cmd(horizalign,right;vertalign,bottom;x,72;y,150;settext,ScreenString(gc:GetName().."Explanation");shadowlengthx,0;shadowlengthy,3;zoom,0.5;maxwidth,500;diffuse,c;strokecolor,color("#000000");); InitCommand=cmd(horizalign,right;vertalign,bottom;x,72;y,150;settext,ScreenString(gc:GetName().."Explanation");shadowlengthx,0;shadowlengthy,3;maxwidth,500;diffuse,c;strokecolor,color("#000000"););
}; };
}; };
Def.ActorFrame { Def.ActorFrame {
@@ -46,10 +46,10 @@ local t = Def.ActorFrame {
LoseFocusCommand=cmd(visible,false); LoseFocusCommand=cmd(visible,false);
}; };
LoadFont( "_terminator two stroke 60" ) .. { LoadFont( "_terminator two stroke 60" ) .. {
InitCommand=cmd(y,-6;settext,string.upper(gc:GetText());shadowlength,0;zoom,0.5;maxwidth,350;diffuse,color("#000000");diffusealpha,0.35;); InitCommand=cmd(y,-6;settext,string.upper(gc:GetText());shadowlength,0;maxwidth,350;diffuse,color("#000000");diffusealpha,0.35;);
}; };
LoadFont( "_terminator two 60" ) .. { LoadFont( "_terminator two 60" ) .. {
InitCommand=cmd(y,-6;settext,string.upper(gc:GetText());shadowlength,0;zoom,0.5;maxwidth,350;diffuse,c;shadowlengthx,0;shadowlengthy,4;); InitCommand=cmd(y,-6;settext,string.upper(gc:GetText());shadowlength,0;maxwidth,350;diffuse,c;shadowlengthx,0;shadowlengthy,4;);
}; };
}; };
}; };
@@ -24,16 +24,16 @@ local t = Def.ActorFrame {
LoadActor( "card frame " .. st ) .. { LoadActor( "card frame " .. st ) .. {
}; };
LoadFont( "_sf square head 60" ) .. { LoadFont( "_sf square head 60" ) .. {
InitCommand=cmd(y,-51;settext,string.upper(gc:GetText());maxwidth,500;shadowlength,0;zoom,0.5;); InitCommand=cmd(y,-51;settext,string.upper(gc:GetText());maxwidth,500;shadowlength,0;);
}; };
LoadFont( "_venacti bold 32" ) .. { LoadFont( "_venacti bold 32" ) .. {
InitCommand=cmd(horizalign,left;x,-12;y,-2;settext,"EACH PLAYER USES\nONE CONTROLLER";maxwidth,300;shadowlength,0;diffuse,color("#000000");zoom,0.5); InitCommand=cmd(horizalign,left;x,-12;y,-2;settext,"EACH PLAYER USES\nONE CONTROLLER";maxwidth,300;shadowlength,0;diffuse,color("#000000"););
}; };
LoadFont( "_venacti bold 32" ) .. { LoadFont( "_venacti bold 32" ) .. {
InitCommand=cmd(horizalign,right;x,98;y,42;settext,"MAX STAGE/";maxwidth,300;shadowlength,0;diffuse,color("#32d545");zoom,0.5); InitCommand=cmd(horizalign,right;x,98;y,42;settext,"MAX STAGE/";maxwidth,300;shadowlength,0;diffuse,color("#32d545"););
}; };
LoadFont( "_sf square head 32" ) .. { LoadFont( "_sf square head 32" ) .. {
InitCommand=cmd(horizalign,right;x,128;y,40;settext,max_stages;maxwidth,100;shadowlength,0;zoom,0.5); InitCommand=cmd(horizalign,right;x,128;y,40;settext,max_stages;maxwidth,100;shadowlength,0;);
}; };
LoadActor( "card " .. pad_file ) .. { LoadActor( "card " .. pad_file ) .. {
InitCommand=cmd(x,-82;y,8;); InitCommand=cmd(x,-82;y,8;);
@@ -55,7 +55,7 @@ local t = Def.ActorFrame {
LoseFocusCommand=cmd(stopeffect;visible,false); LoseFocusCommand=cmd(stopeffect;visible,false);
}; };
LoadFont( "_terminator two 36" ) .. { LoadFont( "_terminator two 36" ) .. {
InitCommand=cmd(y,-30;settext,string.upper(gc:GetText());shadowlength,0;zoom,0.5;maxwidth,160;strokecolor,color("#000000FF")); InitCommand=cmd(y,-30;settext,string.upper(gc:GetText());shadowlength,0;maxwidth,160;strokecolor,color("#000000FF"));
}; };
Def.ActorFrame { Def.ActorFrame {
InitCommand=cmd(y,10;); InitCommand=cmd(y,10;);
@@ -5,7 +5,7 @@ return LoadActor( THEME:GetPathB("ScreenWithMenuElements2","overlay") ) .. {
OnCommand=cmd(); OnCommand=cmd();
}; };
LoadFont( "_venacti bold 30" ) .. { LoadFont( "_venacti bold 30" ) .. {
InitCommand=cmd(y,-15;shadowlength,0;diffuse,color("#000000");zoom,0.5;settext,"\"JOY4\" IS NOT MAPPED";skewx,-0.1;); InitCommand=cmd(y,-15;shadowlength,0;diffuse,color("#000000");settext,"\"JOY4\" IS NOT MAPPED";skewx,-0.1;);
}; };
}; };
Def.ActorFrame { Def.ActorFrame {
@@ -14,7 +14,7 @@ return LoadActor( THEME:GetPathB("ScreenWithMenuElements2","overlay") ) .. {
OnCommand=cmd(zoomx,-1); OnCommand=cmd(zoomx,-1);
}; };
LoadFont( "_venacti bold 30" ) .. { LoadFont( "_venacti bold 30" ) .. {
InitCommand=cmd(y,-15;shadowlength,0;diffuse,color("#000000");zoom,0.5;settext,"P2: PRESS START TO JOIN\nTHIS IS 2 LINES OF TEXT";skewx,-0.1;); InitCommand=cmd(y,-15;shadowlength,0;diffuse,color("#000000");settext,"P2: PRESS START TO JOIN\nTHIS IS 2 LINES OF TEXT";skewx,-0.1;);
}; };
}; };
}; };
@@ -8,10 +8,10 @@ return Def.ActorFrame {
InitCommand=cmd(horizalign,left;y,4); InitCommand=cmd(horizalign,left;y,4);
}; };
LoadFont( "_sf sports night ns upright 52" ) .. { LoadFont( "_sf sports night ns upright 52" ) .. {
InitCommand=cmd(x,64;y,-7;horizalign,left;shadowlength,0;zoom,0.5;settext,ScreenString("HeaderText");skewx,-0.15); InitCommand=cmd(x,64;y,-7;horizalign,left;shadowlength,0;settext,ScreenString("HeaderText");skewx,-0.15);
}; };
LoadFont( "_venacti 24" ) .. { LoadFont( "_venacti 24" ) .. {
InitCommand=cmd(x,64;y,12;horizalign,left;shadowlength,0;zoom,0.5;settext,ScreenString("HeaderSubText");); InitCommand=cmd(x,64;y,12;horizalign,left;shadowlength,0;settext,ScreenString("HeaderSubText"););
}; };
LoadActor( "arrow" ) .. { LoadActor( "arrow" ) .. {
}; };
+9 -9
View File
@@ -112,26 +112,26 @@ function TextBannerAfterSet(self,param)
--local Artist=self:GetChild("Artist"); --local Artist=self:GetChild("Artist");
local edge_x = 120; local edge_x = 120;
if Subtitle:GetText() == "" then if Subtitle:GetText() == "" then
(cmd(zoom,0.5;maxwidth,300;x,edge_x;y,0))(Title); (cmd(maxwidth,300;x,edge_x;y,0))(Title);
(cmd(visible,false))(Subtitle); (cmd(visible,false))(Subtitle);
--(cmd(zoom,0.3333;maxwidth,300;x,edge_x;y,7))(Artist); --(cmd(zoom,0.66;maxwidth,300;x,edge_x;y,7))(Artist);
else else
local one_line_title_zoom = 0.5; local one_line_title_zoom = 1;
local one_line_sub_zoom = 0.3; local one_line_sub_zoom = 0.6;
local title_width = Title:GetWidth() * one_line_title_zoom; local title_width = Title:GetWidth() * one_line_title_zoom;
local sub_width = Subtitle:GetWidth() * one_line_sub_zoom; local sub_width = Subtitle:GetWidth() * one_line_sub_zoom;
local spacing = 4; local spacing = 4;
local max_one_line_width = 200; local max_one_line_width = 200;
if title_width + spacing + sub_width < max_one_line_width then if title_width + spacing + sub_width < max_one_line_width then
-- subtitle to the side -- subtitle to the side
(cmd(zoom,0.5;x,edge_x-sub_width-spacing;y,0))(Title); (cmd(zoom,1;x,edge_x-sub_width-spacing;y,0))(Title);
(cmd(visible,true;zoom,one_line_sub_zoom;x,edge_x;y,2))(Subtitle); (cmd(visible,true;zoom,one_line_sub_zoom;x,edge_x;y,2))(Subtitle);
--(cmd(zoom,0.3333;maxwidth,300;x,edge_x;y,7))(Artist); --(cmd(zoom,0.66;maxwidth,300;x,edge_x;y,7))(Artist);
else else
-- subtitle below -- subtitle below
(cmd(zoom,0.5;x,edge_x;y,-6;))(Title); (cmd(zoom,1;x,edge_x;y,-6;))(Title);
(cmd(visible,true;zoom,0.3;x,edge_x;y,7))(Subtitle); (cmd(visible,true;zoom,0.6;x,edge_x;y,7))(Subtitle);
--(cmd(zoom,0.3333;maxwidth,300;x,edge_x;y,9))(Artist); --(cmd(zoom,0.66;maxwidth,300;x,edge_x;y,9))(Artist);
end end
end end
end end
+4 -4
View File
@@ -1850,7 +1850,7 @@ Class="ScreenStatsOverlay"
Fallback="Screen" Fallback="Screen"
StatsX=SCREEN_RIGHT-8 StatsX=SCREEN_RIGHT-8
StatsY=SCREEN_TOP+10 StatsY=SCREEN_TOP+10
StatsOnCommand=horizalign,right;vertalign,top;zoom,0.7;shadowlength,2 StatsOnCommand=horizalign,right;vertalign,top;shadowlength,2
[MusicWheelItem] [MusicWheelItem]
IconX=-136 IconX=-136
@@ -2628,7 +2628,7 @@ MountainHeight=
[ModIcon] [ModIcon]
TextX=0 TextX=0
TextY=-2 TextY=-2
TextOnCommand=zoom,0.5;maxwidth,72;uppercase,true TextOnCommand=maxwidth,72;uppercase,true
[ModIconSelectMusic] [ModIconSelectMusic]
Fallback="ModIcon" Fallback="ModIcon"
@@ -2638,11 +2638,11 @@ NumModIcons=6
ModIconOnCommand= ModIconOnCommand=
SpacingX=46 SpacingX=46
SpacingY=0 SpacingY=0
ModIconMetircsGroup="ModIcon" ModIconMetricsGroup="ModIcon"
[ModIconRowSelectMusic] [ModIconRowSelectMusic]
Fallback="ModIconRow" Fallback="ModIconRow"
ModIconMetircsGroup="ModIconSelectMusic" ModIconMetricsGroup="ModIconSelectMusic"
[ModIconRowGameplay] [ModIconRowGameplay]
Fallback="ModIconRow" Fallback="ModIconRow"
-3
View File
@@ -216,7 +216,6 @@ void ScreenDebugOverlay::Init()
m_textHeader.SetHorizAlign( align_left ); m_textHeader.SetHorizAlign( align_left );
m_textHeader.SetX( SCREEN_LEFT+20 ); m_textHeader.SetX( SCREEN_LEFT+20 );
m_textHeader.SetY( SCREEN_TOP+20 ); m_textHeader.SetY( SCREEN_TOP+20 );
m_textHeader.SetZoom( 1.0f );
m_textHeader.SetText( DEBUG_MENU ); m_textHeader.SetText( DEBUG_MENU );
this->AddChild( &m_textHeader ); this->AddChild( &m_textHeader );
@@ -320,11 +319,9 @@ void ScreenDebugOverlay::UpdateText()
txt1.SetX( SCREEN_CENTER_X-50 ); txt1.SetX( SCREEN_CENTER_X-50 );
txt1.SetY( fY ); txt1.SetY( fY );
txt1.SetZoom( 0.7f );
txt2.SetX( SCREEN_CENTER_X-30 ); txt2.SetX( SCREEN_CENTER_X-30 );
txt2.SetY( fY ); txt2.SetY( fY );
txt2.SetZoom( 0.7f );
RString s1 = (*p)->GetDisplayTitle(); RString s1 = (*p)->GetDisplayTitle();
RString s2 = (*p)->GetDisplayValue(); RString s2 = (*p)->GetDisplayValue();
-1
View File
@@ -48,7 +48,6 @@ void ScreenStatsOverlay::Init()
m_textSkips[i].SetY( m_textSkips[i].SetY(
SCALE( i, 0, NUM_SKIPS_TO_SHOW-1, rectSkips.top + 10, rectSkips.bottom - 10 ) SCALE( i, 0, NUM_SKIPS_TO_SHOW-1, rectSkips.top + 10, rectSkips.bottom - 10 )
); );
m_textSkips[i].SetZoom( 0.6f );
m_textSkips[i].SetDiffuse( RageColor(1,1,1,0) ); m_textSkips[i].SetDiffuse( RageColor(1,1,1,0) );
m_textSkips[i].SetShadowLength( 0 ); m_textSkips[i].SetShadowLength( 0 );
this->AddChild( &m_textSkips[i] ); this->AddChild( &m_textSkips[i] );