summaryrefslogtreecommitdiff
path: root/gamemode/client/cl_inventory.lua
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-07 19:39:48 -0400
committerScott <scotth0828@gmail.com>2016-05-07 19:39:48 -0400
commitf589757485e72ece0fc5e08f3e9bc63cac7605b4 (patch)
tree4ee6f172ebd1260864335b44372b8945f9e2291b /gamemode/client/cl_inventory.lua
parent0a134b81cc62e25cdf1e94f014b5c460e14c4dd1 (diff)
downloadgmstranded-f589757485e72ece0fc5e08f3e9bc63cac7605b4.tar.gz
gmstranded-f589757485e72ece0fc5e08f3e9bc63cac7605b4.tar.bz2
gmstranded-f589757485e72ece0fc5e08f3e9bc63cac7605b4.zip
Images added to gravestone and combinations menu now gets images from resources
Diffstat (limited to 'gamemode/client/cl_inventory.lua')
-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 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