diff options
Diffstat (limited to 'gamemode/client/cl_inventory.lua')
| -rw-r--r-- | gamemode/client/cl_inventory.lua | 9 |
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 |
