From 77761c4555ccaf68def7f4f187dff6f4914323a3 Mon Sep 17 00:00:00 2001 From: Noshei <8866000+Noshei@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:01:31 -0700 Subject: [PATCH] 1.0.7 Updated to use Baganator Skins system Fixed issue that could cause fake log entries when items weren't cached --- Display.lua | 9 ---- Plugins/Plugins.lua | 50 +-------------------- Plugins/Plugins.xml | 14 +----- Warband-Bank-Log.lua | 102 ++++++++++++++++++++++++++++--------------- Warband-Bank-Log.toc | 2 +- 5 files changed, 70 insertions(+), 107 deletions(-) diff --git a/Display.lua b/Display.lua index 489ed6a..9c6add4 100644 --- a/Display.lua +++ b/Display.lua @@ -78,24 +78,15 @@ function WBL:InitializeDataProvider() end function WBL_API:Open() - if not WBL.Display.BaseFrame then - WBL:CreateDisplay() - end WBL.Display.BaseFrame:Show() WBL.Display.BaseFrame.Container.ScrollBox:SetScrollPercentage(100) end function WBL_API:Close() - if not WBL.Display.BaseFrame then - WBL:CreateDisplay() - end WBL.Display.BaseFrame:Hide() end function WBL_API:Toggle() - if not WBL.Display.BaseFrame then - WBL:CreateDisplay() - end if WBL.Display.BaseFrame:IsVisible() then WBL_API:Close() else diff --git a/Plugins/Plugins.lua b/Plugins/Plugins.lua index e1328e2..e2ef4c7 100644 --- a/Plugins/Plugins.lua +++ b/Plugins/Plugins.lua @@ -27,55 +27,9 @@ EventUtil.ContinueOnAddOnLoaded("Baganator", function() WBLButton.Icon:SetSize(30, 30) elseif Baganator.API.Skins.GetCurrentSkin() ~= "blizzard" then WBLButton:SetPoint("TOPLEFT", 1.5, -1.5) - WBLButton.Left:Hide() - WBLButton.Right:Hide() - WBLButton.Middle:Hide() - WBLButton:ClearHighlightTexture() - - Mixin(WBLButton, BackdropTemplateMixin) - WBLButton:SetBackdrop({ - bgFile = "Interface/AddOns/Baganator/Assets/Skins/dark-backgroundfile", - edgeFile = "Interface/AddOns/Baganator/Assets/Skins/dark-edgefile", - tile = true, - tileEdge = true, - tileSize = 32, - edgeSize = 6, - }) - local color = { r = 0, g = 0, b = 0 } - WBLButton:SetBackdropColor(color.r, color.g, color.b, 0.5) - WBLButton:SetBackdropBorderColor(color.r, color.g, color.b, 1) - WBLButton:HookScript("OnEnter", function() - if WBLButton:IsEnabled() then - local r, g, b = 0.3, 0.3, 0.3 - WBLButton:SetBackdropColor(r, g, b, 0.8) - WBLButton:SetBackdropBorderColor(r, g, b, 1) - end - end) - WBLButton:HookScript("OnMouseDown", function() - if WBLButton:IsEnabled() then - local r, g, b = 0.2, 0.2, 0.2 - WBLButton:SetBackdropColor(r, g, b, 0.8) - WBLButton:SetBackdropBorderColor(r, g, b, 1) - end - end) - WBLButton:HookScript("OnMouseUp", function() - if WBLButton:IsEnabled() and WBLButton:IsMouseOver() then - local r, g, b = 0.3, 0.3, 0.3 - WBLButton:SetBackdropColor(r, g, b, 0.8) - WBLButton:SetBackdropBorderColor(r, g, b, 1) - end - end) - WBLButton:HookScript("OnLeave", function() - WBLButton:SetBackdropColor(color.r, color.g, color.b, 0.5) - WBLButton:SetBackdropBorderColor(color.r, color.g, color.b, 1) - end) - WBLButton:HookScript("OnDisable", function() - WBLButton:SetBackdropColor(color.r, color.g, color.b, 0.1) - end) - WBLButton:HookScript("OnEnable", function() - WBLButton:SetBackdropColor(color.r, color.g, color.b, 0.5) - end) + Baganator.Skins.AddFrame("IconButton", WBLButton) end + return WBLButton end Baganator.API.Skins.RegisterListener(CreateWBLButton) diff --git a/Plugins/Plugins.xml b/Plugins/Plugins.xml index 5466dc5..3a2937c 100644 --- a/Plugins/Plugins.xml +++ b/Plugins/Plugins.xml @@ -1,8 +1,7 @@ -