refactory: frame helpers

This commit is contained in:
Salikh Gurgenidze
2025-12-28 02:33:52 +04:00
parent 6888e91cbc
commit ce99bc4fb7
4 changed files with 60 additions and 34 deletions
+9
View File
@@ -6,6 +6,15 @@ local addon = Guda
local BagFrame = {}
addon.Modules.BagFrame = BagFrame
-- Use centralized frame helpers for section headers and bag parents
function BagFrame:GetSectionHeader(index)
return Guda_GetSectionHeader("Guda_BagFrame", "Guda_BagFrame_ItemContainer", index)
end
function BagFrame:GetBagParent(bagID)
return Guda_GetBagParent("Guda_BagFrame", bagParents, bagID, "Guda_BagFrame_ItemContainer")
end
local currentViewChar = nil -- nil = current character
function BagFrame:GetCurrentViewChar()
return currentViewChar