Esempio n. 1
0
        //====== ctors

        public MainMenuGameModule()
        {
            var mainMenu = CreateOptionsList();

            optionSelector = new OptionSelector <MainMenuEntry>(mainMenu);

            optionSelector.IndexChanged += (option, index) => isOptionChanged = true;
        }
        //====== ctors

        public OptionsListWindow(OptionSelector <T> optionSelector, WindowAppearance appearance = null) : base(appearance)
        {
            this.optionSelector = Verify.NotNull(optionSelector, nameof(optionSelector));

            Initialize();
        }