예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 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);
 }