summaryrefslogtreecommitdiff
path: root/gamemode/client
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client')
-rw-r--r--gamemode/client/cl_inventory.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 9a19fa7..c178f4f 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