public override void Draw(GameTime gameTime) { if (!Visible) { return; } SpriteBatch.Begin(); _speechBubble.Alpha = Alpha; _speechBubble.Draw(gameTime); if (_selectedItem != null) { _selectedItem.Alpha = Alpha; _selectedItem.Draw(gameTime); } base.Draw(gameTime); SpriteBatch.End(); if (HasFocus) { _scrollableRenderTarget.Alpha = Alpha; _scrollableRenderTarget.Draw(gameTime); } }
public override void Draw(GameTime gameTime) { if (!Visible) { return; } if (BarHeight != Height) { _barraDown.Draw(gameTime); _barraUp.Draw(gameTime); } base.Draw(gameTime); }