Show the Cursor?
by ben calder · in Torque Game Engine Advanced · 12/25/2008 (4:15 pm) · 3 replies
I would just like to now how I can display the cursor. I realise it is just 1 line of script, but I carnt find it. If anyone could point me in the right direction I would really appretiate it.
Thanks
Thanks
#2
12/28/2008 (2:00 pm)
Thanks Matt, I dont suppose you knpw which file and function i should declare this? I assume its playgui.cs
#3
and in client/ui/playgui.cs : noCursor = "0"; this also worked, I couldnt get Canvas.cursorOn(); to work though, I think i was just putting it in the wrong place. Is one way of calling the cursor more effective than the rest?
Also I am trying to set a custom cursor for the playgui from the menugui ( standard cursor for the mainmenu and a crosshair shape for the in game cursor) Do you have any idea how I can do this, but keep finding things for tgb and changing the cursor for object selection.
12/28/2008 (5:25 pm)
I got this to work in client/scripts/playgui.cs : schedule(0, 0, "showCursor");and in client/ui/playgui.cs : noCursor = "0"; this also worked, I couldnt get Canvas.cursorOn(); to work though, I think i was just putting it in the wrong place. Is one way of calling the cursor more effective than the rest?
Also I am trying to set a custom cursor for the playgui from the menugui ( standard cursor for the mainmenu and a crosshair shape for the in game cursor) Do you have any idea how I can do this, but keep finding things for tgb and changing the cursor for object selection.
Torque 3D Owner Matt Kronyak
RealmSource LLC
You may also be interested in lockMouse(true/false);