mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
44 lines
922 B
Lua
44 lines
922 B
Lua
|
|
--[[
|
||
|
|
| 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)
|