mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-18 06:03:47 +03:00
Upload
This commit is contained in:
44
lua/pac3/editor/client/settings.lua
Normal file
44
lua/pac3/editor/client/settings.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
local PANEL = {}
|
||||
|
||||
function PANEL:Init()
|
||||
local pnl = vgui.Create("DPropertySheet", self)
|
||||
pnl:Dock(FILL)
|
||||
|
||||
local props = pace.FillWearSettings(pnl)
|
||||
|
||||
pnl:AddSheet("Wear / Ignore", props)
|
||||
self.sheet = pnl
|
||||
end
|
||||
|
||||
vgui.Register( "pace_settings", PANEL, "DPanel" )
|
||||
|
||||
function pace.OpenSettings()
|
||||
if IsValid(pace.settings_panel) then
|
||||
pace.settings_panel:Remove()
|
||||
end
|
||||
local pnl = vgui.Create("DFrame")
|
||||
pnl:SetTitle("pac settings")
|
||||
pace.settings_panel = pnl
|
||||
pnl:SetSize(600,600)
|
||||
pnl:MakePopup()
|
||||
pnl:Center()
|
||||
pnl:SetSizable(true)
|
||||
|
||||
local pnl = vgui.Create("pace_settings", pnl)
|
||||
pnl:Dock(FILL)
|
||||
end
|
||||
|
||||
concommand.Add("pace_settings", function()
|
||||
pace.OpenSettings()
|
||||
end)
|
||||
Reference in New Issue
Block a user