From f589757485e72ece0fc5e08f3e9bc63cac7605b4 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 7 May 2016 19:39:48 -0400 Subject: Images added to gravestone and combinations menu now gets images from resources --- gamemode/client/cl_inventory.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gamemode/client/cl_inventory.lua') 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 -- cgit v1.2.3-70-g09d2