Adding Masque support
At Sorha's behest, I have been fixing Sorha's Quest Log; only one thing remains, and that is converting from the dead LibButtonFacade to Masque. Unfortunately, I am not following Masque's API in any way that does not involve tearing my hair out. I have looked at OpieMasque for inspiration, and it isn't helping.
This is what I have thus far. This is a mix of legacy code from LBF, and my attempts at updating. Code:
-- main chunk |
I don't see anything in the snippets you posted that actually register any buttons for Masque to skin?
|
I cross posted when I rediscovered the Masque official forum; it has the latest code snippets, and some images.
http://forums.wowace.com/showthread.php?t=19661&page=20 As for registering buttons for skinning, that is the part I'm stuck on. I figured out that I do need to create a skin, and register the two buttons provided, but the original code that had LibButtonFacade didn't leave me much to work with in terms of looking at other people's code. Way too many missing values or values that don't match up to Masque's API. |
Quote:
Code:
local Masque = LibStub("Masque", true) Code:
group:AddButton(button) For example, if your button's icon texture is referenced only as button.ShinyRainbowThing, you'd need to tell Masque that: Code:
local buttonData = { Code:
local buttonData = { Code:
local function OnSkinChanged(_, _, skin, gloss, backdrop, colors, fonts) Edit: You also don't need to do anything in your addon to store skin settings. Unlike its predecessors, Masque stores all that stuff itself; addons don't need to do anything in that area. |
All times are GMT -6. The time now is 02:45 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI