protected override void OnInitialize(object enterInformation) { base.OnInitialize(enterInformation); _inputMenu = new StackedMenu(Game) { Title = "Input" }; _inputMenu.AppendMenuItem(new EnumMenuItem(Game, "Player", new[] { "1", "2", "3", "4" })); _inputMenu.AppendMenuItem(new EnumMenuItem(Game, "Device", new[] { "Keyboard", "GamePad" })); _inputMenu.AppendMenuItem(new ActionMenuItem(Game, "Configure", () => { })); _inputMenu.AppendMenuItem(new ActionMenuItem(Game, "Back", HandleBack, ActionTriggerKind.IsCancel)); }
protected override void OnInitialize(object enterInformation) { base.OnInitialize(enterInformation); _optionsMenu = new StackedMenu(Game) { Title = "Options" }; _optionsMenu.AppendMenuItem(new InputMenuItem(Game, "Port", 5, InputType.Numeric) { InputText = Game.GetPropertyIntOrDefault(MultiPlayerPortPropertyName, 1170).ToString(CultureInfo.InvariantCulture) }); _optionsMenu.AppendMenuItem(new BoolMenuItem(Game, "Sound", DecisionType.OnOff, Game.GetPropertyBoolOrDefault(SoundPropertyName))); _optionsMenu.AppendMenuItem(new BoolMenuItem(Game, "FullScreen", DecisionType.YesNo, Game.GetPropertyBoolOrDefault(GameProperty.GameIsFullScreenProperty))); _optionsMenu.AppendMenuItem(new EnumMenuItem(Game, "Game Mode", new[] { "2D", "3D" }, Game.GetPropertyStringOrDefault(GameModePropertyName, "2D"))); _optionsMenu.AppendMenuItem(new EnumMenuItem(Game, "Resolution", GetResolutions(), GetCurrentResultion())); _optionsMenu.AppendMenuItem(new ActionMenuItem(Game, "Configure Inputs", HandleConfigureInput)); _optionsMenu.AppendMenuItem(new ActionMenuItem(Game, "Back", HandleBack, ActionTriggerKind.IsCancel)); }