196
Technical forum / Re: Center Caption Window
« on: December 09, 2005, 09:26:53 AM »
Perfect. Thank you.
Forum rules - please read before posting, it can save you a lot of time.
INVENTORY_BOX
{
ITEM_WIDTH = 42
ITEM_HEIGHT = 42
SPACING = 10
SCROLL_BY = 1
HIDE_SELECTED = TRUE
AREA { 0, 558, 800, 42 }
EXCLUSIVE = FALSE
; ALWAYS_VISIBLE = FALSE
WINDOW
{
X = 0
Y = 558
WIDTH = 800
HEIGHT = 42
IMAGE = "interface\inventory_background_place_holder.jpg"
SCRIPT = "interface\inventory.script"
}
}
on "LeftClick"
{
for(var i=10; i>=1; i=i-1)
{
actor.AlphaColor = MakeRGBA(255, 255, 255, 25*i);
Sleep(100);
}
actor.AlphaColor = MakeRGBA(255, 255, 255, 0);
actor.GoTo(Scene.MouseX, Scene.MouseY);
for(i=1; i<=10; i=i+1)
{
actor.AlphaColor = MakeRGBA(255, 255, 255, 25*i);
Sleep(100);
}
actor.AlphaColor = MakeRGBA(255, 255, 255, 255);
}
function GoToObject()
{
var ActorFade = Game.LoadActor("actors\my_actor\my_actor.actor");
for(var i=1; i=>10; i=i+1)
{
? ActorFade.AlphaColor = MakeRGB(255, 255, 255, 25*i);
? Sleep(100);
}
ActorFade.AlphaColor = MakeRGB(255, 255, 255, 0);
actor.SkipTo(696, 523);
actor.Direction = DI_UP;
}
I guess you could start a second game by calling game.exe from within a script and then shut down the original game using Game.QuitGame()...