TitleScreen tweaks.

This commit is contained in:
Jonathan Payne
2013-01-05 23:21:32 -08:00
parent 4c836c48d6
commit d915050656
11 changed files with 97 additions and 103 deletions
@@ -2,8 +2,19 @@ local netConnected = IsNetConnected();
local loggedOnSMO = IsNetSMOnline();
local t = Def.ActorFrame{
Def.Quad {
InitCommand=cmd(y,-12;x,160;zoomto,320+32,38;vertalign,top;diffuse,Color.Black;diffusealpha,0.5);
OnCommand=cmd(faderight,0.45);
BeginCommand=function(self)
if netConnected then
self:zoomtoheight( 38 );
else
self:zoomtoheight( 24 );
end
end;
};
LoadFont("Common Normal") .. {
InitCommand=cmd(uppercase,true;zoom,0.75;horizalign,left);
InitCommand=cmd(uppercase,true;zoom,0.75;shadowlength,1;horizalign,left);
BeginCommand=function(self)
-- check network status
if netConnected then
@@ -11,7 +22,7 @@ local t = Def.ActorFrame{
self:diffusebottomedge( color("0.72,0.89,1,1") );
self:settext( Screen.String("Network OK") );
else
self:diffuse( color("0.75,0.75,0.75,1") );
self:diffuse( color("1,1,1,1") );
self:settext( Screen.String("Offline") );
end;
end;
@@ -20,7 +31,7 @@ local t = Def.ActorFrame{
if netConnected then
t[#t+1] = LoadFont("Common Normal") .. {
InitCommand=cmd(y,14;horizalign,left;zoom,0.5;diffuse,color("0.72,0.89,1,1"));
InitCommand=cmd(y,16;horizalign,left;zoom,0.5875;shadowlength,1;diffuse,color("0.72,0.89,1,1"));
BeginCommand=function(self)
self:settext( string.format(Screen.String("Connected to %s"), GetServerName()) );
end;