private Button CreatePlayButton(string texture) { var button = new Button { Icon = _assetManager.Get <TextureAsset>(texture) }; button.Click += (sender, e) => { _loadedGame.Playing = true; button.Toggled = true; _workspaceContainer.ActivateWhere(x => x is GameEditorWindow); }; return(button); }
public void ActivateWhere(Func <object, bool> filter) { _workspaceContainer.ActivateWhere(filter); }