diff options
Diffstat (limited to 'gamemode/client/cl_inventory.lua')
| -rw-r--r-- | gamemode/client/cl_inventory.lua | 33 |
1 files changed, 0 insertions, 33 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 |
