various theme changes

This commit is contained in:
AJ Kelly
2010-07-12 16:08:14 -05:00
parent e81936d693
commit ba40e2d9db
18 changed files with 286 additions and 25 deletions
@@ -0,0 +1 @@
ScreenWithMenuElements background
@@ -0,0 +1,13 @@
-- how does installed song??? let's find out
local t = Def.ActorFrame{
LoadFont("Common Normal")..{
Name="Header";
InitCommand=cmd(x,SCREEN_LEFT+24;y,SCREEN_TOP+24;halign,0;diffuse,color("#CCCCCC");settext,Screen.String("BodyHeader");shadowlength,1;shadowcolor,HSV(40,0,0.6);diffusetopedge,color("#FFFFFF"));
OnCommand=cmd(queuecommand,"Anim");
AnimCommand=cmd(cropright,1;faderight,1;addx,96;decelerate,1;addx,-96;skewx,-0.1;cropright,0;faderight,0;);
};
-- todo: add explantion paragraph here (above the scroller)
};
return t;

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

@@ -1,11 +1,28 @@
local t = Def.ActorFrame {};
t[#t+1] = Def.ActorFrame {
FOV=90;
InitCommand=cmd(Center);
Def.Quad {
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH+1,SCREEN_HEIGHT);
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT);
OnCommand=cmd(diffuse,color("#FFCB05");diffusebottomedge,color("#F0BA00"));
};
LoadActor("_pattern") .. {
InitCommand=cmd(rotationy,-12.25;rotationz,-30;rotationx,-20;zoomto,SCREEN_WIDTH*2,SCREEN_HEIGHT*2;customtexturerect,0,0,SCREEN_WIDTH*4/256,SCREEN_HEIGHT*4/256);
OnCommand=cmd(texcoordvelocity,0.125,0.5;diffuse,color("#ffd400");diffusealpha,0.075);
};
Def.Quad {
InitCommand=cmd(vertalign,top;scaletoclipped,SCREEN_WIDTH+1,80;y,-SCREEN_CENTER_Y+20;fadebottom,0.75);
OnCommand=cmd(diffuse,color("#FFCB05"));
};
Def.Quad {
InitCommand=cmd(vertalign,bottom;scaletoclipped,SCREEN_WIDTH+1,80;y,SCREEN_CENTER_Y-20;fadetop,0.75);
OnCommand=cmd(diffuse,color("#FFCB05"));
};
--[[ LoadActor("_pattern") .. {
InitCommand=cmd(z,32;x,4;y,4;;rotationy,-12.25;rotationz,-30;rotationx,-20;zoomto,SCREEN_WIDTH*2,SCREEN_HEIGHT*2;customtexturerect,0,0,SCREEN_WIDTH*4/256,SCREEN_HEIGHT*4/256);
OnCommand=cmd(texcoordvelocity,0.125,0.5;diffuse,Color("Black");diffusealpha,0.5);
}; --]]
--[[ LoadActor("_grid") .. {
InitCommand=cmd(customtexturerect,0,0,(SCREEN_WIDTH+1)/4,SCREEN_HEIGHT/4;SetTextureFiltering,true);
OnCommand=cmd(zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT;diffuse,Color("Orange");diffuseshift;effecttiming,(1/8)*2,0,(7/8)*2,0;effectclock,'beatnooffset';
@@ -0,0 +1,121 @@
local gc = Var "GameCommand";
local Name = gc:GetName();
local Index = gc:GetIndex();
local previewWidth = SCREEN_CENTER_X*0.825;
local previewHeight = SCREEN_CENTER_Y;
local t = Def.ActorFrame{
Name="PreviewFrame";
InitCommand=cmd(x,SCREEN_CENTER_X*1.5;y,SCREEN_CENTER_Y*0.85);
OffCommand=cmd(bouncebegin,0.25;addx,SCREEN_CENTER_X);
};
local function TitleMenuItem(text,focused)
if focused == nil then focused = false; end;
local textColor = focused and color("#FFFFFF") or color("#888888");
return LoadFont("Common Normal")..{
Text=text;
InitCommand=cmd(zoom,0.45;strokecolor,Color("Outline");diffuse,textColor);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
end;
local previews = {
WhereToFind = Def.ActorFrame{
LoadActor(THEME:GetPathG("_howto","find"))..{
InitCommand=cmd(zoomto,previewWidth,previewHeight);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
};
HowToInstall = Def.ActorFrame{
LoadActor(THEME:GetPathG("_howto","install"))..{
InitCommand=cmd(zoomto,previewWidth,previewHeight);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
};
AdditionalFolders = Def.ActorFrame{
Def.Quad{
InitCommand=cmd(zoomto,previewWidth,previewHeight);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
Def.Quad{
InitCommand=cmd(y,-previewHeight*0.45;diffuse,color("#E0F0F0");zoomto,previewWidth,previewHeight*0.1;);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
LoadFont("Common normal")..{
InitCommand=cmd(x,-(SCREEN_CENTER_X*0.4);y,-(SCREEN_CENTER_Y*0.475);zoom,0.625;halign,0;valign,0;diffuse,color("#000000"));
BeginCommand=function(self)
local text = "Preferences.ini";
self:settext(text);
end;
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
LoadFont("Common normal")..{
Text="[Options]\nAdditionalCourseFolders=\nAdditionalFolders=\nAdditionalSongFolders=";
InitCommand=cmd(x,-(SCREEN_CENTER_X*0.4);y,-(SCREEN_CENTER_Y*0.35);zoom,0.75;halign,0;valign,0;diffuse,color("#000000"));
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
};
ReloadSongs = Def.ActorFrame{
LoadActor(THEME:GetPathB("ScreenTitleMenu","background/_bg"))..{
InitCommand=cmd(zoomto,previewWidth,previewHeight;halign,0.5;valign,0.5);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
LoadFont("Common normal")..{
InitCommand=cmd(zoom,0.4;maxwidth,(previewWidth*1.6)-8);
BeginCommand=function(self)
local song = SONGMAN:GetRandomSong();
self:settext("Loading songs...\n"..song:GetGroupName().."\n"..song:GetDisplayFullTitle());
end;
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
};
Exit = Def.ActorFrame{
LoadActor(THEME:GetPathB("ScreenTitleMenu","background/_bg"))..{
InitCommand=cmd(zoomto,previewWidth,previewHeight;halign,0.5;valign,0.5);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
LoadActor(THEME:GetPathG("ScreenTitleMenu","logo"))..{
InitCommand=cmd(y,-28;zoom,0.35;propagate,true);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
TitleMenuItem("Game Start",true)..{
InitCommand=cmd(y,20);
};
TitleMenuItem("Options")..{
InitCommand=cmd(y,32);
};
TitleMenuItem("Edit/Share")..{
InitCommand=cmd(y,44);
};
TitleMenuItem("Exit")..{
InitCommand=cmd(y,56);
};
};
};
t[#t+1] = previews[Name];
t[#t+1] = LoadFont("Common normal")..{
Name="Explanation";
--Text="The quick brown fox jumps over the lazy dog ".. Index .." times.";
Text=Screen.String("Explanation-"..Name);
-- was x,-(SCREEN_CENTER_X*0.4);y,SCREEN_CENTER_Y*0.525;
InitCommand=cmd(x,-(SCREEN_CENTER_X*0.8);y,SCREEN_CENTER_Y*0.8;halign,0;valign,0;zoom,0.65;wrapwidthpixels,(SCREEN_WIDTH*0.55)*1.75;NoStroke;shadowlength,1);
GainFocusCommand=cmd(stoptweening;decelerate,0.5;diffusealpha,1);
LoseFocusCommand=cmd(stoptweening;accelerate,0.5;diffusealpha,0);
};
return t;
@@ -1,7 +1,28 @@
return LoadFont("Common Normal") .. {
Text=GetLifeDifficulty();
AltText="";
BeginCommand=function(self)
self:settextf( Screen.String("LifeDifficulty"), GetLifeDifficulty() );
end
return Def.ActorFrame {
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
OnCommand=function(self)
if GetLifeDifficulty() < 3 then
(cmd(diffuseshift;effectcolor1,Color("Blue");effectcolor2,ColorDarkTone(Color("Blue"));effectperiod,1.25))(self);
elseif GetLifeDifficulty() > 3 then
(cmd(diffuseshift;effectcolor1,Color("Red");effectcolor2,ColorDarkTone(Color("Red"));effectperiod,1.25))(self);
else
(cmd(diffuse,Color("Orange");diffusetopedge,Color("Yellow")))(self);
end;
end;
};
LoadFont("Common Normal") .. {
Text=GetLifeDifficulty();
AltText="";
InitCommand=cmd(x,-72;horizalign,left;zoom,0.5);
OnCommand=cmd(shadowlength,1);
BeginCommand=function(self)
self:settextf( Screen.String("LifeDifficulty"), "" );
end
};
LoadFont("Common Normal") .. {
Text=GetLifeDifficulty();
AltText="";
InitCommand=cmd(x,72*0.75;zoom,0.875);
OnCommand=cmd(shadowlength,1;skewx,-0.125);
};
};

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -1,7 +1,38 @@
return LoadFont("Common Normal") .. {
Text=GetLifeDifficulty();
AltText="";
BeginCommand=function(self)
self:settextf( Screen.String("TimingDifficulty"), GetTimingDifficulty() );
end
return Def.ActorFrame {
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
OnCommand=function(self)
if GetTimingDifficulty() == 7 then
(cmd(glowshift;diffuse,Color("Yellow");diffuserightedge,Color("Red");effectcolor1,Colors.Alpha( Color("Red"), 0.5 );effectcolor2,Color("Invisible");effectperiod,1.25/2))(self);
elseif GetTimingDifficulty() < 4 then
(cmd(diffuseshift;effectcolor1,Color("Blue");effectcolor2,ColorDarkTone(Color("Blue"));effectperiod,1.25))(self);
elseif GetTimingDifficulty() > 4 and GetTimingDifficulty < 6 then
(cmd(diffuseshift;effectcolor1,Color("Red");effectcolor2,ColorDarkTone(Color("Red"));effectperiod,1.25))(self);
else
(cmd(diffuse,Color("Orange");diffusetopedge,Color("Yellow")))(self);
end;
end;
};
LoadFont("Common Normal") .. {
Text=GetTimingDifficulty();
AltText="";
InitCommand=cmd(x,-72;horizalign,left;zoom,0.5);
OnCommand=cmd(shadowlength,1);
BeginCommand=function(self)
self:settextf( Screen.String("TimingDifficulty"), "" );
end
};
LoadFont("Common Normal") .. {
Text=GetTimingDifficulty();
AltText="";
InitCommand=cmd(x,72*0.75;zoom,0.875);
OnCommand=function(self)
(cmd(shadowlength,1;skewx,-0.125))(self);
if GetTimingDifficulty() == 7 then
self:settext("Justice");
(cmd(zoom,0.5;diffuse,ColorLightTone( Color("Orange")) ))(self);
else
self:settext( GetTimingDifficulty() );
end
end;
};
};
@@ -1,2 +1,20 @@
return LoadFont("Common Normal") .. {
return Def.ActorFrame {
LoadActor(THEME:GetPathG("ScreenTitleMenu","PreferenceFrame")) .. {
OnCommand=cmd(diffuse,Color("Orange");diffusetopedge,Color("Yellow"));
};
LoadFont("Common Normal") .. {
Text=ProductID();
AltText="";
InitCommand=cmd(x,-72;y,-1;horizalign,left;zoom,0.75);
OnCommand=cmd(shadowlength,1);
};
LoadFont("Common Normal") .. {
Text=ProductVersion() .. "\n" .. VersionDate();
AltText="";
InitCommand=cmd(x,72*0.35;zoom,0.5);
OnCommand=cmd(shadowlength,1;skewx,-0.125);
};
--[[ LoadFont("Common Normal") .. {
OnCommand=cmd(settext,"You're using " ..ProductID().." "..ProductVersion().."\nBuilt on "..VersionDate().." at "..VersionTime();horizalign,right;vertalign,bottom;zoom,0.5;);
}; --]]
};
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@@ -0,0 +1,23 @@
-- comments show how this compares to a StepMania 3.9 BGAnimation.ini.
-- It should be noted that additional commands on the ActorFrame as a whole for
-- this file are in metrics.ini ([ScreenTitleMenu] ShowLogo, etc.)
local t = Def.ActorFrame{ -- [BGAnimation]
LoadActor("_ball"); -- [Layer1] Type=0 File=_ball.png
LoadActor("_ball")..{ -- [Layer2] Type=0 File=_ball.png
};
LoadActor("_text")..{ -- [Layer3] Type=0 File=_text.png
InitCommand=cmd(y,48;hide_if,GAMESTATE:GetMultiplayer()); -- Command=y,48
};
LoadActor("_multi")..{ -- [Layer4] Type=0 File=_multi.png
InitCommand=cmd(y,60;hide_if,not GAMESTATE:GetMultiplayer()); -- Command=y,48
-- the hide_if command would be similar to Condition=, which also exists.
-- Condition=GAMESTATE:GetMultiplayer(); is the equivalent code.
};
LoadFont("Common normal")..{
Text="sm-ssc Multiplayer";
InitCommand=cmd(y,5;shadowlength,0;strokecolor,color("0,0,0,0.375");diffusebottomedge,color("#D6DBDD"););
BeginCommand=cmd(hide_if,not GAMESTATE:GetMultiplayer());
};
};
return t;
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

+27 -11
View File
@@ -792,6 +792,12 @@ SeparateExitRowY=SCREEN_BOTTOM-40
QuestionOnCommand=diffuse,Color("Orange");diffusetopedge,BoostColor(Color("Orange"),1.5);wrapwidthpixels,600
AnswerOnCommand=diffuse,Color("Blue");glowshift;
KeysInitCommand=zoom,0.8;shadowlength,0
[ScreenInit]
PrepareScreens="ScreenTitleMenu,ScreenTitleJoin"
GroupedScreens="ScreenInit,ScreenTitleJoin,ScreenTitleMenu"
PersistScreens="ScreenInit,ScreenTitleJoin,ScreenTitleMenu"
[ScreenTitleMenu]
ShowHeader=false
ShowFooter=false
@@ -818,15 +824,15 @@ CurrentGametypeOnCommand=vertalign,bottom;
CurrentGametypeOffCommand=linear,0.5;cropright,1
#
ShowLifeDifficulty=true
LifeDifficultyX=SCREEN_WIDTH*0.99
LifeDifficultyY=(SCREEN_HEIGHT*0.1575)-12
LifeDifficultyOnCommand=vertalign,bottom;horizalign,right;zoom,0.5;
LifeDifficultyX=SCREEN_LEFT+84
LifeDifficultyY=SCREEN_TOP+64
LifeDifficultyOnCommand=
LifeDifficultyOffCommand=
#
ShowTimingDifficulty=true
TimingDifficultyX=SCREEN_WIDTH*0.99
TimingDifficultyY=(SCREEN_HEIGHT*0.1575)-24
TimingDifficultyOnCommand=vertalign,bottom;horizalign,right;zoom,0.5;
TimingDifficultyX=SCREEN_LEFT+84
TimingDifficultyY=SCREEN_TOP+32-8
TimingDifficultyOnCommand=
TimingDifficultyOffCommand=
#
ShowSystemDirection=false
@@ -836,10 +842,10 @@ SystemDirectionOnCommand=
SystemDirectionOffCommand=
#
ShowVersionInfo=true
VersionInfoX=SCREEN_WIDTH*0.9875
VersionInfoY=SCREEN_HEIGHT*0.8825
VersionInfoOnCommand=settext,"You're using " ..ProductID().." "..ProductVersion().."\nBuilt on "..VersionDate().." at "..VersionTime();horizalign,right;vertalign,bottom;zoom,0.5;
VersionInfoOffCommand=linear,0.5;croptop,1
VersionInfoX=SCREEN_RIGHT-84
VersionInfoY=SCREEN_BOTTOM-64
VersionInfoOnCommand=
VersionInfoOffCommand=
#
ShowNetworkStatus=true
NetworkStatusX=SCREEN_WIDTH*0.0125
@@ -964,6 +970,9 @@ IconChoice14KeysOnCommand=zoom,0;bounceend,0.35;zoom,1
IconChoice14KeysOffCommand=linear,0.1175;zoomx,0
[ScreenSelectPlayMode]
PrepareScreens="ScreenSelectMusic"
PersistScreens="ScreenSelectPlayMode,ScreenSelectMusic"
#
ScreenOutDelay=3
#
DefaultChoice="Easy"
@@ -1437,6 +1446,9 @@ PrevScreen=Branches.AfterEvaluation()
#
PlayMusic=false
#
PrepareScreens="ScreenProfileSave,ScreenSelectMusic"
PersistScreens="ScreenEvaluation,ScreenProfileSave,ScreenSelectMusic"
#
ShowJudgmentLineW1=true
ShowJudgmentLineW2=true
ShowJudgmentLineW3=true
@@ -1786,12 +1798,16 @@ ShowHeader=false
ShowScroller=true
PerChoiceScrollElement=false
#
ShowIcon=true
UseIconMetrics=false
PerChoiceIconElement=false
#
ScrollerX=SCREEN_LEFT+32
ScrollerY=SCREEN_CENTER_Y*0.5
ScrollerY=SCREEN_CENTER_Y
ScrollerTransform=function(self,offset,itemIndex,numItems) self:y(24*(itemIndex-(numItems-1)/2)); end
ScrollerNumItemsToDraw=20
ScrollerOffCommand=bouncebegin,0.25;addx,-SCREEN_CENTER_X
ChoiceNames="WhereToFind,HowToInstall,AdditionalFolders,ReloadSongs,Exit"
ChoiceWhereToFind="urlnoexit,http://code.google.com/p/sm-ssc/wiki/FindingContent;text,"..Screen.String("Finding Songs")