Files
wnsrc/lua/pac3/editor/client/settings.lua
lifestorm 94063e4369 Upload
2024-08-04 22:55:00 +03:00

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)