Quantcast

adjust options

rawoil [07-06-21 - 00:59]
adjust options
Filename
rBag/core.lua
rBag/init.lua
diff --git a/rBag/core.lua b/rBag/core.lua
index 7765177..cca958a 100644
--- a/rBag/core.lua
+++ b/rBag/core.lua
@@ -508,7 +508,7 @@ function Bags:UpdateAllBags()

 	NeedBagRefresh = false

-	self.Bag:SetHeight(((ButtonSize + ButtonSpacing) * (NumRows + 1) + 26 + (ButtonSpacing * 4)) - ButtonSpacing)
+	self.Bag:SetHeight(((ButtonSize + ButtonSpacing) * (NumRows + 1) + L.C.bag.extraHeight + (ButtonSpacing * 4)) - ButtonSpacing)
 end

 function Bags:UpdateAllBankBags()
@@ -601,7 +601,7 @@ function Bags:UpdateAllBankBags()

 	NeedBankRefresh = false

-	Bags.Bank:SetHeight(((ButtonSize + ButtonSpacing) * (NumRows + 1) + 40) - ButtonSpacing)
+	Bags.Bank:SetHeight(((ButtonSize + ButtonSpacing) * (NumRows + 1) + L.C.bank.extraHeight) - ButtonSpacing)
 end

 function Bags:OpenBag(id)
diff --git a/rBag/init.lua b/rBag/init.lua
index 70d4631..7809254 100644
--- a/rBag/init.lua
+++ b/rBag/init.lua
@@ -22,9 +22,9 @@ local mediapath = rLib.mediapath
 local cfg = {}

 cfg.icon = {
-    size = 32,
+    size = 36,
     spacing = 4,
-    columns = 8,
+    columns = 12,
 }

 cfg.sort     = {
@@ -52,11 +52,12 @@ cfg.backdrop = {

 cfg.bag = {
     point        = {"BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -34, 48},
-    extraHeight  = 16,
+    extraHeight  = 26,
 }

 cfg.bank = {
     point        = {"BOTTOMLEFT", UIParent, "BOTTOMLEFT", 34, 48},
+    extraHeight  = 40,
 }

 L.C = cfg
\ No newline at end of file