summaryrefslogtreecommitdiff
path: root/gamemode/client/cl_inventory.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client/cl_inventory.lua')
-rw-r--r--gamemode/client/cl_inventory.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 92c3229..2534b91 100644
--- a/gamemode/client/cl_inventory.lua
+++ b/gamemode/client/cl_inventory.lua
@@ -22,9 +22,10 @@ local buttons = {
txt = "Combinations",
admin = false,
},
+ -- Set to false once complete
{
txt = "Equipment",
- admin = false,
+ admin = true,
},
{
txt = "Props",
@@ -180,7 +181,8 @@ function PANEL:Init()
surface.SetTextPos( (titlePanel:GetWide()/2) - ( surface.GetTextSize(gmod.GetGamemode().Name)/2 ), (titlePanel:GetTall()/2) - (select( 2, surface.GetTextSize( gmod.GetGamemode().Name ) )/2) )
surface.DrawText( gmod.GetGamemode().Name )
end
-
+
+ kk = 1
for k,v in pairs(buttons) do
if (v['admin'] and !LocalPlayer():IsAdmin()) then continue end
@@ -188,7 +190,7 @@ function PANEL:Init()
local btn = vgui.Create("DButton", buttonPanel)
btn:SetText("")
btn:SetSize( buttonPanel:GetWide(), 35 )
- btn:SetPos( 0, (k-1)*btn:GetTall() + ((k-1)*1) + (titlePanelWidth+10) )
+ btn:SetPos( 0, (kk-1)*btn:GetTall() + ((kk-1)*1) + (titlePanelWidth+10) )
btn.Paint = function()
draw.RoundedBox( 0, 0, 0, btn:GetWide(), btn:GetTall(), Color( 0, 0, 102 ) )
surface.SetFont( "ButtonText" )
@@ -204,7 +206,7 @@ function PANEL:Init()
curDisplay = v['txt']
end
-
+ kk = kk+1
end