void OnGUI() { // -- make sure we are init if (!m_MenuBar || !m_DraftArea) { return; } // -- DRAW ALL OF THE TOOL PARTS IN CONSTITUENT WINDOWS BeginWindows(); // -- DRAW THE MENU BAR m_MenuBar.Draw(); // -- DRAW THE DRAFT AREA m_DraftArea.Draw(); EndWindows(); // Repaint the window as wantsMouseMove doesnt trigger a repaint automatically if (Event.current != null || GUI.changed) { Repaint(); } // bolt you Resources.UnloadUnusedAssets(); }
private void OnGUI() { if (!initialized) { OnMultiColumnEditorEnable(menu, columns); initialized = true; } menu.Draw(MenuPosition); columns.Draw(BodyPosition); }
/// <inheritdoc /> /// <summary> /// </summary> /// <param name="gameTime"></param> public override void Draw(GameTime gameTime) { GameBase.Game.GraphicsDevice.Clear(Color.Black); Background.Draw(gameTime); var screen = (EditorScreen)Screen; screen.Ruleset.Draw(gameTime); Container?.Draw(gameTime); screen.LayerCompositor?.Draw(gameTime); MenuBar.Draw(gameTime); GameBase.Game.SpriteBatch.End(); }