Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-07-23, 03:07 PM   #1
Blandros
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Sep 2023
Posts: 13
GetActionInfo doesnt work properly?

Hi,

if i do in my addon:

Lua Code:
  1. if slot then
  2.     button.icon:SetTexture(GetActionTexture(slot))
  3.     button.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  4.     button.icon:Show()
  5.     button.slot = slot
  6.     print(GetActionInfo(slot))
  7. end

the print says:

macro 121
macro 122
item 156833
spell 116 spell
macro 122
macro 122
macro 122

But when i do:

Lua Code:
  1. if slot then
  2.     button.icon:SetTexture(GetActionTexture(slot))
  3.     button.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
  4.     button.icon:Show()
  5.     button.slot = slot
  6.     local body = GetActionInfo(slot)
  7.     print(body)
  8. end

the print says:

macro
macro
item
spell
nil
macro
macro
nil
nil
nil
nil
nil
nil
nil
nil
macro
nil
nil
why ?

I need the number of the macro..

Thank in advance!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » GetActionInfo doesnt work properly?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off