mirror of
https://github.com/chev2/gmod-addons.git
synced 2025-12-18 05:52:15 +00:00
SprayMesh Extended: Fix error with opening context menu
This commit is contained in:
parent
4d3c2bf17e
commit
43f85068f7
2 changed files with 5 additions and 5 deletions
|
|
@ -951,10 +951,10 @@ concommand.Add("spraymesh_reload", function()
|
||||||
spraymesh.ReloadSprays()
|
spraymesh.ReloadSprays()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local SETTINGS_PANEL = nil
|
spraymesh.SETTINGS_PANEL = nil
|
||||||
concommand.Add("spraymesh_settings", function()
|
concommand.Add("spraymesh_settings", function()
|
||||||
if IsValid(SETTINGS_PANEL) then SETTINGS_PANEL:Close() end
|
if IsValid(spraymesh.SETTINGS_PANEL) then spraymesh.SETTINGS_PANEL:Remove() end
|
||||||
SETTINGS_PANEL = vgui.Create("DSprayConfiguration")
|
spraymesh.SETTINGS_PANEL = vgui.Create("DSprayConfiguration")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local VIEWER_PANEL = nil
|
local VIEWER_PANEL = nil
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ list.Set("DesktopWindows", "SprayMeshExtended", {
|
||||||
-- Remove basic frame and replace with our custom VGUI element
|
-- Remove basic frame and replace with our custom VGUI element
|
||||||
window:Remove()
|
window:Remove()
|
||||||
|
|
||||||
if IsValid(screenshot_editor.PANEL) then screenshot_editor.PANEL:Remove() end
|
if IsValid(spraymesh.SETTINGS_PANEL) then spraymesh.SETTINGS_PANEL:Remove() end
|
||||||
local mainWindow = vgui.Create("DSprayConfiguration")
|
local mainWindow = vgui.Create("DSprayConfiguration")
|
||||||
screenshot_editor.PANEL = mainWindow
|
spraymesh.SETTINGS_PANEL = mainWindow
|
||||||
|
|
||||||
icon.Window = mainWindow
|
icon.Window = mainWindow
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue