From 58d4d005e4db24dc09e8856a89e30cd3594bf714 Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Sun, 16 Nov 2025 20:00:40 +0400 Subject: [PATCH] fix: icon positions --- UI/BagFrame.lua | 19 +++ UI/BagFrame.xml | 380 ++++++++++++++++++++++++------------------------ 2 files changed, 211 insertions(+), 188 deletions(-) diff --git a/UI/BagFrame.lua b/UI/BagFrame.lua index 89cc8ae..6b12d22 100644 --- a/UI/BagFrame.lua +++ b/UI/BagFrame.lua @@ -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 diff --git a/UI/BagFrame.xml b/UI/BagFrame.xml index 5b19eeb..66a0bd1 100644 --- a/UI/BagFrame.xml +++ b/UI/BagFrame.xml @@ -60,7 +60,197 @@ - + + + + + + + + + + + + + @@ -83,193 +273,7 @@ - - - - - - - - - - - +