Well, the idea i had was more like in practice to use 2 different buttons and only show the one i need (being it place mark or cancel mark). If i place them in the same position, they will look like a single one - but i will use my own textures and not the Blizz ones.
Originally Posted by zorker
These functions will make it manageble imho. Your addon would look truly awesome if it ends being a tidy minimal single row of buttons. Mine will be tied to a slash command i assume, because i don't like much the mouseover thing.
Raid markers are needed before the fight begins - add a combat check so accidental mouseovering won't bring it out (it covers a very little space, but whatever).
EDIT: wtf, we just need a single script on click (pseudo-code)
This way also the icon on button will update reflecting what clickis on button will trigger.
if IsRaidMarkerActive(index) then
--show mark icon, hide delete icon code here
--show delete icon, hide mark icon code here