#Create Icon with Lua Code
12 messages · Page 1 of 1 (latest)
The XY problem is asking about your attempted solution rather than your actual problem.
Say what you want to achieve
That is what I wanted to achieve, I wanted to know if I could write lua code to create or modify an icon
The whole addon is an addon for creating and modifying things like icons.
A Custom Trigger is the way you use code to do that.
is there an example of a custom trigger that would create an icon?
Make a new Aura with the Icon Aura Type. Have a Custom Trigger return true.
Again, if you want to achieve something specific then talk about that.
This is what I mean, in your example you created a new aura with the type icon manually - I wanted to know if I could do that in the custom function to create or modify multiple at once from within 1 object
No
well TSU, but still it's impossible to help you if you aren't trying to explain what you want to achieve
I assumed they meant a single base Aura which creates different Aura Types based on code.
Reading again you're probably right, but this is frustratingly ambiguous.