[CF 1288] Enable Lua in DogTag
tmw-issue-import opened this issue ยท 3 comments
Can we add lua in dogtag like Lua:("UnitGetTotalHealAbsorbs('player')")?
I need the amount but cant write it in tmw's icon text now.
Posted by CurseForge user kingofpowers | Imported from CurseForge issue #1288 | Raw
Its a really slippery slope when libraries will start executing arbitrary code. I'm going to say no. If you know Lua, why not write the tag yourself in a TMW Lua snippet? DogTag is well documented. You can stick it in the TMW namespace.
Posted by CurseForge user Cybeloras
What is the difference between this and DogTag's Lua? Maybe I need is only "more example in TMW's Lua page" because I dont know how to run code and change a icon's DogTag by lua.
Posted by CurseForge user kingofpowers
You wouldn't be changing an icon's DogTags. You would be creating your own tag with DogTag's API (https://www.wowace.com/addons/libdogtag-3-0/pages/api/lib-dog-tag-3-0-lua/#w_add-tag-namespace-tag-data) that you could then use in your icon.
Not sure what you mean by "DogTag's Lua". DogTag is its own language that is compiled into Lua. It may share some syntactical similarities, but it is fundamentally its own language.
Edited Sep 10, 2016
Posted by CurseForge user Cybeloras