public void AddSpriteRenderer(SpriteBatch batch) { FrameBackground.AddSpriteRenderer(batch); for (int i = 0; i < Length; i++) { UIObject item = this[i].Item; if (item != null) { item.AddSpriteRenderer(batch); } } }
public override void AddSpriteRenderer(SpriteBatch batch) { _spriteRenderer = batch; for (int i = 0; i < Length; i++) { UIObject item = this[i].Item; if (item != null) { item.AddSpriteRenderer(batch); } } }
public override void AddDefaultRenderers(UIObject item) { item.AddSpriteRenderer(_spriteRenderer); item.AddStringRenderer(_stringRenderer); }