public override void DestroyPluginUI() { windowWidget.Nodes.Remove(pluginPanel); if (pluginPanel != null) { window.ClientSize = new Vector2(window.ClientSize.X - 150, window.ClientSize.Y); pluginPanel = null; } }
public override void CreatePluginUI(IPluginUIBuilder builder) { if (!builder.SidePanel.Enabled) { return; } pluginPanel = builder.SidePanel as PluginPanel; windowWidget.AddNode(pluginPanel); window.ClientSize = new Vector2(window.ClientSize.X + 150, window.ClientSize.Y); }