June 10, 2023, 03:51:12 am
Welcome, Guest. Please login or register.
149063 Posts in 18144 Topics- by 34531 Members - Latest Member: Frizian
Pages: [1]
  Print  
Author Topic: GetCursorInfo - nil function  (Read 6004 times)
Newbie
*
Posts: 13
View Profile
« on: June 17, 2018, 03:19:23 pm »

In the VG server GetCursorInfo is not available in the API? Was it never available in v1.12 or how can one get info about item dragged and dropped on my frame?

 
Logged
Sr. Member
****
Posts: 632
View Profile Email
« Reply #1 on: June 17, 2018, 04:01:25 pm »

In the VG server GetCursorInfo is not available in the API? Was it never available in v1.12 or how can one get info about item dragged and dropped on my frame?

 

Maybe that api isn't working but I'm sure there's another way.

Here's how you see if you have an item on your cursor.
Code:
hasItem = CursorHasItem()

And here's how you reset the cursor.
Code:
ResetCursor()

Check out the complete api listing @ wowprogramming.com for more info.
« Last Edit: June 17, 2018, 04:07:58 pm by Atreyyo » Logged

Newbie
*
Posts: 13
View Profile
« Reply #2 on: June 17, 2018, 05:21:11 pm »

Thank You for those, but since I don't know what's being dropped, then those commands are redundant.

And wowprogramming.com might have something regarding this but I don't have it, and http://vanilla-wow.wikia.com/wiki/World_of_Warcraft_API haven't really helped since they say nothing about not existing in vanilla.
Logged
Sr. Member
****
Posts: 632
View Profile Email
« Reply #3 on: June 17, 2018, 05:31:11 pm »

How are you putting stuff onto you cursor? What are you trying to do?
Logged

Newbie
*
Posts: 13
View Profile
« Reply #4 on: June 17, 2018, 05:32:33 pm »

The user will pick up an item from bags and drop on to my addon frame then i want to know id, name or link of the item.

Logged
Sr. Member
****
Posts: 632
View Profile Email
« Reply #5 on: June 17, 2018, 09:26:34 pm »

If I were you I would look at other addons, such as bag addons and see what code they use.
I bet you will find your answer there.
Logged

Newbie
*
Posts: 13
View Profile
« Reply #6 on: June 18, 2018, 12:42:49 pm »

Thx Atreyyo, i will look further and find a way, probably possible to store the item when drag is started at event ITEM_LOCKED_CHANGED
Logged
Pages: [1]
  Print  
 
Jump to: