fix: icon positions

This commit is contained in:
Salikh Gurgenidze
2025-11-16 20:00:40 +04:00
parent 7e980c1d21
commit 58d4d005e4
2 changed files with 211 additions and 188 deletions
+19
View File
@@ -13,6 +13,25 @@ local itemButtons = {}
-- Global click catcher for clearing search focus
local clickCatcher = nil
-- Get player race icon path (using racial ability icons)
function Guda_GetPlayerRaceIcon()
local _, race = UnitRace("player")
-- Use racial ability icons that exist in vanilla
local raceIcons = {
Human = "Interface\\Icons\\Spell_Magic_PolymorphPig",
Dwarf = "Interface\\Icons\\Spell_Shadow_UnholyFrenzy",
NightElf = "Interface\\Icons\\Spell_Nature_Invisibility",
Gnome = "Interface\\Icons\\Ability_Repair",
Orc = "Interface\\Icons\\Ability_Racial_BloodRage",
Undead = "Interface\\Icons\\Spell_Shadow_RaiseDead",
Tauren = "Interface\\Icons\\Ability_Thunderclap",
Troll = "Interface\\Icons\\Ability_Racial_Avatar",
}
return raceIcons[race] or "Interface\\Icons\\INV_Misc_GroupNeedMore"
end
-- OnLoad
function Guda_BagFrame_OnLoad(self)
-- Set up search box placeholder