[CF 1491] Add a dynamic bar type
tmw-issue-import opened this issue ยท 3 comments
Will it be possible to have a bar type that has configurable min-max properties and tracks a counter (or a variable we can control with scripting)?
My thought is to allow hooks to create a UI component that we can control with LUA code. Examples could be a dynamic stagger bar, a dynamic absorb bar, more customizable resource tracking etc.
If such hooks already exist on a low level API - where can I start looking?
Posted by CurseForge user ariehg | Imported from CurseForge issue #1491 | Raw
You could create an icon type that can do this. https://github.com/ascott18/TellMeWhen/blob/master/Components/IconTypes/IconType_value/value.lua would be the best one to start from. (This is the "Resource Display" icon type. What you're describing would be best as a standalone icon type.)
Posted by CurseForge user Cybeloras
Thanks! I'll play around with it :)
edit - Played around!
I've gotten to this point: https://gist.github.com/arieh/ab07a6e128b249b1301f3bed87fa3e16
Once I'll streamline it a bit I will add it as a proper addon and publish it.
I believe a lot of questions that are being asked here (absorb bars, stagger bars) can be developed this tool, so I will try and come up with some examples for it. Once I publish I'll link to this issue.
Also - the codebase for this addon is amazing! Extremely well maintained and makes a ton of sense to navigate once you start to get your bearings :) Huge appreciation!
Edited May 9, 2018
Posted by CurseForge user ariehg
I have uploaded a new addon that includes these tools - https://wow.curseforge.com/projects/tellmewhen_script_tools
It also show examples on how to create dynamic absorb bars, stagger bars and DH soul tracking (just due to these issues being listed on the 1st page of the issue list :) )
I have some issues/questions to figure out, but will open on a different thread
Posted by CurseForge user ariehg