protected override void DoDraw(IBatchRenderer sbatch, FRectangle bounds) { if (IsPointerDownOnElement) { HUDRenderHelper.DrawBackground(sbatch, bounds, BackgroundPressed); } else { HUDRenderHelper.DrawBackground(sbatch, bounds, BackgroundNormal); } }
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); } }
protected override void DoDraw(IBatchRenderer sbatch, FRectangle bounds) { HUDRenderHelper.DrawBackground(sbatch, bounds, Background); }