Changing the cursor in realtime
by bentgarney · in Torque Game Builder · 04/03/2005 (11:06 am) · 2 replies
#2
These are functions in "common\client\cursor.cs" and add a little extra functionality. You can always access a host of functions directly via the Canvas.
If you look in "cursor.cs", you'll see some functionality that you're probably already familiar with and it's always good to see how it works.
Good Luck,
- Melv.
04/03/2005 (11:18 am)
No problem, use...cursorOff(); cursorOn();
These are functions in "common\client\cursor.cs" and add a little extra functionality. You can always access a host of functions directly via the Canvas.
Canvas.cursorOn(); Canvas.cursorOff();
If you look in "cursor.cs", you'll see some functionality that you're probably already familiar with and it's always good to see how it works.
Good Luck,
- Melv.
Associate Melv May
new GuiCursor(robsCoolCursor1) { hotSpot = "1 1"; bitmapName = "./coolCursor1"; }; new GuiCursor(robsCoolCursor2) { hotSpot = "1 1"; bitmapName = "./coolCursor2"; }; Canvas.setCursor(robsCoolCursor1); ... Canvas.setCursor(robsCoolCursor2);There you go.
- Melv.