[CF 1426] Icon text label updated by Lua sciprt. Do-able?
tmw-issue-import opened this issue ยท 2 comments
Hi there,
I was trying to assign my raid member through a split mechanism. I attached a piece of Lua script to an icon which monitors raid1-40 on that split debuff, and upon display of icon, my script could essentially work out the assignment I need and have each player with this tmw /s the result.
The problem is /s is pretty stacked with melees, so my initial plan is try updating the text label on this TMW icon by my script, so it could show the result to player instead. But I am a bit clueless - is that even do-able first?
Any comment is much appreciated.
Posted by CurseForge user Procyon | Imported from CurseForge issue #1426 | Raw
There might be a better way, but how I do stuff like this is use the [Stacks] dogtag and then use lua in a notification to set the stack text with something like icon:SetInfo("stack,stackText",value,value)
Posted by CurseForge user canofbutter
There are definitely more correct ways to do this, but they would require a whole lot more work than just doing what canofbutter suggested.
You can set stack to whatever you want, stackText is all you really need for this (stack is used for things like min stacks/max stacks, while the text is strictly for display).
icon:SetInfo("stack,stackText", 0, "text to show on the icon through the [Stacks] tag")
Posted by CurseForge user Cybeloras