コード例 #1
0
        public override void Init()
        {
            base.Init();
            view.Init();

            widgets[view.modeIndex].OnClick    = SwitchToChooseMode;
            widgets[view.updatesIndex].OnClick = SwitchToUpdates;
            widgets[view.coloursIndex].OnClick = SwitchToColours;
            widgets[view.backIndex].OnClick    = SwitchToMain;
            Resize();
        }
コード例 #2
0
        public override void Init()
        {
            base.Init();
            view.Init();

            widgets[view.modeIndex].OnClick = (x, y) =>
                                              game.SetScreen(new ChooseModeScreen(game, false));
            widgets[view.updatesIndex].OnClick = (x, y) =>
                                                 game.SetScreen(new UpdatesScreen(game));
            widgets[view.coloursIndex].OnClick = (x, y) =>
                                                 game.SetScreen(new ColoursScreen(game));
            widgets[view.backIndex].OnClick = (x, y) =>
                                              game.SetScreen(new MainScreen(game));
            Resize();
        }
コード例 #3
0
 public void Init(bool musicEnabled, bool soundEnabled)
 {
     _settingsView.Init(musicEnabled, soundEnabled);
 }