From 33e52dc2f6c61a75cb6702d08eff994bf6d2fe1b Mon Sep 17 00:00:00 2001 From: parnic Date: Sat, 8 Nov 2014 01:07:57 -0600 Subject: [PATCH] - Switched from LibButtonFacade to Masque. (ticket #20) --- .pkgmeta | 1 - Breakables.lua | 11 ++++------- Breakables.toc | 2 +- embeds.xml | 1 - 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.pkgmeta b/.pkgmeta index f8c66a0..7359f5b 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -34,4 +34,3 @@ externals: libs/LibBabble-Inventory-3.0: url: svn://svn.wowace.com/wow/libbabble-inventory-3-0/mainline/trunk tag: latest - libs/LibButtonFacade: svn://svn.wowace.com/wow/buttonfacade/mainline/trunk/Libs/LibButtonFacade diff --git a/Breakables.lua b/Breakables.lua index 154e25b..94b3e05 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -1,7 +1,7 @@ local L = LibStub("AceLocale-3.0"):GetLocale("Breakables", false) Breakables = LibStub("AceAddon-3.0"):NewAddon("Breakables", "AceConsole-3.0", "AceEvent-3.0") local babbleInv = LibStub("LibBabble-Inventory-3.0"):GetLookupTable() -local LBF = LibStub("LibButtonFacade", true) +local LBF = LibStub("Masque", true) local lbfGroup @@ -128,7 +128,7 @@ function Breakables:OnInitialize() self:InitLDB() end -function Breakables:ButtonFacadeCallback(SkinID, Gloss, Backdrop, Group, Button, Colors) +function Breakables:ButtonFacadeCallback(Group, SkinID, Gloss, Backdrop, Colors, Disabled) if not Group then self.settings.SkinID = SkinID self.settings.Gloss = Gloss @@ -171,14 +171,11 @@ function Breakables:OnEnable() self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("Breakables") if LBF then - LBF:RegisterSkinCallback("Breakables", self.ButtonFacadeCallback, self) + LBF:Register("Breakables", self.ButtonFacadeCallback, self) lbfGroup = LBF:Group("Breakables") if lbfGroup then - lbfGroup:Skin(self.settings.SkinID, - self.settings.Gloss, - self.settings.Backdrop, - self.settings.Colors) + lbfGroup:ReSkin() end end diff --git a/Breakables.toc b/Breakables.toc index 0c14d13..98438c5 100644 --- a/Breakables.toc +++ b/Breakables.toc @@ -5,7 +5,7 @@ ## Notes: Tracks herbs/ore/items that can be broken into component pieces ## Version: @project-version@ (Revision: @project-revision@) ## SavedVariables: BreakablesDB -## OptionalDeps: Ace3, LibBabble-Inventory-3.0, ButtonFacade +## OptionalDeps: Ace3, LibBabble-Inventory-3.0, Masque ## X-Compatible-With: 40300 #@no-lib-strip@ diff --git a/embeds.xml b/embeds.xml index 342f3e4..3f5b576 100644 --- a/embeds.xml +++ b/embeds.xml @@ -10,5 +10,4 @@ - \ No newline at end of file