aboutsummaryrefslogtreecommitdiff
path: root/gamemode/client
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-10-24 12:12:19 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-10-24 12:12:19 -0400
commit74c7a160da34897ebdf18aaff02b8c9b65809949 (patch)
treedb2a084d02f4acc3d7c99ec20e573101e448aef6 /gamemode/client
parentd7f44fc24da959658b597e64d842661aa41f6515 (diff)
downloadartery-74c7a160da34897ebdf18aaff02b8c9b65809949.tar.gz
artery-74c7a160da34897ebdf18aaff02b8c9b65809949.tar.bz2
artery-74c7a160da34897ebdf18aaff02b8c9b65809949.zip
Various other updates and bugfixes
Diffstat (limited to 'gamemode/client')
-rw-r--r--gamemode/client/areas/loadareas.lua3
-rw-r--r--gamemode/client/cl_systems.lua4
-rw-r--r--gamemode/client/qpanels/inventory.lua11
3 files changed, 14 insertions, 4 deletions
diff --git a/gamemode/client/areas/loadareas.lua b/gamemode/client/areas/loadareas.lua
new file mode 100644
index 0000000..a8c506d
--- /dev/null
+++ b/gamemode/client/areas/loadareas.lua
@@ -0,0 +1,3 @@
+--[[
+ Loads the area names for the current map
+]]
diff --git a/gamemode/client/cl_systems.lua b/gamemode/client/cl_systems.lua
deleted file mode 100644
index 0165239..0000000
--- a/gamemode/client/cl_systems.lua
+++ /dev/null
@@ -1,4 +0,0 @@
---[[
- Something to display all the systems delt with serverside
-]]
-local systems = {}
diff --git a/gamemode/client/qpanels/inventory.lua b/gamemode/client/qpanels/inventory.lua
index f4adad6..9fec1cc 100644
--- a/gamemode/client/qpanels/inventory.lua
+++ b/gamemode/client/qpanels/inventory.lua
@@ -4,6 +4,17 @@ invfuncs = ART.invfuncs
--invfuncs = include("../shared/inventory_common.lua")
assert(invfuncs ~= nil, "Dependency failed")
+local function createMenuFor(menu, tbl)
+ for k,v in pairs(tbl) do
+ if isfunction(v) then --This is a dead-end, add the menu
+ local thisoption = menu:AddOption(k,v)
+ else --Otherwise it should be a table, recursively call to create
+ local submenu = menu:AddSubMenu(k)
+ createMenuFor(submenu,v)
+ end
+ end
+end
+
local function DrawBackpackOnDPanel(dp, backpack, backpacknum, tent)
local width = ScrW()
local height = ScrH()