DebugInv on F2
This commit is contained in:
parent
cece2b0e36
commit
5d9c09f3f5
|
@ -222,7 +222,10 @@ local function regen_items( itemlist )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
concommand.Add("benny_debug_inv", function()
|
concommand.Add("benny_debug_inv", function()
|
||||||
if IsValid( base ) then base:Remove() end
|
OpenDebugInv()
|
||||||
|
end)
|
||||||
|
function OpenDebugInv()
|
||||||
|
if IsValid( base ) then base:Remove() return end
|
||||||
base = vgui.Create("BFrame")
|
base = vgui.Create("BFrame")
|
||||||
base:SetSize( ss(400), ss(400) )
|
base:SetSize( ss(400), ss(400) )
|
||||||
base:SetTitle("Developer Inventory")
|
base:SetTitle("Developer Inventory")
|
||||||
|
@ -234,4 +237,4 @@ concommand.Add("benny_debug_inv", function()
|
||||||
itemlist:Dock( FILL )
|
itemlist:Dock( FILL )
|
||||||
|
|
||||||
regen_items( itemlist )
|
regen_items( itemlist )
|
||||||
end)
|
end
|
|
@ -175,7 +175,7 @@ hook.Add( "PlayerButtonDown", "Benny_PlayerButtonDown_Dev", function( ply, butto
|
||||||
if button == KEY_F1 then
|
if button == KEY_F1 then
|
||||||
OpenSettingsMenu()
|
OpenSettingsMenu()
|
||||||
elseif button == KEY_F2 then
|
elseif button == KEY_F2 then
|
||||||
OpenScorePanel()
|
OpenDebugInv()
|
||||||
elseif button == KEY_F3 then
|
elseif button == KEY_F3 then
|
||||||
OpenSMenu()
|
OpenSMenu()
|
||||||
elseif button == KEY_F4 then
|
elseif button == KEY_F4 then
|
||||||
|
|
Loading…
Reference in New Issue