public CarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base() { SelectedItem = 0; Rotating = false; _selectorRotation = 0.0f; _targetRotation = _selectorRotation; _carouselDisabled = false; _items = new List <ICarouselDialogItem>(); _registerObject = registrationHandler; _unregisterObject = unregistrationHandler; RotationSpeedInDegrees = Default_Rotation_Speed_In_Degrees; AButtonPressedValue = "Select"; BButtonPressedValue = "Back"; XButtonPressedValue = ""; YButtonPressedValue = ""; DPadMessageText = Default_DPad_Message_Text; DPadMessageYOffset = Default_DPad_Message_Y_Offset; _defaultButtonCaption = ""; _cancelButtonCaption = "Back"; }
public CharacterSelectionCarouselDialog( Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Select Character"); TopYWhenActive = Top_Y_When_Active; TopYWhenInactive = Definitions.Back_Buffer_Height; AddButton("Back", new Vector2(300.0f, 325), Button.ButtonIcon.B, Color.Red, 0.6f); AddButton("Edit", new Vector2(Definitions.Back_Buffer_Center.X, 325), Button.ButtonIcon.Y, Color.Gold, 0.6f); AddButton("Select", new Vector2(1300.0f, 325), Button.ButtonIcon.A, Color.LawnGreen, 0.6f); YButtonPressedValue = "Edit"; }
public CharacterSelectionCarouselDialog( Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Select Character"); TopYWhenActive = Top_Y_When_Active; TopYWhenInactive = Definitions.Back_Buffer_Height; AddButton("Back", new Vector2(350.0f, 325), Button.ButtonIcon.Back, Color.Red, 0.6f); AddButton("Edit", new Vector2(Definitions.Back_Buffer_Center.X, 325), Button.ButtonIcon.Options, Color.Gold, 0.6f); AddButton("Select", new Vector2(1250.0f, 325), Button.ButtonIcon.Tick, Color.LawnGreen, 0.6f); _nonSpinButtonCaptions.Add("Edit"); _defaultButtonCaption = "Select"; _activeButtonCaption = "Select"; _cancelButtonCaption = "Back"; }
public CarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base() { SelectedItem = 0; Rotating = false; _selectorRotation = 0.0f; _targetRotation = _selectorRotation; _items = new List<ICarouselDialogItem>(); _registerObject = registrationHandler; _unregisterObject = unregistrationHandler; _nonSpinButtonCaptions = new List<string>(); _nonSpinButtonCaptions.Add("Back"); _nonSpinButtonCaptions.Add("Select"); _buttonSoundEffectOverrides = new Dictionary<string, string>(); _captionsForButtonsNotActivatedByGamepadStartButton = new List<string>(); RotationSpeedInDegrees = Default_Rotation_Speed_In_Degrees; }
public CarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base() { SelectedItem = 0; Rotating = false; _selectorRotation = 0.0f; _targetRotation = _selectorRotation; _items = new List <ICarouselDialogItem>(); _registerObject = registrationHandler; _unregisterObject = unregistrationHandler; _nonSpinButtonCaptions = new List <string>(); _nonSpinButtonCaptions.Add("Back"); _nonSpinButtonCaptions.Add("Select"); _buttonSoundEffectOverrides = new Dictionary <string, string>(); _captionsForButtonsNotActivatedByGamepadStartButton = new List <string>(); RotationSpeedInDegrees = Default_Rotation_Speed_In_Degrees; }
public CourseSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Select Course"); Height = Dialog_Height; TopYWhenInactive = Definitions.Back_Buffer_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); DPadMessageYOffset = 230.0f; registrationHandler(this); InputSources = new List <InputProcessorBase>(); InputSources.Add(null); InputSources.Add(null); }
public CourseSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Select Course"); Height = Dialog_Height; TopYWhenInactive = Definitions.Back_Buffer_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); SetupButtonLinkagesAndDefaultValues(); registrationHandler(this); }
public RaceCharacterSelectionCarouselDialog(SelectionButtonHandler sceneButtonHandler, Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _sendButtonActionToScene = sceneButtonHandler; AddButton("Back", new Vector2(Definitions.Left_Button_Column_X, 325), Button.ButtonIcon.B, Color.Red, 0.7f); AddButton("Select", new Vector2(Definitions.Right_Button_Column_X, 325), Button.ButtonIcon.A, Color.LawnGreen, 0.7f); Height = Race_Character_Selection_Dialog_Height; InputSources.Add(null); }
public ComponentSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { Height = Dialog_Height; TopYWhenActive = Definitions.Back_Buffer_Height - Dialog_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); AddIconButton("previous", new Vector2(Definitions.Back_Buffer_Center.X - 450, 175), Button.ButtonIcon.Previous, Color.DodgerBlue); AddIconButton("next", new Vector2(Definitions.Back_Buffer_Center.X + 450, 175), Button.ButtonIcon.Next, Color.DodgerBlue); AddButton("Select", new Vector2(Definitions.Right_Button_Column_X, 325), Button.ButtonIcon.Tick, Color.LawnGreen, 0.7f); AddButton("Back", new Vector2(Definitions.Left_Button_Column_X, 325), Button.ButtonIcon.Back, Color.Red, 0.7f); ActionButtonPressHandler = HandleActionButtonPress; TopYWhenInactive = Definitions.Back_Buffer_Height; SetupButtonLinkagesAndDefaultValues(); registrationHandler(this); }
public ComponentSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { Height = Dialog_Height; TopYWhenActive = (Definitions.Back_Buffer_Height * (1.0f - Data.Profile.Settings.DisplaySafeAreaFraction)) - (Dialog_Height + Bottom_Margin); CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); AddButton("Select", new Vector2(Definitions.Right_Button_Column_X, 360), Button.ButtonIcon.A, Color.LawnGreen, 0.7f); AddButton("Back", new Vector2(Definitions.Left_Button_Column_X, 360), Button.ButtonIcon.B, Color.Red, 0.7f); ActionButtonPressHandler = HandleActionButtonPress; TopYWhenInactive = Definitions.Back_Buffer_Height; registrationHandler(this); }
public AvatarSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { ActionButtonPressHandler = SelectionHandler; Height = Dialog_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); registrationHandler(this); }
public PlayerOneAvatarCarousel(SelectionButtonHandler sceneButtonHandler, Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(sceneButtonHandler, registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Player One Select Character"); TopYWhenActive = Dialog_Margin; TopYWhenInactive = -Dialog_Height; }
public PlayerTwoAvatarCarousel(SelectionButtonHandler sceneButtonHandler, Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(sceneButtonHandler, registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Player Two Select Character"); TopYWhenActive = Definitions.Back_Buffer_Height - (Dialog_Height + Dialog_Margin); TopYWhenInactive = Definitions.Back_Buffer_Height; }
public StorePurchaseDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { Height = Purchase_Dialog_Height; TopYWhenActive = Definitions.Back_Buffer_Height - (Purchase_Dialog_Height + Bopscotch.Scenes.NonGame.StoreScene.Dialog_Margin); CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); AddIconButton("previous", new Vector2(Definitions.Back_Buffer_Center.X - 450, 175), Button.ButtonIcon.Previous, Color.DodgerBlue); AddIconButton("next", new Vector2(Definitions.Back_Buffer_Center.X + 450, 175), Button.ButtonIcon.Next, Color.DodgerBlue); AddButton("Back", new Vector2(Definitions.Left_Button_Column_X, 400), Button.ButtonIcon.Back, Color.DodgerBlue, 0.7f); AddButton("Buy", new Vector2(Definitions.Right_Button_Column_X, 400), Button.ButtonIcon.Tick, Color.Orange, 0.7f); _nonSpinButtonCaptions.Add("Buy"); ActionButtonPressHandler = HandleActionButtonPress; TopYWhenInactive = Definitions.Back_Buffer_Height; SetupButtonLinkagesAndDefaultValues(); registrationHandler(this); _textTransitionTimer = new Timer(""); GlobalTimerController.GlobalTimer.RegisterUpdateCallback(_textTransitionTimer.Tick); _textTransitionTimer.NextActionDuration = 1; _textTint = Color.White; _font = Game1.Instance.Content.Load <SpriteFont>("Fonts\\arial"); }
public SurvivalStartCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Select Area and Level"); Height = Dialog_Height; TopYWhenActive = 300; TopYWhenInactive = Definitions.Back_Buffer_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _captionsForButtonsNotActivatedByGamepadStartButton.Add("Back"); }
public AreaSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { RotationSpeedInDegrees = Rotation_Speed_In_Degrees; _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); CreateButtons(); ActionButtonPressHandler = HandleNonSpinButtonAction; _textTransitionTimer = new Timer(""); GlobalTimerController.GlobalTimer.RegisterUpdateCallback(_textTransitionTimer.Tick); _textTransitionTimer.NextActionDuration = 1; _textTint = Color.White; }
public AvatarSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { ActionButtonPressHandler = SelectionHandler; Height = Dialog_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); _captionsForButtonsNotActivatedByGamepadStartButton.Add("Back"); AddIconButton("previous", new Vector2(Definitions.Back_Buffer_Center.X - 450, 175), Button.ButtonIcon.Previous, Color.DodgerBlue); AddIconButton("next", new Vector2(Definitions.Back_Buffer_Center.X + 450, 175), Button.ButtonIcon.Next, Color.DodgerBlue); registrationHandler(this); }
public AvatarSelectionCarouselDialog(InputProcessorBase inputProcessor, RaceStartScene.AvatarSelectionButtonHandler sceneButtonHandler, Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { ActionButtonPressHandler = SelectionHandler; InputSources.Add(inputProcessor); Height = Dialog_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); _inputProcessor = inputProcessor; _sendButtonActionToScene = sceneButtonHandler; _captionsForButtonsNotActivatedByGamepadStartButton.Add("Back"); AddIconButton("previous", new Vector2(Definitions.Back_Buffer_Center.X - 450, 175), Button.ButtonIcon.Previous, Color.DodgerBlue); AddIconButton("next", new Vector2(Definitions.Back_Buffer_Center.X + 450, 175), Button.ButtonIcon.Next, Color.DodgerBlue); AddButton("Back", new Vector2(Definitions.Left_Button_Column_X, 325), Button.ButtonIcon.Back, Color.DodgerBlue, 0.7f); AddButton("Select", new Vector2(Definitions.Right_Button_Column_X, 325), Button.ButtonIcon.Play, Color.LawnGreen, 0.7f); SetupButtonLinkagesAndDefaultValues(); registrationHandler(this); }
public AreaSelectionCarouselDialog(Scene.ObjectRegistrationHandler registrationHandler, Scene.ObjectUnregistrationHandler unregistrationHandler) : base(registrationHandler, unregistrationHandler) { _boxCaption = Translator.Translation("Select Course"); Height = Dialog_Height; TopYWhenInactive = Definitions.Back_Buffer_Height; CarouselCenter = new Vector2(Definitions.Back_Buffer_Center.X, Carousel_Center_Y); CarouselRadii = new Vector2(Carousel_Horizontal_Radius, Carousel_Vertical_Radius); RotationSpeedInDegrees = Rotation_Speed_In_Degrees; _itemRenderDepths = new Range(Minimum_Item_Render_Depth, Maximum_Item_Render_Depth); _itemScales = new Range(Minimum_Item_Scale, Maximum_Item_Scale); InputSources.Add(KeyboardInputProcessor.CreateForPlayerOne()); InputSources.Add(KeyboardInputProcessor.CreateForPlayerTwo()); AddIconButton("previous", new Vector2(Definitions.Back_Buffer_Center.X - 450, 305), Button.ButtonIcon.Previous, Color.DodgerBlue); AddIconButton("next", new Vector2(Definitions.Back_Buffer_Center.X + 450, 305), Button.ButtonIcon.Next, Color.DodgerBlue); AddButton("Back", new Vector2(Definitions.Left_Button_Column_X, 625), Button.ButtonIcon.Back, Color.DodgerBlue, 0.7f); AddButton("Select", new Vector2(Definitions.Right_Button_Column_X, 625), Button.ButtonIcon.Play, Color.LawnGreen, 0.7f); SetupButtonLinkagesAndDefaultValues(); registrationHandler(this); _cancelButtonCaption = "Back"; }