Hi all,
According to the docs, SetCursor changes the standard cursor of a window object. I can't get that to work and I've added my experimental code below. Game.SetActiveCursor also has no effect. I thought I'd followed the docs and Metamorphium's example (
http://forum.dead-code.org/index.php?topic=2700.0) but no matter what I do, the cursor does not change from that set by the items.items entry.
Got to accept that I may be doing something really daft, (I'm rather hoping that I am) but also beginning to suspect it may be a bug. I've used similar constructs successfuly before on other active objects but never on a window. So is a window not really an active object or can anybody point out my error?
// SlatePart1 window
while(true)
{
if(Game.ActiveObject != null)
{
var w = Game.ActiveObject;
Game.Msg("Object is "+w.Name);
var y = Game.SelectedItem;
Game.Msg("Selected is "+y.Name);
if(w.Name == "SlatePart1")
{
if(y.Name == "SlatePart2")
{
Game.Msg("Slate Two");
// w.SetCursor("items\SlatePart2.png");
Game.SetActiveCursor("sprites\!Items\YellowBowl.sprite");
}
}
}
Sleep(20);
}
In the example above, all conditions are met, as shown by the Game.Msg("Slate Two"); displaying. So I believe the cursor should change, but it doesn't.
Hope you can help chaps.
Cheers