protected virtual void draw_cursor(SpriteBatch sprite_batch, Vector2 draw_offset) { if (Active) { Cursor.draw(sprite_batch, draw_offset - (loc + draw_vector() + new Vector2(-8, 8))); } }
public void draw(SpriteBatch sprite_batch) { if (visible) { Face1.draw(sprite_batch, -face_draw_vector()); Face2.draw(sprite_batch, -face_draw_vector()); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Window background Window1.draw(sprite_batch, -draw_vector()); Window2.draw(sprite_batch, -draw_vector()); // Text underline draw_bar(sprite_batch); draw_items(sprite_batch); // Cursor if (Grey_Cursor.visible) { Grey_Cursor.draw(sprite_batch, -(loc + draw_vector())); } if (active) { UICursor.draw(sprite_batch, -(loc + draw_vector())); } sprite_batch.End(); if (is_help_active) { Help_Window.draw(sprite_batch); } } }
public void draw(SpriteBatch sprite_batch) { Vector2 offset = this.loc + draw_vector(); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Window draw_window(sprite_batch); // Scroll Bar if (Scrollbar != null) { Scrollbar.draw(sprite_batch, -offset); } sprite_batch.End(); // Map Sprites draw_units(sprite_batch); sprite_batch.GraphicsDevice.ScissorRectangle = Scene_Map.fix_rect_to_screen(Unit_Scissor_Rect); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, Scissor_State); draw_selected_cursor(sprite_batch); sprite_batch.End(); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); if (Active) { UnitCursor.draw(sprite_batch, -draw_vector()); } sprite_batch.End(); }
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 (_Visible) { draw_background(spriteBatch); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Darkened_Bar.draw(spriteBatch); spriteBatch.End(); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Portrait_Bg.draw(spriteBatch); if (Portrait_Label != null) { Portrait_Label.draw(spriteBatch); } spriteBatch.End(); Face.draw(spriteBatch); draw_window(spriteBatch); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Gold_Window.draw(spriteBatch); Gold_Data.draw(spriteBatch); Gold_G.draw(spriteBatch); spriteBatch.End(); spriteBatch.GraphicsDevice.ScissorRectangle = Scene_Map.fix_rect_to_screen(Item_Rect); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, Item_State); //foreach (Shop_Item item in Item_Data) //Debug { }//item.draw(sprite_batch, new Vector2(0, Scroll_Real)); //Debug spriteBatch.End(); Message.draw_background(spriteBatch); Message.draw_faces(spriteBatch); Message.draw_foreground(spriteBatch); if (Choices != null) { spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Choices.Draw(spriteBatch); Cursor.draw(spriteBatch); spriteBatch.End(); } } spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Black_Screen.draw(spriteBatch); spriteBatch.End(); }
public virtual void draw_cursor(SpriteBatch sprite_batch) { if (Input.ControlScheme != ControlSchemes.Mouse) { if (Greyed_Cursor) { Grey_Cursor.draw(sprite_batch, -(loc + text_draw_vector())); } } if (active && Items.ActiveNode != null) { UICursor.draw(sprite_batch, -(loc + text_draw_vector())); } }
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(); }
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_cursor(SpriteBatch sprite_batch) { if (Input.ControlScheme != ControlSchemes.Mouse) { if (Greyed_Cursor) { Grey_Cursor.draw(sprite_batch, -(loc + text_draw_vector())); } } if (!SettingSelected && active && Items.ActiveNode != null) { UICursor.draw(sprite_batch, -(loc + text_draw_vector())); } if (Input.ControlScheme != ControlSchemes.Mouse) { if (SettingSelected) { SelectedSettingCursor.draw(sprite_batch, -(loc + text_draw_vector())); } } }