dobrograd-13-06-2022/garrysmod/addons/gmod-tools/lua/vgui/stackercontrolpresets.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

26 lines
No EOL
867 B
Lua

--[[--------------------------------------------------------------------------
-- 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" )