Example #1
0
        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));
        }
Example #2
0
        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);
        }
Example #3
0
 private void load(THSharpConfigManager config)
 {
     Child = GamemodeStore.GetWorkingGamemode(config.Get <string>(THSharpSetting.Gamemode))?.GetGamemodePlayfield();
 }