more text width clamping

This commit is contained in:
AJ Kelly
2009-04-25 02:10:32 +00:00
parent 5333b30d21
commit cbc613508f
@@ -198,7 +198,7 @@ t[#t+1] = LoadActor( "stop icon" ) .. {
};
t[#t+1] = LoadFont("_venacti Bold 15px") .. {
InitCommand=cmd(horizalign,left;x,SCREEN_CENTER_X-14;y,SCREEN_CENTER_Y-24;settext,"xxxx";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");maxwidth,360);
InitCommand=cmd(horizalign,left;x,SCREEN_CENTER_X-14;y,SCREEN_CENTER_Y-24;settext,"xxxx";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");maxwidth,180);
SetCommand=function(self)
local s = "---";
local song = GAMESTATE:GetCurrentSong();
@@ -215,7 +215,7 @@ t[#t+1] = LoadFont("_venacti Bold 15px") .. {
DisplayLanguageChangedMessageCommand=cmd(playcommand,"Set");
};
t[#t+1] = LoadFont("_venacti Bold 15px") .. {
InitCommand=cmd(horizalign,right;x,SCREEN_CENTER_X+224;y,SCREEN_CENTER_Y-6;settext,"xxxx";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000"););
InitCommand=cmd(horizalign,right;x,SCREEN_CENTER_X+224;y,SCREEN_CENTER_Y-6;settext,"xxxx";shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#000000");maxwidth,156);
SetCommand=function(self)
local s = "---";
local song = GAMESTATE:GetCurrentSong();