Created
August 2, 2012 20:49
-
-
Save Midiman/3240502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local screen; | |
if string.find(Var "LoadingScreen","MiniMenu") == nil then | |
if string.find(Var "LoadingScreen","Options") ~= nil and string.find(tostring(Screen.String("HeaderText")),"Options") == nil then | |
screen = tostring(Screen.String("HeaderText")).." Options"; | |
else | |
screen = tostring(Screen.String("HeaderText")); | |
end | |
else | |
screen = ""; | |
end | |
local cols = 0; | |
local widths = {}; | |
-- the func | |
for i=0,string.len(screen) do | |
t[#t+1] = LoadFont("handelgothic")..{ | |
InitCommand=cmd(vertalign,bottom;horizalign,left;y,SCREEN_TOP-30;;x,-140;diffuse,PlayerColor(PLAYER_1);diffusebottomedge,ColorLightTone(PlayerColor(PLAYER_1));diffusealpha,0;blend,Blend.Add;draworder,100;zoom,0.6;skewx,-0.08); | |
OnCommand=function(self,param) | |
self:stoptweening(); | |
self:settext(string.sub(screen, i, i)); | |
widths[i] = self:GetWidth()*self:GetZoom()*0.98; | |
self:x(-140+cols); | |
cols = cols + widths[i] ; | |
self:queuecommand("Animate"); | |
end; | |
AnimateCommand=cmd(sleep,i/12;decelerate,0.5;;addx,180;diffusealpha,0.25;y,SCREEN_TOP+34;bounceend,0.4;addx,-4;addy,-3;diffusealpha,1); | |
}; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment