protected override void Execute(ButtonEventArgs obj) { if (WindowType == null) { return; } _window = (DefaultWindow)IoCManager.Resolve <IDynamicTypeFactory>().CreateInstance(WindowType); _window?.OpenCentered(); }
private void _setOpenValue(DefaultWindow menu, bool value) { _gameHud.CharacterButtonDown = value; if (value) { menu.OpenCentered(); } else { menu.Close(); } }