mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
36 lines
1.1 KiB
Lua
36 lines
1.1 KiB
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/
|
|
--]]
|
|
|
|
--[[--------------------------------------------------------------------------
|
|
-- Namespace Tables
|
|
--------------------------------------------------------------------------]]--
|
|
|
|
local PANEL = {}
|
|
|
|
--[[--------------------------------------------------------------------------
|
|
-- Namespace Functions
|
|
--------------------------------------------------------------------------]]--
|
|
|
|
--[[--------------------------------------------------------------------------
|
|
--
|
|
-- PANEL:OpenPresetEditor()
|
|
--
|
|
--]]--
|
|
function PANEL:OpenPresetEditor()
|
|
if ( not self.m_strPreset ) then return end
|
|
self.Window = vgui.Create( "StackerPresetEditor" )
|
|
self.Window:MakePopup()
|
|
self.Window:Center()
|
|
self.Window:SetType( self.m_strPreset )
|
|
self.Window:SetConVars( self.ConVars )
|
|
self.Window:SetPresetControl( self )
|
|
end
|
|
|
|
vgui.Register( "StackerControlPresets", PANEL, "ControlPresets" ) |