summaryrefslogtreecommitdiff
path: root/gamemode/client
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client')
-rw-r--r--gamemode/client/cl_inventory.lua33
-rw-r--r--gamemode/client/cl_quickmenu.lua1
-rw-r--r--gamemode/client/cl_syncronize.lua6
3 files changed, 0 insertions, 40 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 2534b91..cb41f2d 100644
--- a/gamemode/client/cl_inventory.lua
+++ b/gamemode/client/cl_inventory.lua
@@ -1,4 +1,3 @@
-print("Custom Inventory Loaded")
local invxsize = 800
local invysize = 500
@@ -117,8 +116,6 @@ local function createPanel()
end
local function createMenuFor(menu, tbl)
- print("Createing actions for:")
- PrintTable(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)
@@ -386,7 +383,6 @@ function PANEL:Init()
slot:SetText("")
slot:SetTooltip(createTooltipTextFor(v.Req))
slot.DoClick = function()
- --print("I want to combine a " .. v.Name)
LocalPlayer():ConCommand("gms_MakeCombination Combinations " .. v.Name)
end
@@ -532,8 +528,6 @@ function PANEL:Init()
self.PanelProxy = {}
self.PanelProxy.cp = self.ControlPanel
self.PanelProxy.MatSelect = function(self,cmd,matlist,bool,x,y)
- print("MatSelect's cmd is:")
- print(cmd)
local grid = vgui.Create( "DGrid" )
grid:SetPos( 0, 0 )
grid:SetCols( 5 )
@@ -541,18 +535,14 @@ function PANEL:Init()
grid:SetRowHeight( 64 )
local MatSelectPanel = {}
MatSelectPanel.AddMaterial = function(name, path)
- print("Adding material:")
- PrintTable(name)
end
if(matlist != nil) then
for k,v in pairs(matlist) do
local vitem = vgui.Create("DButton")
vitem:SetText("")
vitem:SetSize(64,64)
- --print("Adding item for:" .. v)
vitem:SetImage(v)
vitem.DoClick = function()
- print("Running " .. cmd .. " " .. v)
RunConsoleCommand(cmd, v)
end
vitem.Paint = function(self,w,h)
@@ -570,16 +560,10 @@ function PANEL:Init()
self.PanelProxy.cp:Clear()
end
self.PanelProxy.AddItem = function(self,item)
- print("----------AddItem called!--------------")
- print("Adding:")
- print(item)
local output = self.cp:AddItem(item)
- print("-----------AddItem finished!-----------")
return output
end
self.PanelProxy.AddControl = function(self,type,table)
- print("Adding control...")
- print("Type:" .. type)
if(type == "Header") then
self.cp:ControlHelp(table.Description)
elseif(type == "Slider") then
@@ -605,8 +589,6 @@ function PANEL:Init()
curcolor.r = GetConVar(colorvars["Red"]):GetInt()
curcolor.g = GetConVar(colorvars["Green"]):GetInt()
curcolor.b = GetConVar(colorvars["Blue"]):GetInt()
- print("Color convars are:")
- PrintTable(colorvars)
color_cube:SetColor( curcolor )
color_cube:SetSize(200,200)
@@ -627,7 +609,6 @@ function PANEL:Init()
end
DComboBox.OnSelect = function( panel, index, value )
for k,v in pairs(table.Options[value]) do
- print("Setting " .. k .. " to " .. v)
GetConVar(k):SetInt(v)
end
end
@@ -660,18 +641,11 @@ function PANEL:Init()
elseif(type == "Button") then
self.cp:Button(table.Label,table.Command)
else
- print("I wanted to add a control, but I haven't written it yet!")
- print("Type:" .. type)
- print("Table:")
- PrintTable(table)
- print("I am:")
- PrintTable(self)
debug.Trace()
end
end
if(self.ControlPanel.AddControl == nil) then
- print("Control panel's AddControl is nil!")
end
--self.ControlPanel:SetSize((dPanelWidth/3)*2,dPanelWidth)
--self.ControlPanel:SetPos(dPanelWidth/3,0)
@@ -684,7 +658,6 @@ function PANEL:Init()
if(istable(j)) then
local isprohibitied = true
for l,m in pairs(GMS.AllowedStools) do
- print("Checking: " .. j.ItemName)
if(j.ItemName == m) then
isprohibitied = false
end
@@ -695,13 +668,10 @@ function PANEL:Init()
for n,o in pairs(j) do
btable[n] = o
end
- print("Btable is:")
- PrintTable(btable)
button:SetText(btable.Text)
--button.Name = j.Text
button.PanelCreate = j.CPanelFunction
--self.Tools:Add
- print("adding " .. j.Text)
button.DoClick = function()
--print("Before calling function, PanelProxy is:")
--PrintTable(self.PanelProxy)
@@ -729,10 +699,7 @@ function PANEL:EnableControlPanel( button )
button:SetSelected( true )
self.LastSelected = button
- print(button.Name)
local cp = controlpanel.Get( button.Name )
- print("got control panel for:")
- print(cp)
--if ( !cp:GetInitialized() ) then
--cp:FillViaTable( button )
--end
diff --git a/gamemode/client/cl_quickmenu.lua b/gamemode/client/cl_quickmenu.lua
index 2ce0bbb..a6961c5 100644
--- a/gamemode/client/cl_quickmenu.lua
+++ b/gamemode/client/cl_quickmenu.lua
@@ -1,5 +1,4 @@
function GM:OnContextMenuOpen()
- print("Context menu hooked correctly")
local Menu = DermaMenu() -- Is the same as vgui.Create( "DMenu" )
Menu:AddOption( "Simple option" ) -- Add a simple option.
diff --git a/gamemode/client/cl_syncronize.lua b/gamemode/client/cl_syncronize.lua
index fa60de0..f84799d 100644
--- a/gamemode/client/cl_syncronize.lua
+++ b/gamemode/client/cl_syncronize.lua
@@ -1,11 +1,9 @@
--Makes sure the player knows about things like inventory, skills, experience ect.
net.Receive( "gms_SetResource", function( length, pl)
- print("Setresources message sent from server")
local name = net.ReadString()
if(GMS.GetResourceByName(name).UniqueData) then
local restable = net.ReadTable()
- PrintTable(restable)
if(Resources[name] == nil) then
Resources[name] = {}
end
@@ -14,12 +12,8 @@ net.Receive( "gms_SetResource", function( length, pl)
if(Resources[name] == nil) then
Resources[name] = 0
end
- print("Getting with bitcount:" .. GMS.NETINT_BITCOUNT)
local num = net.ReadInt(GMS.NETINT_BITCOUNT)
- print("Resource name: " .. name)
- print("Resource num: " .. num)
Resources[name] = num
end
- print("Finished resource get")
GAMEMODE:ReloadSpawnMenu()
end)