Well I'm just looking through the code and seeing loads of things I've written lol.
function Blota_Notification::step(%this)
{
if(%this.state $= "down")
{
//echo(%this.window.position);
if(getWord(%this.window.position,1) >= 0)
{
//echo("DONE" SPC %this.window.position);
if(%this.holdTime < 0)
{
%this.window.position = "0 0";
%this.state = "done";
return;
}
%this.window.position = "0 0";
%this.state = "wait";
%this.moveAnim = %this.schedule(%this.holdTime,"step");
return;
}
%this.window.position = vectorAdd(%this.window.position,"0 1");
%this.moveAnim = %this.schedule(1,"step");
}
else if(%this.state $= "wait")
{
%this.state = "up";
%this.step();
}
else if(%this.state $= "up")
{
//echo(%this.window.position);
if(getWord(%this.window.position,1) <= (getWord(%this.canvas.extent,1)-(getWord(%this.window.extent,1)*2)))
{
//echo("DONE" SPC %this.window.position);
%this.window.position = getWord(%this.canvas.extent,0) SPC "0";
%this.state = "done";
%this.step();
return;
}
%this.window.position = vectorSub(%this.window.position,"0 1");
%this.moveAnim = %this.schedule(1,"step");
}
else if(%this.state $= "done")
{
//echo("ELSE IF STATE DOWN");
%y = getWord(%this.canvas.position,1);
%this.canvas.delete();
for(%i=0;%i<Blota_NotificationManager.getCount();%i++)
{
%notification = Blota_NotificationManager.getObject(%i);
if(%notification == %this)
{
return;
}
if(!isObject(%notification.canvas))
{
return;
}
if(getWord(%notification.canvas.position,1) $= "25")
{
//don't shift
}
else if(%i == 1)
{
if(%this.size $= "large")
{
%notification.canvas.shift(0,-96);
}
else if(%this.size $= "small")
{
%notification.canvas.shift(0,-25);
}
}
else
{
if(%lastNotif.size $= "large")
{
%notification.canvas.shift(0,-96);
}
else if(%lastNotif.size $= "small")
{
%notification.canvas.shift(0,-25);
}
}
%lastNotif = %notification;
//if(!isObject(%notification.canvas))
//{
// echo("NO CANVAS DUMBO");
// continue;
//}
//if(getWord(%notification.canvas.position,1) < %y)
//{
// echo("SHIFTING");
// %notification.canvas.shift(0,-106);
//}
}
%this.delete();
}
}
function RTBCC_Notification::step(%this)
{
if(%this.state $= "left")
{
if(getWord(%this.window.position,0) <= 0)
{
if(%this.holdTime < 0)
{
%this.window.position = "0 0";
%this.state = "done";
return;
}
%this.window.position = "0 0";
%this.state = "wait";
%this.moveAnim = %this.schedule(%this.holdTime,"step");
return;
}
%this.window.position = vectorSub(%this.window.position,"10 0");
%this.moveAnim = %this.schedule(10,"step");
}
else if(%this.state $= "wait")
{
%this.state = "right";
%this.step();
}
else if(%this.state $= "right")
{
if(getWord(%this.window.position,0) >= getWord(%this.canvas.extent,0))
{
%this.window.position = getWord(%this.canvas.extent,0) SPC "0";
%this.state = "done";
%this.step();
return;
}
%this.window.position = vectorAdd(%this.window.position,"10 0");
%this.moveAnim = %this.schedule(10,"step");
}
else if(%this.state $= "done")
{
%y = getWord(%this.canvas.position,1);
%this.canvas.delete();
for(%i=0;%i<RTBCC_NotificationManager.getCount();%i++)
{
%notification = RTBCC_NotificationManager.getObject(%i);
if(!isObject(%notification.canvas))
continue;
if(getWord(%notification.canvas.position,1) < %y)
%notification.canvas.shift(0,50);
}
%this.delete();
}
}
Like come on, make an effort.