RSR theme covered.

This commit is contained in:
Jason Felds
2013-07-01 21:30:10 -04:00
parent 2330c87501
commit c31d1f1c9d
7 changed files with 148 additions and 59 deletions
@@ -10,8 +10,14 @@ local function CreateDebugGrid()
for a=1,numY do for a=1,numY do
for b=1,numX do for b=1,numX do
t[#t+1] = Def.Quad { t[#t+1] = Def.Quad {
InitCommand=cmd(x,b*tGridSizeMajor[1]-(tGridSizeMajor[1]/2);y,a*tGridSizeMajor[2]-(tGridSizeMajor[2]/2)); InitCommand=function(self)
OnCommand=cmd(zoomto,tGridSizeMajor[1]-2,tGridSizeMajor[2]-2;diffuse,color("1,1,1,0.25")); self:x(b * tGridSizeMajor[1] - (tGridSizeMajor[1] / 2));
self:y(a * tGridSizeMajor[2] - (tGridSizeMajor[2] / 2));
end;
OnCommand=function(self)
self:zoomto(tGridSizeMajor[1] - 2, tGridSizeMajor[2] - 2);
self:diffuse(color("1,1,1,0.25"));
end;
}; };
end; end;
end; end;
@@ -20,42 +26,90 @@ end --]]
-- --
t[#t+1] = Def.ActorFrame { t[#t+1] = Def.ActorFrame {
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y); InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
end;
LoadActor("VOL1-29-NTSC") .. { LoadActor("VOL1-29-NTSC") .. {
InitCommand=cmd(scaletoclipped,SCREEN_WIDTH,SCREEN_HEIGHT); InitCommand=function(self)
OnCommand=cmd(diffusealpha,0.75); self:scaletoclipped(SCREEN_WIDTH, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffusealpha(0.75);
end;
}; };
}; };
-- --
local bShow = 0; local bShow = 0;
t[#t+1] = Def.ActorFrame { t[#t+1] = Def.ActorFrame {
InitCommand=cmd(visible,false); InitCommand=funtion(self)
self:visible(false);
end;
ToggleConsoleDisplayMessageCommand=function(self) ToggleConsoleDisplayMessageCommand=function(self)
bShow = 1 - bShow; bShow = 1 - bShow;
self:visible( bShow == 1 ); self:visible( bShow == 1 );
end; end;
-- Grid -- Grid
--[[ LoadActor("_32") .. { --[[
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;customtexturerect,0,0,SCREEN_WIDTH/32,SCREEN_HEIGHT/32); LoadActor("_32") .. {
OnCommand=cmd(diffuse,color("0,0,0,0.5")); InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT);
self:customtexturerect(0, 0, SCREEN_WIDTH / 32, SCREEN_HEIGHT / 32);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
}; };
LoadActor("_16") .. { LoadActor("_16") .. {
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;customtexturerect,0,0,SCREEN_WIDTH/16,SCREEN_HEIGHT/16); InitCommand=function(self)
OnCommand=cmd(diffuse,color("1,1,1,0.125")); self:x(SCREEN_CENTER_X);
}; --]] self:y(SCREEN_CENTER_Y);
--[[ LoadActor("_8") .. { self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT);
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;customtexturerect,0,0,SCREEN_WIDTH/8,SCREEN_HEIGHT/8); self:customtexturerect(0, 0, SCREEN_WIDTH / 16, SCREEN_HEIGHT / 16);
OnCommand=cmd(diffuse,color("#00BFE833")); end;
}; --]] OnCommand=function(self)
self:diffuse(color("1,1,1,0.125"));
end;
};
--]]
--[[
LoadActor("_8") .. {
InitCommand=function(self)
self:x(SCREEN_CENTER_X);
self:y(SCREEN_CENTER_Y);
self:zoomto(SCREEN_WIDTH, SCREEN_HEIGHT);
self:customtexturerect(0, 0, SCREEN_WIDTH / 8, SCREEN_HEIGHT / 8);
end;
OnCommand=function(self)
self:diffuse(color("#00BFE833"));
end;
};
--]]
-- Left -- Left
Def.Quad { Def.Quad {
InitCommand=cmd(horizalign,left;x,SCREEN_LEFT;y,SCREEN_CENTER_Y;zoomto,16,SCREEN_HEIGHT); InitCommand=function(self)
OnCommand=cmd(diffuse,color("0,0,0,0.5")); self:horizalign(left);
self:x(SCREEN_LEFT);
self:y(SCREEN_CENTER_Y);
self:zoomto(16, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
}; };
-- Right -- Right
Def.Quad { Def.Quad {
InitCommand=cmd(horizalign,right;x,SCREEN_RIGHT;y,SCREEN_CENTER_Y;zoomto,16,SCREEN_HEIGHT); InitCommand=function(self)
OnCommand=cmd(diffuse,color("0,0,0,0.5")); self:horizalign(right);
self:x(SCREEN_RIGHT);
self:y(SCREEN_CENTER_Y);
self:zoomto(16, SCREEN_HEIGHT);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
}; };
}; };
-- --
@@ -1,14 +1,8 @@
return Def.ActorFrame { return Def.ActorFrame {
Def.Quad { Def.Quad {
InitCommand=cmd(x,-128+4;zoomto,4,46); InitCommand=function(self)
-- OnCommand=cmd(diffuse,color("0,0,0,0.5")); self:x(-124);
self:zoomto(4, 46);
end;
}; };
--[[ Def.Quad {
InitCommand=cmd(x,-128+16+6;zoomto,32,46);
-- OnCommand=cmd(faderight,1;diffusealpha,0.5);
}; --]]
--[[ Def.Quad {
InitCommand=cmd(x,2;y,23;zoomto,320,1);
-- OnCommand=cmd(diffuse,color("0,0,0,0.5"));
}; --]]
}; };
@@ -1,6 +1,11 @@
return Def.ActorFrame { return Def.ActorFrame {
Def.Quad { Def.Quad {
InitCommand=cmd(x,4;zoomto,256-4,46); InitCommand=function(self)
OnCommand=cmd(diffuse,color("0,0,0,0.5")); self:x(4);
self:zoomto(252, 46);
end;
OnCommand=function(self)
self:diffuse(color("0,0,0,0.5"));
end;
}; };
}; };
@@ -6,6 +6,10 @@ t[#t+1] = LoadFont("Common Normal") .. {
Text=gc:GetText(); Text=gc:GetText();
}; };
t.GainFocusCommand=cmd(diffusealpha,1); t.GainFocusCommand=function(self)
t.LoseFocusCommand=cmd(diffusealpha,0.5); self:diffusealpha(1);
end;
t.LoseFocusCommand=function(self)
self:diffusealpha(0.5);
end;
return t; return t;
@@ -1,9 +1,16 @@
local t = Def.ActorFrame {}; local t = Def.ActorFrame {};
t[#t+1] = Def.ActorFrame { t[#t+1] = Def.ActorFrame {
InitCommand=cmd(y,-64); InitCommand=function(self)
self:y(-64);
end;
Def.Quad { Def.Quad {
InitCommand=cmd(vertalign,top;zoomto,SCREEN_WIDTH-32,2); InitCommand=function(self)
OnCommand=cmd(diffusealpha,0.5); self:vertalign(top);
self:zoomto(SCREEN_WIDTH - 32, 2);
end;
OnCommand=function(self)
self:diffusealpha(0.5);
end;
}; };
}; };
return t return t
@@ -1,35 +1,63 @@
local t = Def.ActorFrame {}; local t = Def.ActorFrame {};
t[#t+1] = Def.ActorFrame { t[#t+1] = Def.ActorFrame {
InitCommand=cmd(y,48); InitCommand=function(self)
self:y(48);
end;
Def.Quad { Def.Quad {
InitCommand=cmd(vertalign,bottom;zoomto,SCREEN_WIDTH-32,2); InitCommand=function(self)
OnCommand=cmd(diffusealpha,0.5); self:vertalign(bottom);
self:zoomto(SCREEN_WIDTH - 32, 2);
end;
OnCommand=function(self)
self:diffusealpha(0.5);
end;
}; };
}; };
t[#t+1] = Def.ActorFrame { Name="MenuTimerDecoration"; t[#t+1] = Def.ActorFrame {
InitCommand=cmd(y,48); Name="MenuTimerDecoration";
InitCommand=function(self)
self:y(48);
end;
LoadFont("Common Normal") .. { LoadFont("Common Normal") .. {
Text="TIME"; Text="TIME";
InitCommand=cmd(vertalign,bottom;horizalign,right;x,SCREEN_CENTER_X-16;y,-4.5); InitCommand=function(self)
OnCommand=cmd(zoom,0.5); self:vertalign(bottom);
self:horizalign(right);
self:x(SCREEN_CENTER_X - 16);
self:y,(-4.5);
end;
OnCommand=function(self)
self:zoom(0.5);
end;
}; };
--[[ LoadFont("Common Normal") .. {
Text="99";
InitCommand=cmd(vertalign,bottom;horizalign,right;x,SCREEN_CENTER_X-64;y,-4.5);
OnCommand=cmd();
}; --]]
}; };
t[#t+1] = Def.ActorFrame { Name="HeaderTextDecoration"; t[#t+1] = Def.ActorFrame {
InitCommand=cmd(y,48); Name="HeaderTextDecoration";
InitCommand=function(self)
self:y(48);
end;
LoadFont("Common Normal") .. { LoadFont("Common Normal") .. {
Text="SELECT"; Text="SELECT";
InitCommand=cmd(vertalign,bottom;horizalign,left;x,-SCREEN_CENTER_X+16;y,-4.5); InitCommand=function(self)
OnCommand=cmd(zoom,0.5); self:vertalign(bottom);
self:horizalign(right);
self:x(SCREEN_CENTER_X - 16);
self:y,(-4.5);
end;
OnCommand=function(self)
self:zoom(0.5);
end;
}; };
LoadFont("Common Normal") .. { LoadFont("Common Normal") .. {
Text="OPTIONS"; Text="OPTIONS";
InitCommand=cmd(vertalign,bottom;horizalign,left;x,-SCREEN_CENTER_X+64;y,-4.5); InitCommand=function(self)
OnCommand=cmd(); self:vertalign(bottom);
self:horizalign(right);
self:x(SCREEN_CENTER_X - 16);
self:y,(-4.5);
end;
OnCommand=function(self)
end;
}; };
}; };
return t return t
+1 -4
View File
@@ -24,10 +24,7 @@ Text1FormatFunction=function(fSeconds) \
end end
FrameOnCommand= FrameOnCommand=
Warning10Command=diffuseshift;effectperiod,1;effectcolor2,Color("Red");effectcolor1,color("0.5,0,0,1"); Warning10Command=diffuseshift;effectperiod,1;effectcolor2,Color("Red");effectcolor1,color("0.5,0,0,1");
#~ Warning10Command=%function(self) \
#~ MESSAGEMAN:Broadcast("TimerWarning"); \
#~ cmd(diffuseshift;effectperiod,1;effectcolor2,Color("Red");effectcolor1,color("0.5,0,0,1"))(self); \
#~ end;
[ScreenTitleMenu] [ScreenTitleMenu]
ShowHeader=true ShowHeader=true
ShowFooter=true ShowFooter=true