protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) { if (!args.Repeat && args.Key == Key.F5) { GamemodeStore.ReloadGamemodes(THSharpSkinElement, Host.Storage); } return(base.OnKeyDown(state, args)); }
protected override void LoadComplete() { base.LoadComplete(); GamemodeStore.ReloadGamemodes(THSharpSkinElement, Host.Storage); HomeScreen homeScreen = new HomeScreen(); Add(homeScreen); Add(new Toolbar()); Add(THSharpCursor = new THSharpCursor()); homeScreen.Exited += _ => Scheduler.AddDelayed(Exit, 500); }
private void load(THSharpConfigManager config) { Child = GamemodeStore.GetWorkingGamemode(config.Get <string>(THSharpSetting.Gamemode))?.GetGamemodePlayfield(); }