Exemplo n.º 1
0
        public override void Init()
        {
            base.Init();
            view.Init();

            widgets[view.nIndex].OnClick     = UseModeEnhanced;
            widgets[view.clIndex].OnClick    = UseModeClassicHax;
            widgets[view.clHaxIndex].OnClick = UseModeClassic;
            if (view.backIndex >= 0)
            {
                widgets[view.backIndex].OnClick = SwitchToSettings;
            }
            Resize();
        }
        public override void Init()
        {
            base.Init();
            view.Init();

            widgets[view.nIndex].OnClick     = (x, y) => ModeClick(false, false);
            widgets[view.clIndex].OnClick    = (x, y) => ModeClick(true, false);
            widgets[view.clHaxIndex].OnClick = (x, y) => ModeClick(true, true);

            if (view.backIndex >= 0)
            {
                widgets[view.backIndex].OnClick = (x, y)
                                                  => game.SetScreen(new SettingsScreen(game));
            }
            Resize();
        }
Exemplo n.º 3
0
        public override void Init()
        {
            game.Window.Keyboard.KeyDown += KeyDown;
            game.Window.Keyboard.KeyUp   += KeyUp;
            view.Init();

            widgets[view.nIndex].OnClick     = (x, y) => ModeClick(false, false);
            widgets[view.clIndex].OnClick    = (x, y) => ModeClick(true, false);
            widgets[view.clHaxIndex].OnClick = (x, y) => ModeClick(true, true);

            if (view.backIndex >= 0)
            {
                widgets[view.backIndex].OnClick = (x, y)
                                                  => game.SetScreen(new MainScreen(game));
            }
            Resize();
        }