- Joined
- Feb 2, 2006
- Messages
- 1,589
Hi,
I was wondering if it is possible to fake the drag effect when right clicking and releasing an item in the inventory.
It changes the cursor and adds the icon of the item. I was just wondering if it is possible to retrieve the framehandle of the cursor and change it.
The following thread did not receive any real answer: Change cursor at runtime
Is it a frame or not?
Reading this tutorial: The Big UI-Frame Tutorial
I only found something like CursorSprite.
My idea is to add icon of the item as a frame and move the frame to the cursor position using
and
. Maybe I can somehow make it overlay the actual cursor?
However, in Warcraft III the cursor changes its texture when taking an item. I will have to create two frames: one with the item icon and one with the changed cursor.
Any better ideas/solutions? Maybe some systems do already exist which do already provide this?
I was wondering if it is possible to fake the drag effect when right clicking and releasing an item in the inventory.
It changes the cursor and adds the icon of the item. I was just wondering if it is possible to retrieve the framehandle of the cursor and change it.
The following thread did not receive any real answer: Change cursor at runtime
Is it a frame or not?
Reading this tutorial: The Big UI-Frame Tutorial
I only found something like CursorSprite.
My idea is to add icon of the item as a frame and move the frame to the cursor position using
JASS:
BlzGetTriggerPlayerMousePosition
JASS:
EVENT_PLAYER_MOUSE_MOVE
However, in Warcraft III the cursor changes its texture when taking an item. I will have to create two frames: one with the item icon and one with the changed cursor.
Any better ideas/solutions? Maybe some systems do already exist which do already provide this?
Last edited: