public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(_background, 39, 29);
     TextRender.DrawText(canvas, _operateItems[_firstIndex], _strX, _strY);
     TextRender.DrawText(canvas, _operateItems[_firstIndex + 1], _strX, _strY + 16);
     TextRender.DrawText(canvas, _operateItems[_firstIndex + 2], _strX, _strY + 32);
     TextRender.DrawSelText(canvas, _operateItems[_selectedIndex], _strX, _selectedY);
     canvas.DrawBitmap(_arrowImgs[_arrowImgIndex], _arrowX, _arrowY);
 }
Example #2
0
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(_rectangleTopImg, 9, 3);
     TextRender.DrawText(canvas, "金钱:" + Context.PlayContext.Money, 9 + 3, 3 + 3);
     canvas.DrawBitmap(_rectangleLeftImg, 9, 3 + 16 + 6 - 1);
     TextRender.DrawText(canvas, _menuItemsText, 0, _menuItemsRect);
     TextRender.DrawSelText(canvas, _operateItems[_selectIndex], _menuItemsRect.Left,
                            _menuItemsRect.Top + _selectIndex * 16);
 }
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(_background, 39, 39);
     if (_selectedId == 0)
     {
         TextRender.DrawSelText(canvas, _operateItems[0], 39 + 3, 39 + 3);
         TextRender.DrawText(canvas, _operateItems[1], 39 + 3, 39 + 3 + 16);
     }
     else if (_selectedId == 1)
     {
         TextRender.DrawText(canvas, _operateItems[0], 39 + 3, 39 + 3);
         TextRender.DrawSelText(canvas, _operateItems[1], 39 + 3, 39 + 3 + 16);
     }
 }
Example #4
0
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(bg, 50, 14);
     for (int i = 0; i < itemsText.Length; i++)
     {
         if (i != curSel)
         {
             TextRender.DrawText(canvas, itemsText[i], 50 + 3, 14 + 3 + 16 * i);
         }
         else
         {
             TextRender.DrawSelText(canvas, itemsText[i], 50 + 3, 14 + 3 + 16 * i);
         }
     }
 }
Example #5
0
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(_background, 27, 15);
     TextRender.DrawText(canvas, _message, 33, 23);
     if (_selectedIndex == 0)
     {
         TextRender.DrawSelText(canvas, "是 ", 45, 53);
         TextRender.DrawText(canvas, "否 ", 93, 53);
     }
     else if (_selectedIndex == 1)
     {
         TextRender.DrawText(canvas, "是 ", 45, 53);
         TextRender.DrawSelText(canvas, "否 ", 93, 53);
     }
 }
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(_background, 50, 14);
     for (int i = 0; i < _names.Length; i++)
     {
         if (i != _selectedIndex)
         {
             TextRender.DrawText(canvas, _names[i], 50 + 3, 14 + 3 + 16 * i);
         }
         else
         {
             TextRender.DrawSelText(canvas, _names[i], 50 + 3, 14 + 3 + 16 * i);
         }
     }
 }
Example #7
0
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(this._frameImg, this._frameRect.Left, this._frameRect.Top);
     for (int i = 0; i < _characterCount; i++)
     {
         if (i == _selectedIndex)
         {
             TextRender.DrawSelText(canvas, _names[i], this._frameRect.Left + 3, this._frameRect.Top + 3 + 16 * i);
         }
         else
         {
             TextRender.DrawText(canvas, _names[i], this._frameRect.Left + 3, this._frameRect.Top + 3 + 16 * i);
         }
     }
 }
        public override void Draw(ICanvas canvas)
        {
            canvas.DrawBitmap(_background, _menuItemsRect.Left - Padx, _menuItemsRect.Top - Pady);

            for (int i = 0; i < _menuItems.Count; i++)
            {
                if (i != _selectIndex)
                {
                    TextRender.DrawText(canvas, _menuItems[i], _menuItemsRect.Left, _menuItemsRect.Top + 16 * i);
                }
                else
                {
                    TextRender.DrawSelText(canvas, _menuItems[i], _menuItemsRect.Left, _menuItemsRect.Top + 16 * i);
                }
            }
        }
Example #9
0
 public override void Draw(ICanvas canvas)
 {
     _backgroudImage.Draw(canvas, 1, 0, 0);
     for (int i = 0; i < _headImgs.Count; i++)
     {
         for (int j = 0; j < _headImgs[i].Count; j++)
         {
             ResImage img = _headImgs[i][j];
             if (img != null)
             {
                 img.Draw(canvas, 7, 8 + 20 * j, _textPos[i, 1] - 6);
             }
         }
     }
     TextRender.DrawText(canvas, _texts[0], _textPos[0, 0], _textPos[0, 1]);
     TextRender.DrawText(canvas, _texts[1], _textPos[1, 0], _textPos[1, 1]);
     TextRender.DrawText(canvas, _texts[2], _textPos[2, 0], _textPos[2, 1]);
     TextRender.DrawSelText(canvas, _texts[_index], _textPos[_index, 0], _textPos[_index, 1]);
 }
Example #10
0
 public override void Draw(ICanvas canvas)
 {
     canvas.DrawBitmap(_background, 29, 14);
     TextRender.DrawText(canvas, _menuItems, 0, _showRectangle);
     TextRender.DrawSelText(canvas, _menuSelectItems[_curSelectedIndex], _showRectangle.Left, _showRectangle.Top + 16 * _curSelectedIndex);
 }