WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Classic - AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=180)
-   -   Adding Masque support to an addon SamyTotemTimers (https://www.wowinterface.com/forums/showthread.php?t=58872)

Itsmaxyo 08-02-21 10:07 PM

Adding Masque support to an addon SamyTotemTimers
 
Hello, I was wanting to see if anyone could help or show me how to go about adding masque support to the addon SamyTotemTimers, simply allow the icons to change just like masque works for weakauras ect. https://www.curseforge.com/wow/addons/samytotemtimers --link to addon from curse.

https://imgur.com/a/CWmbV8L here is the icons as is. Would like to try to take the small borders away and allow the icons to change with masque. This is for tbc classic too btw. Would really appreciate any information.

Thanks

Kanegasi 09-29-21 03:09 PM

Here's the bare minimum if those buttons are standard button frames:

Lua Code:
  1. local Masque=LibStub("Masque",true)
  2. if Masque then
  3.     local group=Masque:Group("SamyTotemTimers")
  4.     group:AddButton(button1)
  5.     group:AddButton(button2)
  6. end

You can browse the Masque wiki if you need more options: https://github.com/SFX-WoW/Masque/wiki


All times are GMT -6. The time now is 02:27 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI