From 1d8f917f412e2ff30497023e375f6e2d46346c24 Mon Sep 17 00:00:00 2001 From: rawoil Date: Tue, 17 Aug 2021 09:25:12 +0800 Subject: [PATCH] adjust rbag options --- rBag/core.lua | 2 +- rBag/init.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rBag/core.lua b/rBag/core.lua index 3b1e228..97dd169 100644 --- a/rBag/core.lua +++ b/rBag/core.lua @@ -288,7 +288,7 @@ function Bags:SlotUpdate(id, button) if L.C.showQuest and QuestItem then button.Backdrop:SetBackdropBorderColor(1, 1, 0) else - if Rarity then + if Rarity and Rarity > LE_ITEM_QUALITY_COMMON then button.Backdrop:SetBackdropBorderColor(GetItemQualityColor(Rarity)) else button.Backdrop:SetBackdropBorderColor(unpack(L.C.button.backdrop.borderColor)) diff --git a/rBag/init.lua b/rBag/init.lua index 1178fca..f00dfc1 100644 --- a/rBag/init.lua +++ b/rBag/init.lua @@ -17,7 +17,8 @@ local copyTable = rLib.CopyTable --load the default button theme local soltButtonConfig = copyTable(rButtonTemplate_Zork_ActionButtonConfig) soltButtonConfig.backdrop.edgeSize = 1 -soltButtonConfig.backdrop.insets = {left=0,right=0,top=0,bottom=0} +soltButtonConfig.backdrop.tileSize = 16 +soltButtonConfig.backdrop.insets = {left=1,right=1,top=1,bottom=1} soltButtonConfig.backdrop.points = {{"TOPLEFT",0,0},{"BOTTOMRIGHT",0,0}} soltButtonConfig.border.alpha = 0 soltButtonConfig.normalTexture.file = "" -- 1.7.9.5