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(); } } }
protected override void draw_window(SpriteBatch sprite_batch) { Vector2 offset = PageLoc; draw_leader_data(sprite_batch, offset); draw_file_data(sprite_batch, offset); if (page == 0 || ChangingPage) { draw_team_data(sprite_batch, offset); } if (page == 1 || ChangingPage) { draw_gameplay_data(sprite_batch, offset); draw_ranking_data(sprite_batch, offset); } draw_objective_data(sprite_batch, offset); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Banner BannerBg.draw(sprite_batch); Banner.draw(sprite_batch); // Page Arrows if (page == 0 || ChangingPage) { Right_Page_Arrow.draw(sprite_batch); } if (page == 1 || ChangingPage) { Left_Page_Arrow.draw(sprite_batch); } sprite_batch.End(); }
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); } }