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(); }
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) { base.draw(sprite_batch); if (active) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Page Arrows Up_Page_Arrow.draw(sprite_batch, -(loc + draw_vector())); Down_Page_Arrow.draw(sprite_batch, -(loc + draw_vector())); sprite_batch.End(); } }