Пример #1
0
 public override void DestroyPluginUI()
 {
     windowWidget.Nodes.Remove(pluginPanel);
     if (pluginPanel != null)
     {
         window.ClientSize = new Vector2(window.ClientSize.X - 150, window.ClientSize.Y);
         pluginPanel       = null;
     }
 }
Пример #2
0
 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);
 }