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 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(); } }