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(); }
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(); }
public void Init(bool musicEnabled, bool soundEnabled) { _settingsView.Init(musicEnabled, soundEnabled); }