protected override void draw_window(SpriteBatch sprite_batch) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Scroll Bar if (Scrollbar != null) { Scrollbar.draw(sprite_batch); } Description_Window.draw(sprite_batch); Description.draw(sprite_batch); CancelButton.Draw(sprite_batch); Banner.draw(sprite_batch); Banner_Text.draw(sprite_batch); sprite_batch.End(); // Labels sprite_batch.GraphicsDevice.ScissorRectangle = Scene_Map.fix_rect_to_screen(Data_Scissor_Rect); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, Scissor_State); OptionsNodes.Draw(sprite_batch, Offset); SettingsNodes.Draw(sprite_batch, Offset); if (on_soloanim && SoloAnim_Allowed) { Solo_Icon.draw(sprite_batch); } sprite_batch.End(); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Cursor OptionsCursor.draw(sprite_batch); SettingsCursor.draw(sprite_batch); // Page Arrows Up_Page_Arrow.draw(sprite_batch); Down_Page_Arrow.draw(sprite_batch); sprite_batch.End(); }
public override void Draw(SpriteBatch spriteBatch) { if (!MenusHidden) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); PanelNodes.Draw(spriteBatch, -MenuLoc); if (Moving && Move_Page == Page) { Move_Cursor.draw(spriteBatch, -(MenuLoc + Panels[Move_Index].loc)); } Left_Page_Arrow.draw(spriteBatch, -MenuLoc); Right_Page_Arrow.draw(spriteBatch, -MenuLoc); Cursor.draw(spriteBatch, -MenuLoc); spriteBatch.End(); if (Suspend_Panel != null) { Suspend_Panel.Draw(spriteBatch); } if (Cursor.visible) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); CancelButton.Draw(spriteBatch); spriteBatch.End(); } } }
public override void Draw(SpriteBatch spriteBatch) { if (DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Background.draw(spriteBatch); FaceWindow.draw(spriteBatch); NameBanner.draw(spriteBatch); Name.draw(spriteBatch); spriteBatch.End(); Rectangle faceClip = new Rectangle( (int)Face.loc.X + 8 - (FaceWindow.width / 2), (int)Face.loc.Y - (120 + FACE_CLIP_BOTTOM), FaceWindow.width - 16, 120); Face.draw(spriteBatch, Vector2.Zero, faceClip); Window.draw(spriteBatch); if (FieldBaseButton != null && DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); FieldBaseButton.Draw(spriteBatch); spriteBatch.End(); } base.Draw(spriteBatch); } }
protected override void draw_window(SpriteBatch sprite_batch) { draw_header(sprite_batch); draw_command_windows(sprite_batch); if (Item_Selection_Window != null) { Item_Selection_Window.draw(sprite_batch); } sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); HelpFooter.draw(sprite_batch); sprite_batch.End(); Item_Window.draw_help(sprite_batch); Supply_Window.draw_help(sprite_batch); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); //Command_Window.draw(sprite_batch); //Debug Supply_Window.draw_cursor(sprite_batch); Item_Window.draw_cursor(sprite_batch); R_Button.Draw(sprite_batch); // Labels // Data sprite_batch.End(); }
public override void Draw(SpriteBatch spriteBatch) { var itemWindow = Window as Window_Command_Item_Preparations; spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); Stats_Info_Bg.draw(spriteBatch); spriteBatch.End(); base.Draw(spriteBatch); if (Stats_Popup != null) { Stats_Popup.draw(spriteBatch); } spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Stats_Window.draw(spriteBatch); if (!Window.is_help_active) { RButton.Draw(spriteBatch, -new Vector2(0, 20)); } spriteBatch.End(); itemWindow.draw_help(spriteBatch); }
public override void Draw(SpriteBatch spriteBatch) { // Draw window spriteBatch.Begin( SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); DataWindow.draw(spriteBatch); if (Active) { CancelButton.Draw(spriteBatch); if (DifficultyChangeButtonVisible()) { DifficultyButton.Draw(spriteBatch); } } spriteBatch.End(); // Command window CommandWindow.draw(spriteBatch); if (ChapterCommandWindow != null) { ChapterCommandWindow.draw(spriteBatch); } }
protected override void draw_info(SpriteBatch sprite_batch) { Backing_2.draw(sprite_batch); base.draw_info(sprite_batch); Goal.draw(sprite_batch); R_Button.Draw(sprite_batch); Start.Draw(sprite_batch); }
public override void Draw(SpriteBatch spriteBatch) { if (CancelButton != null && DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); CancelButton.Draw(spriteBatch); spriteBatch.End(); } }
public override void Draw(SpriteBatch spriteBatch) { if (!MenusHidden) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); StyleNodes.Draw(spriteBatch, -MenuLoc); CancelButton.Draw(spriteBatch); spriteBatch.End(); } }
public override void Draw(SpriteBatch spriteBatch) { TradeWindow.draw(spriteBatch); if (CancelButton != null) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); CancelButton.Draw(spriteBatch); spriteBatch.End(); } }
protected override void draw_header(SpriteBatch sprite_batch) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Nameplate.draw(sprite_batch); Name.draw(sprite_batch); Stock_Banner.draw(sprite_batch); Owner.draw_multicolored(sprite_batch); SwitchButton.Draw(sprite_batch); sprite_batch.End(); Face.draw(sprite_batch); }
protected override void draw_window(SpriteBatch sprite_batch) { Window.draw(sprite_batch); if (!Closing && Input.ControlScheme != ControlSchemes.Buttons && (Shop_Messages)Message_Id != Shop_Messages.Leave && (Shop_Messages)Message_Id != Shop_Messages.Cancel) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); CancelButton.Draw(sprite_batch); sprite_batch.End(); } }
protected override void draw_window(SpriteBatch sprite_batch) { UnitWindow.draw(sprite_batch); DrawStatsWindow(sprite_batch); DrawHeader(sprite_batch); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); ChooseUnitWindow.draw(sprite_batch); ChooseUnitLabel.draw(sprite_batch, -ChooseUnitWindow.loc); sprite_batch.End(); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); RButton.Draw(sprite_batch, -new Vector2(0, 20)); sprite_batch.End(); }
protected virtual void draw_message_overlay( SpriteBatch spriteBatch, GraphicsDevice device, RenderTarget2D[] renderTargets) { if (SkipButton != null && Input.ControlScheme == ControlSchemes.Touch) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); SkipButton.Draw(spriteBatch, -SkipButtonOffset); if (SceneButton != null) { SceneButton.Draw(spriteBatch, -SkipButtonOffset); } spriteBatch.End(); } }
protected override void draw_window(SpriteBatch sprite_batch) { // //Yeti sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Banner_1.draw(sprite_batch); Banner_2.draw(sprite_batch); Name_1.draw(sprite_batch); Name_2.draw(sprite_batch); sprite_batch.End(); Trade_Window.draw(sprite_batch); // //Yeti sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); R_Button.Draw(sprite_batch); sprite_batch.End(); }
public override void Draw(SpriteBatch spriteBatch) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); CancelButton.Draw(spriteBatch); Window.draw(spriteBatch, -Loc); Divider.draw(spriteBatch, -Loc); Header.draw(spriteBatch, -Loc); foreach (var arrow in LeftArrows.Keys) { arrow.draw(spriteBatch, -Loc); } foreach (var arrow in RightArrows.Keys) { arrow.draw(spriteBatch, -Loc); } Items.Draw(spriteBatch, -Loc); UICursor.draw(spriteBatch, -Loc); spriteBatch.End(); }
public override void Draw(SpriteBatch sprite_batch) { if (this.DataDisplayed) { draw_map_darken(sprite_batch); if (Map_Darken_Time == 0) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // //Yeti Start.Draw(sprite_batch); B_Button.Draw(sprite_batch); R_Button.Draw(sprite_batch); sprite_batch.End(); Command_Window.draw(sprite_batch); } } base.Draw(sprite_batch); }
protected override void draw_window(SpriteBatch sprite_batch) { Vector2 scroll = new Vector2((int)Scroll.X, (int)Scroll.Y); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); DataBackground.draw(sprite_batch); //for (int i = 0; i < Math.Ceiling(Nodes.Count / (float)ROWS); i++) //Debug // RankingIcons.draw(sprite_batch, -new Vector2(i * COLUMN_WIDTH, 0)); Nodes.Draw(sprite_batch, scroll); Cursor.draw(sprite_batch, scroll); CancelButton.Draw(sprite_batch); StyleText.draw(sprite_batch); //DifficultyText.draw(sprite_batch); //Debug sprite_batch.End(); if (DetailedRanking != null) { DetailedRanking.draw(sprite_batch); } }
public override void Draw(SpriteBatch spriteBatch) { if (DataDisplayed) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Background.draw(spriteBatch); if (Scrollbar != null) { Scrollbar.draw(spriteBatch); } spriteBatch.End(); RasterizerState scissorState = new RasterizerState { ScissorTestEnable = true }; Rectangle textClip = new Rectangle( (int)BASE_OFFSET.X, (int)BASE_OFFSET.Y, Config.WINDOW_WIDTH - (int)(BASE_OFFSET.X * 2), Config.WINDOW_HEIGHT - (int)(BASE_OFFSET.Y * 2)); spriteBatch.GraphicsDevice.ScissorRectangle = Scene_Map.fix_rect_to_screen(textClip); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, scissorState); foreach (var text in CreditsText) { text.draw(spriteBatch, ScrollOffset - BASE_OFFSET); } spriteBatch.End(); if (FullCreditsButton != null) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); FullCreditsButton.Draw(spriteBatch); spriteBatch.End(); } } base.Draw(spriteBatch); }
protected override void draw_window(SpriteBatch sprite_batch) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Banner.draw(sprite_batch); Goal.draw(sprite_batch); ChapterLabel.draw(sprite_batch); // Windows InfoWindow.draw(sprite_batch); CommandHelpWindow.draw(sprite_batch); HelpText.draw(sprite_batch); sprite_batch.End(); CommandWindow.draw(sprite_batch); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); draw_info(sprite_batch); if (!PressedStart || PressStartFlicker < 4) { StartButton.Draw(sprite_batch); } sprite_batch.End(); }
protected virtual void draw_info(SpriteBatch sprite_batch) { Backing_1.draw(sprite_batch); Select.Draw(sprite_batch); }
public override void Draw(SpriteBatch sprite_batch) { Vector2 offset = new Vector2(0, Offset.Y); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Background.draw(sprite_batch); // Draw Windows // // Page // Pages[page].draw(sprite_batch, Offset); if (Delay > 0 && changing_page) { if (Direction == 6 ^ Delay < 12) { Pages[(page + 1 + Pages.Count) % Pages.Count].draw(sprite_batch, Offset - new Vector2(PAGE_SPACING + 320, 0)); } else { Pages[(page - 1 + Pages.Count) % Pages.Count].draw(sprite_batch, Offset + new Vector2(PAGE_SPACING + 320, 0)); } } //if (changing_page) // Background.draw(sprite_batch, new Color(Bg_Alpha, Bg_Alpha, Bg_Alpha, Bg_Alpha)); // Top Panel // // Page Arrows Left_Page_Arrow.draw(sprite_batch, offset); Right_Page_Arrow.draw(sprite_batch, offset); Face_Bg.draw(sprite_batch, offset); if (Input.ControlScheme == ControlSchemes.Touch) { CancelButton.Draw(sprite_batch); } sprite_batch.End(); Face.draw(sprite_batch, offset); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Top_Panel.draw(sprite_batch, offset); Platform.draw(sprite_batch, offset); //LvLabel.draw(sprite_batch, offset); //HpLabel.draw(sprite_batch, offset); //Lv_Hp_Labels_Other.draw(sprite_batch, offset); //foreach (RightAdjustedText stat in Lv_Hp_Values) // stat.draw(sprite_batch, offset); foreach (TextSprite label in Battle_Stat_Labels) { label.draw(sprite_batch, offset); } Map_Sprite.draw(sprite_batch, offset); foreach (var node in TopPanelNodes) { node.Draw(sprite_batch, offset); } if (Global.game_map.icons_visible) { Rescue_Icon.draw(sprite_batch, offset); } if (changing_unit) { Color bg_tint = Background.tint; Background.tint = new Color(Bg_Alpha, Bg_Alpha, Bg_Alpha, Bg_Alpha); Background.draw(sprite_batch); Background.tint = bg_tint; } Black_Screen.draw(sprite_batch); sprite_batch.End(); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); if (Help_Window != null) //Debug { StatusCursors[page].draw(sprite_batch, offset); } sprite_batch.End(); if (Help_Window != null) { Help_Window.draw(sprite_batch); } }
public override void Draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2)) { Text.draw(sprite_batch, draw_offset - (loc + draw_vector())); Value.Draw(sprite_batch, draw_offset - (loc + draw_vector())); }
protected override void draw_info(SpriteBatch sprite_batch) { base.draw_info(sprite_batch); CancelButton.Draw(sprite_batch); }