public void InterfaceUpdate(InterfaceUpdateMessage Message) { if (_BlockEvents) { return; } _BlockEvents = true; _BlockEvents = false; }
private void InterfaceUpdate(InterfaceUpdateMessage Message) { if (_BlockEvents) { return; } _BlockEvents = true; if (Message == InterfaceUpdateMessage.SelectionUpdated) { SetObject(_Interface.CurrentSelection); } _BlockEvents = false; }
public void InterfaceUpdate(InterfaceUpdateMessage Message) { if (_BlockEvents) { return; } _BlockEvents = true; if (Message == InterfaceUpdateMessage.GameUpdated) { GameName.Text = _Interface.CurrentGame.Name; GenerateEntries(); this.Visible = _Interface.CurrentScene == null; } else if (Message == InterfaceUpdateMessage.SceneUpdated) { GenerateEntries(); this.Visible = _Interface.CurrentScene == null; } _BlockEvents = false; }
private void InterfaceUpdate(InterfaceUpdateMessage Message) { if (_BlockEvents) { return; } _BlockEvents = true; if (Message == InterfaceUpdateMessage.SelectionUpdated) { RefreshSelection(); } else if (Message == InterfaceUpdateMessage.SceneUpdated) { AssembleTree(); RefreshSelection(); } else if (Message == InterfaceUpdateMessage.SceneObjectsUpdated) { AssembleTree(); RefreshSelection(); } _BlockEvents = false; }
private void InterfaceUpdate(InterfaceUpdateMessage Message) { if (_BlockEvents) { return; } _BlockEvents = true; if (Message == InterfaceUpdateMessage.LibraryUpdated) { if (_View == LibraryViewType.Library) { SetLibraryView(LibraryViewType.Library); } } if (Message == InterfaceUpdateMessage.AssetsUpdated) { if (_View == LibraryViewType.Assets) { SetLibraryView(LibraryViewType.Assets); } } _BlockEvents = false; }
private void InterfaceUpdate(InterfaceUpdateMessage Message) { if (_BlockEvents) { return; } _BlockEvents = true; if (Message == InterfaceUpdateMessage.SceneUpdated) { if (_Interface.CurrentScene != null) { this._GameW.Hide(); this._View.Show(MainDock, DockState.Document); this._World.Show(MainDock, DockState.DockLeft); this._Library.Show(this._World.Pane, DockAlignment.Bottom, 1.0 / 2); this._Scene.Show(MainDock, DockState.DockRight); this._Properties.Show(this._Scene.Pane, DockAlignment.Bottom, 1.0 / 2); sceneToolStripMenuItem.Visible = true; sceneObjectToolStripMenuItem.Visible = true; runToolStripMenuItem.Visible = true; } else { this._GameW.Show(MainDock, DockState.Document); this._View.Hide(); this._World.Hide(); this._Library.Hide(); this._Scene.Hide(); this._Properties.Hide(); sceneToolStripMenuItem.Visible = false; sceneObjectToolStripMenuItem.Visible = false; runToolStripMenuItem.Visible = false; } } _BlockEvents = false; }