@@ -1,11 +1,8 @@
|
||||
return Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(48, 24);
|
||||
self:diffuse(PlayerColor(PLAYER_1));
|
||||
end;
|
||||
};
|
||||
LoadFont("Common Normal") .. {
|
||||
Text="P1";
|
||||
};
|
||||
Def.Quad {
|
||||
InitCommand=cmd(zoomto,48,24;diffuse,PlayerColor(PLAYER_1));
|
||||
};
|
||||
LoadFont("Common Normal") .. {
|
||||
Text="P1";
|
||||
};
|
||||
};
|
||||
@@ -1,37 +1,19 @@
|
||||
local gc = Var("GameCommand");
|
||||
--
|
||||
local t = Def.ActorFrame {};
|
||||
--
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(96, 24);
|
||||
self:diffuse(Color.White);
|
||||
end;
|
||||
GainFocusCommand=function(self)
|
||||
self:diffuseshift();
|
||||
self:effectcolor2(Color.White);
|
||||
self:effectcolor1(Color.Blue);
|
||||
end;
|
||||
LoseFocusCommand=function(self)
|
||||
self:stopeffect();
|
||||
end;
|
||||
DisabledCommand=function(self)
|
||||
self:stopeffect();
|
||||
self:diffuse(color("0.5,0.5,0.5,1"));
|
||||
end;
|
||||
EnabledCommand=function(self)
|
||||
self:stopeffect();
|
||||
self:diffuse(Color.White);
|
||||
end;
|
||||
};
|
||||
--
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=gc:GetText();
|
||||
InitCommand=function(self)
|
||||
self:diffuse(Color.Black);
|
||||
self:zoom(0.675);
|
||||
end;
|
||||
};
|
||||
};
|
||||
local gc = Var("GameCommand");
|
||||
--
|
||||
local t = Def.ActorFrame {};
|
||||
--
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=cmd(zoomto,96,24;diffuse,Color.White);
|
||||
GainFocusCommand=cmd(diffuseshift;effectcolor2,Color.White;effectcolor1,Color.Blue);
|
||||
LoseFocusCommand=cmd(stopeffect;);
|
||||
DisabledCommand=cmd(stopeffect;diffuse,color("0.5,0.5,0.5,1"));
|
||||
EnabledCommand=cmd(stopeffect;diffuse,Color.White);
|
||||
};
|
||||
--
|
||||
LoadFont("Common Normal") .. {
|
||||
Text=gc:GetText();
|
||||
InitCommand=cmd(diffuse,Color.Black;zoom,0.675);
|
||||
};
|
||||
};
|
||||
return t
|
||||
@@ -1,13 +1,10 @@
|
||||
local gc = Var("GameCommand");
|
||||
--
|
||||
local t = Def.ActorFrame {};
|
||||
--
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:zoomto(96, 24);
|
||||
self:diffuse(Color.White);
|
||||
end;
|
||||
};
|
||||
};
|
||||
local gc = Var("GameCommand");
|
||||
--
|
||||
local t = Def.ActorFrame {};
|
||||
--
|
||||
t[#t+1] = Def.ActorFrame {
|
||||
Def.Quad {
|
||||
InitCommand=cmd(zoomto,96,24;diffuse,Color.White);
|
||||
};
|
||||
};
|
||||
return t
|
||||
@@ -1,31 +1,15 @@
|
||||
local t = Def.ActorFrame{
|
||||
InitCommand=function(self)
|
||||
self:fov(70);
|
||||
end;
|
||||
LoadActor("_arrow")..{
|
||||
InitCommand=function(self)
|
||||
self:x(225);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:wag();
|
||||
self:effectmagnitude(0, 0, 16);
|
||||
self:effectperiod(2.5);
|
||||
end;
|
||||
};
|
||||
LoadActor("_text");
|
||||
LoadActor("_text")..{
|
||||
Name="TextGlow";
|
||||
InitCommand=function(self)
|
||||
self:blend(Blend.Add);
|
||||
self:diffusealpha(0.05);
|
||||
end;
|
||||
OnCommand=function(self)
|
||||
self:glowshift();
|
||||
self:effectperiod(2.5);
|
||||
self:effectcolor1(color("1,1,1,0.25"));
|
||||
self:effectcolor2(color("1,1,1,1"));
|
||||
end;
|
||||
};
|
||||
};
|
||||
|
||||
return t;
|
||||
local t = Def.ActorFrame{
|
||||
InitCommand=cmd(fov,70);
|
||||
LoadActor("_arrow")..{
|
||||
InitCommand=cmd(x,225;);
|
||||
OnCommand=cmd(wag;effectmagnitude,0,0,16;effectperiod,2.5;);
|
||||
};
|
||||
LoadActor("_text");
|
||||
LoadActor("_text")..{
|
||||
Name="TextGlow";
|
||||
InitCommand=cmd(blend,Blend.Add;diffusealpha,0.05;);
|
||||
OnCommand=cmd(glowshift;effectperiod,2.5;effectcolor1,color("1,1,1,0.25");effectcolor2,color("1,1,1,1"););
|
||||
};
|
||||
};
|
||||
|
||||
return t;
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
return Def.ActorFrame {
|
||||
InitCommand=function(self)
|
||||
self:x(SCREEN_CENTER_X);
|
||||
self:y(SCREEN_BOTTOM);
|
||||
end;
|
||||
Def.Quad {
|
||||
InitCommand=function(
|
||||
self:vertalign(bottom);
|
||||
self:zoomto(SCREEN_WIDTH, 32);
|
||||
self:diffuse(Color.Black);
|
||||
end;
|
||||
};
|
||||
return Def.ActorFrame {
|
||||
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_BOTTOM);
|
||||
Def.Quad {
|
||||
InitCommand=cmd(vertalign,bottom;zoomto,SCREEN_WIDTH,32;diffuse,Color.Black);
|
||||
};
|
||||
};
|
||||
@@ -1,21 +1,10 @@
|
||||
return Def.ActorFrame {
|
||||
-- Default BG
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:vertalign(bottom);
|
||||
self:zoomto(SCREEN_WIDTH, 60);
|
||||
self:diffuse(Color.Black);
|
||||
self:diffusealpha(0.65);
|
||||
end;
|
||||
InitCommand=cmd(vertalign,bottom;zoomto,SCREEN_WIDTH,60;diffuse,Color.Black;diffusealpha,0.65);
|
||||
};
|
||||
-- Highlight
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:vertalign(bottom);
|
||||
self:zoomto(SCREEN_WIDTH, 1);
|
||||
self:diffuse(Color.Blue);
|
||||
self:fadeleft(1);
|
||||
self:y(-58);
|
||||
end;
|
||||
InitCommand=cmd(vertalign,bottom;zoomto,SCREEN_WIDTH,1;diffuse,Color.Blue;fadeleft,1;y,-58);
|
||||
};
|
||||
};
|
||||
@@ -1,21 +1,10 @@
|
||||
return Def.ActorFrame {
|
||||
-- Default BG
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:vertalign(top);
|
||||
self:zoomto(SCREEN_WIDTH, 48);
|
||||
self:diffuse(Color.Black);
|
||||
self:diffusealpha(0.65);
|
||||
end;
|
||||
InitCommand=cmd(vertalign,top;zoomto,SCREEN_WIDTH,48;diffuse,Color.Black;diffusealpha,0.65);
|
||||
};
|
||||
-- Highlight
|
||||
Def.Quad {
|
||||
InitCommand=function(self)
|
||||
self:vertalign(top);
|
||||
self:zoomto(SCREEN_WIDTH, 1);
|
||||
self:diffuse(Color.Blue);
|
||||
self:faderight(1);
|
||||
self:y(46);
|
||||
end;
|
||||
InitCommand=cmd(vertalign,top;zoomto,SCREEN_WIDTH,1;diffuse,Color.Blue;faderight,1;y,46);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user