private void create_cancel_button() { CancelButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH - 48); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.OPTIONS_DESC_DEPTH; }
protected override void create_start_button() { StartButton = Button_Description.button(Inputs.Start, Config.WINDOW_WIDTH - 72); StartButton.description = "Leave"; StartButton.stereoscopic = Config.PREPMAIN_INFO_DEPTH; }
private void create_cancel_button() { CancelButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH / 2 - 16); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.STATUS_TOP_PANEL_DEPTH; }
public DifficultySelectionMenu() { DifficultyPanels = new Difficulty_Info_Panel[Enum_Values.GetEnumCount(typeof(Difficulty_Modes))]; int offset = 0; for (int i = 0; i < DifficultyPanels.Length; i++) { DifficultyPanels[i] = new Difficulty_Info_Panel((Difficulty_Modes)i); DifficultyPanels[i].stereoscopic = Config.TITLE_MENU_DEPTH; DifficultyPanels[i].active = false; DifficultyPanels[i].loc = new Vector2(0, offset); offset += DifficultyPanels[i].height + 8; } MenuLoc = new Vector2( (Config.WINDOW_WIDTH - Difficulty_Info_Panel.WIDTH) / 2, (Config.WINDOW_HEIGHT - 16) / 2); MenuLoc -= new Vector2(0, (offset / 2) / 8 * 8); DifficultyNodes = new UINodeSet <Difficulty_Info_Panel>(DifficultyPanels); DifficultyNodes.set_active_node(DifficultyNodes[(int)Difficulty_Modes.Normal]); DifficultyNodes.ActiveNode.active = true; CancelButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH - 64); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.TITLE_MENU_DEPTH; }
protected override void refresh_input_help() { base.refresh_input_help(); SwitchButton = Button_Description.button(Inputs.X, new Vector2(176, 8)); SwitchButton.description = "Switch"; SwitchButton.stereoscopic = Config.CONVOY_INPUTHELP_DEPTH; }
public StyleSelectionMenu() { StylePanels = new Mode_Style_Info_Panel[Enum_Values.GetEnumCount(typeof(Mode_Styles))]; int offset = 0; for (int i = 0; i < StylePanels.Length; i++) { StylePanels[i] = new Mode_Style_Info_Panel((Mode_Styles)i); StylePanels[i].stereoscopic = Config.TITLE_MENU_DEPTH; StylePanels[i].active = false; StylePanels[i].loc = new Vector2(0, offset); offset += StylePanels[i].height + 8; } MenuLoc = new Vector2( (Config.WINDOW_WIDTH - Mode_Style_Info_Panel.WIDTH) / 2, (Config.WINDOW_HEIGHT - 16) / 2); MenuLoc -= new Vector2(0, (offset / 2) / 8 * 8); StyleNodes = new UINodeSet <Mode_Style_Info_Panel>(StylePanels); StyleNodes.set_active_node(StyleNodes[(int)Mode_Styles.Standard]); StyleNodes.ActiveNode.active = true; CancelButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH - 64); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.TITLE_MENU_DEPTH; }
private void create_cancel_button() { CancelButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH - 64); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.TITLE_MENU_DEPTH; }
protected void create_cancel_button() { CancelButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH - 48); CancelButton.loc.Y = 0; CancelButton.description = "Cancel"; }
protected void refresh() { Buttons = new List <Button_Description>(); int button_x = this.buttons_base_x; switch (Mode) { case Button_Description_Mode.Normal: Buttons.Add(Button_Description.button(Inputs.X, button_x)); Buttons[Buttons.Count - 1].description = "Enemy Range"; //base_x += 80; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.L, button_x)); Buttons[Buttons.Count - 1].description = "Next Unit"; //base_x += 68; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.Select, button_x)); Buttons[Buttons.Count - 1].description = "Menu"; break; case Button_Description_Mode.Unit_Highlighted: Buttons.Add(Button_Description.button(Inputs.X, button_x)); Buttons[Buttons.Count - 1].description = "Enemy Range"; //base_x += 80; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.R, button_x)); Buttons[Buttons.Count - 1].description = "Info"; //base_x += 44; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.L, button_x)); Buttons[Buttons.Count - 1].description = "Next Unit"; //base_x += 68; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.Select, button_x)); Buttons[Buttons.Count - 1].description = "Menu"; break; case Button_Description_Mode.Unit_Selected: Buttons.Add(Button_Description.button(Inputs.X, button_x)); Buttons[Buttons.Count - 1].description = "Enemy Range"; //base_x += 80; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.R, button_x)); Buttons[Buttons.Count - 1].description = "Info"; //base_x += 44; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.L, button_x)); Buttons[Buttons.Count - 1].description = "Reset Arrow"; break; case Button_Description_Mode.Unit_Selected_Blank: Buttons.Add(Button_Description.button(Inputs.X, button_x)); Buttons[Buttons.Count - 1].description = "Enemy Range"; //base_x += 80; //Debug button_x = next_button_x(button_x, Buttons[Buttons.Count - 1].width); Buttons.Add(Button_Description.button(Inputs.L, button_x)); Buttons[Buttons.Count - 1].description = "Reset Arrow"; break; } }
protected virtual void create_start_button() { StartButton = Button_Description.button(Inputs.Start, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(142, 41, 32, 16)); StartButton.loc = new Vector2( Config.WINDOW_WIDTH - 80, Config.WINDOW_HEIGHT - 16); StartButton.stereoscopic = Config.PREPMAIN_INFO_DEPTH; }
private void RefreshInputHelp() { CancelButton = Button_Description.button(Inputs.B, 16); CancelButton.description = "Cancel"; //CancelButton.stereoscopic = ; //Yeti DifficultyButton = Button_Description.button(Inputs.X, 80); DifficultyButton.description = "Change Difficulty"; }
public void RefreshButton() { Buttons button = Tactile.Input.PadRedirect(Input); Button_Description buttonIcon = Button_Description.button(button); buttonIcon.description = Description; buttonIcon.draw_offset = new Vector2(8, 0); Text = buttonIcon; }
protected void RefreshInputHelp() { RButton = Button_Description.button(Inputs.R, Global.Content.Load <Texture2D>( @"Graphics\Windowskins\Preparations_Screen"), new Rectangle(126, 122, 24, 16)); RButton.loc = new Vector2(216, 172) + new Vector2(60, -16); RButton.offset = new Vector2(-1, -1); RButton.stereoscopic = Config.PREPITEM_FUNDS_DEPTH; }
public void RefreshButton() { Buttons button = Tactile.Input.PadRedirect(Input); Button_Description buttonIcon = Button_Description.button(button); buttonIcon.description = ""; buttonIcon.draw_offset = new Vector2(120, 0); buttonIcon.ColonVisible(false); Value = buttonIcon; }
protected virtual void refresh_input_help() { /*R_Button = new Sprite(); * R_Button.texture = Global.Content.Load<Texture2D>(@"Graphics/Windowskins/Preparations_Screen"); * R_Button.loc = new Vector2(280, 176); * R_Button.src_rect = new Rectangle(104, 120, 40, 16); * R_Button.stereoscopic = Config.CONVOY_INPUTHELP_DEPTH;*/ R_Button = Button_Description.button(Inputs.R, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(126, 122, 24, 16)); R_Button.loc = new Vector2(276, 176); R_Button.offset = new Vector2(0, -2); R_Button.stereoscopic = Config.CONVOY_INPUTHELP_DEPTH; }
public void SetFieldBase(bool atBase) { AtBase = atBase; Window.SetAtBase(AtBase); if (Window.FieldBaseDifference) { FieldBaseButton = Button_Description.button(Inputs.X, 80); FieldBaseButton.description = AtBase ? "Base" : "Field"; FieldBaseButton.stereoscopic = Config.MAPCOMMAND_WINDOW_DEPTH; } }
protected override void refresh_input_help() { CancelButton = Button_Description.button(Inputs.B, Backing_1.loc + new Vector2(32, 0)); CancelButton.description = "Cancel"; CancelButton.offset = new Vector2(2, -2); CancelButton.stereoscopic = Config.PREPUNIT_INPUTHELP_DEPTH; Select = Button_Description.button(Inputs.Select, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(150, 73, 48, 16)); Select.loc = Backing_1.loc + new Vector2(0, 16 - 1); Select.offset = new Vector2(-12, -1); Select.stereoscopic = Config.PREPUNIT_INPUTHELP_DEPTH; }
protected void initialize_sprites() { // Black Screen Black_Screen = new Sprite(); Black_Screen.texture = Global.Content.Load <Texture2D>( @"Graphics/White_Square"); Black_Screen.dest_rect = new Rectangle(0, 0, Config.WINDOW_WIDTH, Config.WINDOW_HEIGHT); Black_Screen.tint = new Color(0, 0, 0, 255); // Background Background = new Menu_Background(); Background.texture = Global.Content.Load <Texture2D>( @"Graphics/Pictures/Status_Background"); (Background as Menu_Background).vel = new Vector2(-0.25f, 0); (Background as Menu_Background).tile = new Vector2(3, 2); Background.stereoscopic = Config.MAPMENU_BG_DEPTH; // Cancel Button CancelButton = Button_Description.button(Inputs.B, 32); CancelButton.loc = new Vector2(32, Config.WINDOW_HEIGHT - 24); CancelButton.description = "Cancel"; CancelButton.stereoscopic = Config.MAPCOMMAND_HELP_DEPTH; RankingIcons = new Sprite(); RankingIcons.texture = Global.Content.Load <Texture2D>( @"Graphics/Pictures/RankingIcons"); RankingIcons.loc = DATA_OFFSET + new Vector2(48, -16); DataBackground = new Sprite(); DataBackground.texture = Global.Content.Load <Texture2D>( @"Graphics/White_Square"); DataBackground.dest_rect = new Rectangle( 0, (int)DATA_OFFSET.Y, Config.WINDOW_WIDTH, ROWS * 16); DataBackground.tint = new Color(0, 0, 0, 128); // Style StyleText = new TextSprite(); StyleText.loc = new Vector2( Config.WINDOW_WIDTH - 112, Config.WINDOW_HEIGHT - 24); StyleText.SetFont(Config.UI_FONT, Global.Content, "Blue"); StyleText.text = Global.game_system.Style.ToString(); StyleText.stereoscopic = Config.DATA_LEADER_DEPTH; // Difficulty DifficultyText = new TextSprite(); DifficultyText.loc = new Vector2( Config.WINDOW_WIDTH - 56, Config.WINDOW_HEIGHT - 24); DifficultyText.SetFont(Config.UI_FONT, Global.Content, "Blue"); DifficultyText.text = Difficulty.ToString(); DifficultyText.stereoscopic = Config.DATA_LEADER_DEPTH; refresh_rankings(Chapter); }
protected void refresh_input_help() { Start = Button_Description.button(Inputs.Start, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(142, 41, 32, 16)); Start.loc = new Vector2(Config.WINDOW_WIDTH / 2, Config.WINDOW_HEIGHT) + new Vector2(-128, -16); Start.offset = new Vector2(0, 3); B_Button = Button_Description.button(Inputs.B, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(123, 105, 24, 16)); B_Button.loc = new Vector2(Config.WINDOW_WIDTH / 2, Config.WINDOW_HEIGHT) + new Vector2(-16, -16); B_Button.offset = new Vector2(0, 3); R_Button = Button_Description.button(Inputs.R, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(126, 122, 24, 16)); R_Button.loc = new Vector2(Config.WINDOW_WIDTH / 2, Config.WINDOW_HEIGHT) + new Vector2(80, -16); R_Button.offset = new Vector2(0, 2); }
private void create_convo_skip_buttons() { SkipButton = Button_Description.button(Inputs.Start, Config.WINDOW_WIDTH - 40); SkipButton.description = "Skip"; SkipButton.stereoscopic = Config.CONVO_TEXT_DEPTH; if (has_convo_scene_button) { SceneButton = Button_Description.button(Inputs.B, Config.WINDOW_WIDTH - 80); SceneButton.description = "Scene"; SceneButton.stereoscopic = Config.CONVO_TEXT_DEPTH; } }
protected override void refresh_input_help() { R_Button = Button_Description.button(Inputs.R, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(126, 122, 24, 16)); R_Button.loc = Backing_1.loc + new Vector2(32, 16 - 4); R_Button.offset = new Vector2(2, -2); R_Button.stereoscopic = Config.PREPUNIT_INPUTHELP_DEPTH; Start = Button_Description.button(Inputs.Start, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(142, 41, 32, 16)); Start.loc = Backing_2.loc + new Vector2(32, 0 - 1); Start.offset = new Vector2(0, -1); Start.stereoscopic = Config.PREPUNIT_INPUTHELP_DEPTH; Select = Button_Description.button(Inputs.Select, Global.Content.Load <Texture2D>(@"Graphics/Windowskins/Preparations_Screen"), new Rectangle(150, 73, 48, 16)); Select.loc = Backing_2.loc + new Vector2(24, 16 - 1); Select.offset = new Vector2(-12, -1); Select.stereoscopic = Config.PREPUNIT_INPUTHELP_DEPTH; }
public ItemUseMenu(int actorId, Vector2 loc, IHasCancelButton menu = null) : base(null, menu) { ActorId = actorId; CreateItemWindow(actorId, loc); CreateStatsWindow(); Stats_Info_Bg = new Sprite(); Stats_Info_Bg.texture = Global.Content.Load <Texture2D>( @"Graphics\White_Square"); Stats_Info_Bg.dest_rect = new Rectangle(Config.WINDOW_WIDTH - 160, Config.WINDOW_HEIGHT - 58, 160, 52); Stats_Info_Bg.tint = new Color(0f, 0f, 0f, 0.5f); RButton = Button_Description.button(Inputs.R, Global.Content.Load <Texture2D>( @"Graphics\Windowskins\Preparations_Screen"), new Rectangle(126, 122, 24, 16)); RButton.loc = new Vector2(216, 172) + new Vector2(60, -16); RButton.offset = new Vector2(-1, -1); RButton.stereoscopic = Config.PREPITEM_FUNDS_DEPTH; }
private void CreateCancelButton(int x, float depth = 0) { CancelButton = Button_Description.button(Inputs.B, x); CancelButton.description = "Cancel"; CancelButton.stereoscopic = depth; }
protected virtual void CreateFullCreditsButton() { FullCreditsButton = Button_Description.button(Inputs.X, this.DefaultCancelPosition - 80); FullCreditsButton.description = "Full Credits"; FullCreditsButton.stereoscopic = Config.MAPCOMMAND_WINDOW_DEPTH; }