if we're centering the menu, let's center the bitmaptext objects. also, xml -> lua

This commit is contained in:
AJ Kelly
2007-04-02 16:54:44 +00:00
parent 0bf8bbfb88
commit 3608aaa0c5
2 changed files with 12 additions and 1 deletions
@@ -0,0 +1,11 @@
local children = {
LoadFont("", "blaster") ..{
Text=THEME:GetString( 'ScreenTitleMenu', ThisGameCommand:GetText() );
InitCommand=cmd(horizalign,center;shadowlength,0);
GainFocusCommand=cmd(stoptweening;diffuseshift;effectperiod,0.5;effectcolor1,0.5,1,0.5,1;effectcolor2,0.25,0.5,0.25,1;);
LoseFocusCommand=cmd(stoptweening;stopeffect);
DisabledCommand=cmd(diffuse,0.5,0.5,0.5,1);
};
};
return Def.ActorFrame { children = children };
+1 -1
View File
@@ -101,7 +101,7 @@ PerChoiceScrollElement=false
ScrollerTransform=function(self,offset,itemIndex,numItems) self:y(22*offset) end
ScrollerSecondsPerItem=0
ScrollerNumItemsToDraw=20
ScrollerX=SCREEN_CENTER_X-100
ScrollerX=SCREEN_CENTER_X
ScrollerY=SCREEN_CENTER_Y+40
ScrollerOnCommand=
ScrollerOffCommand=