diff options
| author | Scott <scotth0828@gmail.com> | 2016-05-05 22:42:51 -0400 |
|---|---|---|
| committer | Scott <scotth0828@gmail.com> | 2016-05-05 22:42:51 -0400 |
| commit | 26f185f8f83667cb2a2d4dc45559ac91d0fcd36c (patch) | |
| tree | 932930fa8fa19dfc536875963a0cfba4feae28fe /gamemode/client | |
| parent | 7fbe965805c7e54468c299d157e1d28c911e2579 (diff) | |
| download | gmstranded-26f185f8f83667cb2a2d4dc45559ac91d0fcd36c.tar.gz gmstranded-26f185f8f83667cb2a2d4dc45559ac91d0fcd36c.tar.bz2 gmstranded-26f185f8f83667cb2a2d4dc45559ac91d0fcd36c.zip | |
Added medicine as a resource and added images to combinations menu
Diffstat (limited to 'gamemode/client')
| -rw-r--r-- | gamemode/client/cl_inventory.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua index 076dd2a..d3d10be 100644 --- a/gamemode/client/cl_inventory.lua +++ b/gamemode/client/cl_inventory.lua @@ -418,14 +418,14 @@ function PANEL:Init() surface.SetFont( "ButtonText" ) surface.SetTextColor( 255,255,255 ) - surface.SetTextPos( (slot:GetWide()/2) - ( surface.GetTextSize(k)/2 ), (slot:GetTall()/2) + (select( 2, surface.GetTextSize( k ) )/2) ) + surface.SetTextPos( (slot:GetWide()/2) - ( surface.GetTextSize(k)/2 ), (slot:GetTall()/2) + (select( 2, surface.GetTextSize( k ) )-5) ) surface.DrawText( v.Name ) end local img = vgui.Create("DImage", slot) - img:SetPos(0, 0) - img:SetSize(slot:GetWide(), slot:GetTall()-20) - img:SetImage("gms_icons/gms_weapon.png") + 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 i=i+1 |
