Macro Frame
Hi,
For some reason, when I add the following line, it causes my addon to crash. Code:
MacroFrame:SetScale(1.25); I have checked in game, and the following line works correctly, so I can't figure out why it's not working in my addon. Code:
/script MacroFrame:SetScale(1.25); |
The Macro editing frame is part of a Blizzard addon that is Load On Demeand ie. the MacroFrame isn't created until you type /macro. Running the script or the code in your addon before using /macro will cause an error.
You probably want to listen for the ADDON_LOADED event and if/when "Blizzard_MacroUI" is the addon loaded, then set the scale because the MacroFrame will have been created. |
That seems to be the issue.
Thanks! :banana: |
All times are GMT -6. The time now is 08:14 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI