287
« on: February 10, 2005, 01:54:22 PM »
i am trying but no sucsess ...
heres my window file:
WINDOW
{
NAME = "info"
SCRIPT = "interface\menu\willkommen.script"
MENU = TRUE
BUTTON
{
NAME = "blatt"
X = -625
Y = -475
IMAGE ="interface\menu\blatt_willkommen.png"
PARENT_NOTIFY = TRUE
}
BUTTON
{
NAME = "t1"
X = -625
Y = -475
IMAGE ="interface\menu\tile_1.png"
PARENT_NOTIFY = TRUE
}
}
and here is the script;
#include "scripts\base.inc"
#include "scripts\keys.inc"
self.xResult = false;
var Button = this.GetControl("t1");
Button.Scalable = true;
Button.AlphaColor = RGB(255,255,255,0);
Button.Scale =0;
for ( var z = 1; z<=255; z=z+5)
{
Button.AlphaColor = RGB(255,255,255,z);
Button.Scale =z/2.55;
Sleep (50);
}
i want the button "t1" to zoom and fade in , but it is always there at 100% nothings changing ...
any ideas ??