示例#1
0
 protected override void DoDraw(IBatchRenderer sbatch, FRectangle bounds)
 {
     if (IsPointerDownOnElement)
     {
         HUDRenderHelper.DrawBackground(sbatch, bounds, BackgroundPressed);
     }
     else
     {
         HUDRenderHelper.DrawBackground(sbatch, bounds, BackgroundNormal);
     }
 }
示例#2
0
        protected override void DoDraw(IBatchRenderer sbatch, FRectangle bounds)
        {
            if (IsFocused)
            {
                HUDRenderHelper.DrawBackground(sbatch, bounds, BackgroundFocused);
            }
            else
            {
                HUDRenderHelper.DrawBackground(sbatch, bounds, BackgroundNormal);
            }

            if (Text == "" && !IsFocused)
            {
                DrawPlaceholder(sbatch, bounds, Padding, Padding);
            }
            else
            {
                DrawText(sbatch, bounds, Padding, Padding);
            }
        }
示例#3
0
 protected override void DoDraw(IBatchRenderer sbatch, FRectangle bounds)
 {
     HUDRenderHelper.DrawBackground(sbatch, bounds, Background);
 }