version: 2.1.5

This commit is contained in:
Vati
2026-03-18 02:59:01 +04:00
parent b482d3c10c
commit add444dbe5
5 changed files with 75 additions and 16 deletions
+1
View File
@@ -149,6 +149,7 @@ function DB:Initialize()
Guda_CharDB.settings.theme = "pfui" Guda_CharDB.settings.theme = "pfui"
Guda_CharDB.settings.hideBorders = true Guda_CharDB.settings.hideBorders = true
Guda_CharDB.settings.bgTransparency = 0 Guda_CharDB.settings.bgTransparency = 0
Guda_CharDB.settings.iconSpacing = 8
end end
end end
+1 -1
View File
@@ -2,7 +2,7 @@
## Title: Guda ## Title: Guda
## Notes: All-in-one bag and bank addon for World of Warcraft 1.12.1 (Turtle WoW) ## Notes: All-in-one bag and bank addon for World of Warcraft 1.12.1 (Turtle WoW)
## Author: Vati ## Author: Vati
## Version: 2.1.4 ## Version: 2.1.5
## SavedVariables: Guda_DB ## SavedVariables: Guda_DB
## SavedVariablesPerCharacter: Guda_CharDB ## SavedVariablesPerCharacter: Guda_CharDB
+4 -2
View File
@@ -530,7 +530,6 @@ local function AcquireLockIcon()
local icon = table.remove(lockIconPool) local icon = table.remove(lockIconPool)
if not icon then if not icon then
icon = CreateFrame("Frame", nil, UIParent) icon = CreateFrame("Frame", nil, UIParent)
icon:SetFrameStrata("HIGH")
icon:SetWidth(13) icon:SetWidth(13)
icon:SetHeight(13) icon:SetHeight(13)
@@ -556,6 +555,7 @@ local function ReleaseLockIcon(icon)
if icon then if icon then
icon:Hide() icon:Hide()
icon:ClearAllPoints() icon:ClearAllPoints()
icon:SetParent(UIParent)
table.insert(lockIconPool, icon) table.insert(lockIconPool, icon)
end end
end end
@@ -577,6 +577,7 @@ local function UpdateLockIcon(button, iconSize)
if not button.lockIcon then if not button.lockIcon then
button.lockIcon = AcquireLockIcon() button.lockIcon = AcquireLockIcon()
end end
button.lockIcon:SetParent(button)
local lockSize = math.max(8, math.min(12, iconSize * 0.35 - 3)) local lockSize = math.max(8, math.min(12, iconSize * 0.35 - 3))
button.lockIcon:SetWidth(lockSize) button.lockIcon:SetWidth(lockSize)
button.lockIcon:SetHeight(lockSize) button.lockIcon:SetHeight(lockSize)
@@ -612,7 +613,6 @@ local function AcquirePinIcon()
local icon = table.remove(pinIconPool) local icon = table.remove(pinIconPool)
if not icon then if not icon then
icon = CreateFrame("Frame", nil, UIParent) icon = CreateFrame("Frame", nil, UIParent)
icon:SetFrameStrata("HIGH")
icon:SetWidth(13) icon:SetWidth(13)
icon:SetHeight(13) icon:SetHeight(13)
@@ -638,6 +638,7 @@ local function ReleasePinIcon(icon)
if icon then if icon then
icon:Hide() icon:Hide()
icon:ClearAllPoints() icon:ClearAllPoints()
icon:SetParent(UIParent)
table.insert(pinIconPool, icon) table.insert(pinIconPool, icon)
end end
end end
@@ -655,6 +656,7 @@ local function UpdatePinIcon(button, iconSize)
if not button.pinIcon then if not button.pinIcon then
button.pinIcon = AcquirePinIcon() button.pinIcon = AcquirePinIcon()
end end
button.pinIcon:SetParent(button)
local pinSize = math.max(10, math.min(14, iconSize * 0.35)) local pinSize = math.max(10, math.min(14, iconSize * 0.35))
button.pinIcon:SetWidth(pinSize) button.pinIcon:SetWidth(pinSize)
button.pinIcon:SetHeight(pinSize) button.pinIcon:SetHeight(pinSize)
+63 -13
View File
@@ -259,8 +259,17 @@ function QuestItemBar:Update()
button.slotID = nil button.slotID = nil
local icon = getglobal(button:GetName() .. "IconTexture") local icon = getglobal(button:GetName() .. "IconTexture")
icon:SetTexture("Interface\\Buttons\\UI-EmptySlot") local slotStyle = "rounded"
icon:SetVertexColor(0.5, 0.5, 0.5, 0.5) if addon.Modules and addon.Modules.Theme then
slotStyle = addon.Modules.Theme:GetSlotStyle()
end
if slotStyle == "square" then
icon:SetTexture("Interface\\Buttons\\WHITE8x8")
icon:SetVertexColor(0.05, 0.05, 0.05, 0.5)
else
icon:SetTexture("Interface\\Buttons\\UI-EmptySlot")
icon:SetVertexColor(0.5, 0.5, 0.5, 0.5)
end
local countText = getglobal(button:GetName() .. "Count") local countText = getglobal(button:GetName() .. "Count")
countText:Hide() countText:Hide()
@@ -324,18 +333,44 @@ function QuestItemBar:Update()
end end
-- Scale border proportionally (64/37 is the standard ratio for WoW item buttons) -- Scale border proportionally (64/37 is the standard ratio for WoW item buttons)
local borderSize = buttonSize * 64 / 37 local slotStyle = "rounded"
if addon.Modules and addon.Modules.Theme then
slotStyle = addon.Modules.Theme:GetSlotStyle()
end
local normalTex = getglobal(button:GetName() .. "NormalTexture") local normalTex = getglobal(button:GetName() .. "NormalTexture")
if normalTex then if slotStyle == "square" then
normalTex:SetWidth(borderSize) -- Hide rounded border in pfUI mode
normalTex:SetHeight(borderSize) button:SetNormalTexture("")
if normalTex then
normalTex:SetTexture(nil)
normalTex:Hide()
end
-- Crop icon for pfUI style
if icon then
icon:SetTexCoord(.08, .92, .08, .92)
end
else
local borderSize = buttonSize * 64 / 37
if normalTex then
normalTex:SetWidth(borderSize)
normalTex:SetHeight(borderSize)
end
end end
-- Resize empty slot background -- Resize empty slot background
local emptyBg = getglobal(button:GetName() .. "_EmptySlotBg") local emptyBg = getglobal(button:GetName() .. "_EmptySlotBg")
if emptyBg then if emptyBg then
emptyBg:SetWidth(buttonSize) if slotStyle == "square" then
emptyBg:SetHeight(buttonSize) emptyBg:SetTexture("Interface\\Buttons\\WHITE8x8")
emptyBg:SetVertexColor(0.05, 0.05, 0.05, 1)
emptyBg:ClearAllPoints()
emptyBg:SetPoint("TOPLEFT", button, "TOPLEFT", 0, 0)
emptyBg:SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", 0, 0)
else
emptyBg:SetWidth(buttonSize)
emptyBg:SetHeight(buttonSize)
end
end end
-- Update visual overlays (cooldown, etc) -- Update visual overlays (cooldown, etc)
@@ -562,12 +597,27 @@ function QuestItemBar:UpdateFlyout(parent)
btnIcon:SetHeight(buttonSize) btnIcon:SetHeight(buttonSize)
end end
-- Scale border proportionally (64/37 is the standard ratio for WoW item buttons) -- Scale or hide border based on theme
local borderSize = buttonSize * 64 / 37
local btnNormalTex = getglobal(btn:GetName() .. "NormalTexture") local btnNormalTex = getglobal(btn:GetName() .. "NormalTexture")
if btnNormalTex then local flyoutSlotStyle = "rounded"
btnNormalTex:SetWidth(borderSize) if addon.Modules and addon.Modules.Theme then
btnNormalTex:SetHeight(borderSize) flyoutSlotStyle = addon.Modules.Theme:GetSlotStyle()
end
if flyoutSlotStyle == "square" then
btn:SetNormalTexture("")
if btnNormalTex then
btnNormalTex:SetTexture(nil)
btnNormalTex:Hide()
end
if btnIcon then
btnIcon:SetTexCoord(.08, .92, .08, .92)
end
else
local borderSize = buttonSize * 64 / 37
if btnNormalTex then
btnNormalTex:SetWidth(borderSize)
btnNormalTex:SetHeight(borderSize)
end
end end
-- Resize empty slot background -- Resize empty slot background
+6
View File
@@ -58,7 +58,13 @@ function Guda_SettingsPopup_OnLoad(self)
"Ctrl + Right Click on any item to lock/unlock it.\n" .. "Ctrl + Right Click on any item to lock/unlock it.\n" ..
"Locked items cannot be sold at vendors, deleted, or disenchanted.\n" .. "Locked items cannot be sold at vendors, deleted, or disenchanted.\n" ..
"Equipment set items are automatically protected.\n" .. "Equipment set items are automatically protected.\n" ..
"Ctrl + Right Click a set item to toggle its protection.\n" ..
"A lock icon appears on the bottom-right corner.\n\n" .. "A lock icon appears on the bottom-right corner.\n\n" ..
"|cffffd100Pin Slot:|r\n" ..
"Alt + Right Click on any bag slot to pin/unpin it.\n" ..
"Pinned slots are skipped during sorting.\n" ..
"The pin stays on the slot, not the item.\n" ..
"A pin icon appears on the top-left corner.\n\n" ..
"|cffffd100Moving Bars:|r\n" .. "|cffffd100Moving Bars:|r\n" ..
"Shift + Left Click and drag any item on the Quest Item Bar or Tracked Item Bar to move the bar.\n" "Shift + Left Click and drag any item on the Quest Item Bar or Tracked Item Bar to move the bar.\n"
instructions:SetText(text) instructions:SetText(text)