From 461a29d8fdb2fd6c86a77912e9c2232e1f101ca8 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 19 Jun 2017 00:07:01 -0400 Subject: Massive updates Lots of stuff was updated, mostly to support addons. Inventory tracking is also updated a little and a bug fixed in inventory. Nrequire now probably won't crash the client, no matter how many times it's used. --- gamemode/client/qtabs/cl_qinventory.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gamemode/client/qtabs') diff --git a/gamemode/client/qtabs/cl_qinventory.lua b/gamemode/client/qtabs/cl_qinventory.lua index 6fc3d37..2879ac5 100644 --- a/gamemode/client/qtabs/cl_qinventory.lua +++ b/gamemode/client/qtabs/cl_qinventory.lua @@ -14,9 +14,9 @@ local invsheet local drawfloatinginventory = function(id, inventory) --print("Drawing a floating inventory!") local frame = vgui.Create("DFrame") - frame:SetPos( 100, 100 ) - frame:SetSize( 300, 200 ) - frame:SetTitle( "My new Derma frame" ) + frame:SetPos( ScrW() - (ScrW()/4), 0 ) + frame:SetSize( ScrW()/4, ScrH()/4 ) + frame:SetTitle( inventory.Name ) frame:SetDraggable( true ) local panel = vgui.Create("DPanel",frame) panel:Dock(FILL) -- cgit v1.2.3-70-g09d2