コード例 #1
0
        //====== ctors

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

            optionSelector = new OptionSelector <MainMenuEntry>(mainMenu);

            optionSelector.IndexChanged += (option, index) => isOptionChanged = true;
        }
コード例 #2
0
        //====== ctors

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

            Initialize();
        }