diff options
Diffstat (limited to 'gamemode/client')
| -rw-r--r-- | gamemode/client/cl_inventory.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua index c4e1134..0592899 100644 --- a/gamemode/client/cl_inventory.lua +++ b/gamemode/client/cl_inventory.lua @@ -406,9 +406,15 @@ function PANEL:Init() local img = vgui.Create("DImage", slot) img:SetPos(20, 10) img:SetSize(slot:GetWide()-40, slot:GetTall()-40) - if (v.Icon != nil) then img:SetImage(v.Icon) else img:SetImage("vgui/avatar_default") end - - + // for some reason has stone twice? v + for j,k in SortedPairs(v.Results) do + if (j != "Stone") then + icon = GMS.GetResourceByName(j).Icon + if (icon != nil && icon != "test.png") then img:SetImage(icon) else img:SetImage("vgui/avatar_default") end + end + end + + i=i+1 end |
