Пример #1
0
 public void Render(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     //spriteBatch.Draw(TexturePool.GetTexture("menuscreen"), new Vector2(0,0), Color.White);
     mainSelect.Draw(spriteBatch);
     spriteBatch.End();
 }
Пример #2
0
        void OnPostRender()
        {
            if (!Input.GetMouseButton(0) || _hasSelectedSingle)
            {
                return;
            }

            var selectBox = new SelectBox(_selectBoxStartCorner, Input.mousePosition);

            if (_material)
            {
                selectBox.Draw(_material);
            }

            TrySelectMultipleUnits(selectBox);
        }
Пример #3
0
 public void Render(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     itemOptions.Draw(spriteBatch);
     for (int x = 0; x < itemGrid.GetLength(0); x++)
     {
         for (int y = 0; y < itemGrid.GetLength(1); y++)
         {
             spriteBatch.Draw(TexturePool.GetTexture("itemSlot"), new Vector2(x * 34 + 64, y * 34 + 64), Color.White);
             if (itemGrid[x, y] != null)
             {
                 spriteBatch.Draw(itemGrid[x, y].Item.itemImage, new Vector2(x * 34 + 64, y * 34 + 64), Color.White);
                 spriteBatch.DrawString(TexturePool.GetFont("dialogue_font"), itemGrid[x, y].StackSize.ToString(), new Vector2(x * 34 + 70, y * 34 + 70), Color.Black);
             }
         }
     }
     spriteBatch.End();
 }
Пример #4
0
 public void Render(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     MenuOptions.Draw(spriteBatch);
     spriteBatch.End();
 }