aboutsummaryrefslogtreecommitdiff
path: root/gamemode/client/cl_inventory.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-06-19 00:07:01 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-06-19 00:07:01 -0400
commit461a29d8fdb2fd6c86a77912e9c2232e1f101ca8 (patch)
treeed76c1a1abf64369ee36b88533e78a8a94566631 /gamemode/client/cl_inventory.lua
parent0ae33ad32868af226fba6d887320aa87aa19d3a4 (diff)
downloadartery-461a29d8fdb2fd6c86a77912e9c2232e1f101ca8.tar.gz
artery-461a29d8fdb2fd6c86a77912e9c2232e1f101ca8.tar.bz2
artery-461a29d8fdb2fd6c86a77912e9c2232e1f101ca8.zip
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.
Diffstat (limited to 'gamemode/client/cl_inventory.lua')
-rw-r--r--gamemode/client/cl_inventory.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 758f9b1..c5725dc 100644
--- a/gamemode/client/cl_inventory.lua
+++ b/gamemode/client/cl_inventory.lua
@@ -36,6 +36,7 @@ local height = ScrH()
local credits = 0
local creditslabel
local droppanel --Dpanel to drop things on when they are dropped, should be the backmost panel, and cover the entire screen.
+inv.tabsheet = nil
local player_data --The data the player needs to show the q panel
net.Receive("art_load_player_data",function()
@@ -79,16 +80,16 @@ local function BuildInventory()
creditstext:SetText("Credits:")
creditstext:SetPos(100,5)
- local tabsheet = vgui.Create("DPropertySheet",qframe)
- tabsheet:Dock(FILL)
+ inv.tabsheet = vgui.Create("DPropertySheet",qframe)
+ inv.tabsheet:Dock(FILL)
- local invsheet = qinv.CreateInventorySheet(tabsheet)
+ local invsheet = qinv.CreateInventorySheet(inv.tabsheet)
--qpray.CreatePrayerSheet(tabsheet)
invsheet.id = #qtabs + 1
qtabs[#qtabs + 1] = invsheet
--prasheet.id = #qtabs + 1
--qtabs[#qtabs + 1] = prasheet
- tabsheet:AddSheet("Inventory",invsheet,"icon16/user.png")
+ inv.tabsheet:AddSheet("Inventory",invsheet,"icon16/user.png")
--tabsheet:AddSheet("Prayers",prasheet,"icon16/user.png")
end