Thread Tools Display Modes
07-24-16, 01:51 PM   #1
Banknorris
A Chromatic Dragonspawn
 
Banknorris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 153
GetMacroInfo() second return

So GetMacroInfo() used to return the macro complete texture path icon like

"INTERFACE\\ICONS\\INV_MISC_QUESTIONMARK"

But now it returns a number. I tried to figure it out by myself reading the BlizzardInterfaceCode but just didn't get it. Anyone knows how do I convert the current GetMacroInfo() second return (a number) into the good and old texture file path?

Thanks.

PS.: I actually talking about live (7.0.3) not Beta.
__________________
"In this world nothing can be said to be certain, except that fractional reserve banking is a Ponzi scheme and that you won't believe it." - Mandrill

Last edited by Banknorris : 07-25-16 at 02:46 AM.
 
07-24-16, 02:22 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
For the shortened verion see

Slightly longer version see
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
 
07-24-16, 02:59 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Take a look in the macro library inside Bear in Mind if you want to see only the ICON folder files pulled from that long list of textures.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

 
07-24-16, 10:07 PM   #4
TimothyLuke
A Fallenroot Satyr
 
TimothyLuke's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 24
This has driving me nuts. So what do i pass AceGUI Icon? If I give it a texture ID i get a green box.
__________________
BattleNet: TimothyLuke#1860
WowLazyMacros/Curse/GitHub/WowInterface: TimothyLuke

Most Commonly Played Characters:
Huldrych@Dath'Remar
Draik@Nagrand
 
07-26-16, 04:18 PM   #5
Banknorris
A Chromatic Dragonspawn
 
Banknorris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 153
Thanks. I found out this is not a big deal for my particular case at least. I don't really need the texture paths, I just need to recreate macros so since CreateMacro accept the texture ids it is just fine.

Just for sake of community knowledge, when you create a macro with texture id 134400 (texture id of the "?") the macro icon will not reflect the spell (or item) the macro will cast (or use). Instead you need to use the old and good "INV_MISC_QUESTIONMARK".

so use

CreateMacro("macro1","INV_MISC_QUESTIONMARK","/cast something")

instead of

CreateMacro("macro1",134400,"/cast something")
__________________
"In this world nothing can be said to be certain, except that fractional reserve banking is a Ponzi scheme and that you won't believe it." - Mandrill
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » GetMacroInfo() second return

Thread Tools
Display Modes

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