1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Update members of TextUnderline

This commit is contained in:
Gymnasiast
2025-10-16 20:05:20 +02:00
parent 5e6f5ceb6f
commit 6340cd7e51
3 changed files with 6 additions and 6 deletions

View File

@@ -435,7 +435,7 @@ namespace OpenRCT2::Ui::Windows
DrawTextBasic(
rt, screenCoords + ScreenCoordsXY{ kExpenditureColumnWidth, 0 },
monthyear == currentMonthYear ? STR_WINDOW_COLOUR_2_STRINGID : STR_BLACK_STRING, ft,
{ TextUnderline::On, TextAlignment::RIGHT });
{ TextUnderline::on, TextAlignment::RIGHT });
screenCoords.y += 14;
// Month expenditures
@@ -597,7 +597,7 @@ namespace OpenRCT2::Ui::Windows
// Expenditure / Income heading
DrawTextBasic(
rt, screenCoords, STR_FINANCES_SUMMARY_EXPENDITURE_INCOME, {},
{ COLOUR_BLACK, TextUnderline::On, TextAlignment::LEFT });
{ COLOUR_BLACK, TextUnderline::on, TextAlignment::LEFT });
screenCoords.y += 14;
// Expenditure / Income row labels

View File

@@ -98,7 +98,7 @@ void DrawText(RenderTarget& rt, const ScreenCoordsXY& coords, const TextPaint& p
TTFDrawString(rt, text, paint.Colour, alignedCoords, noFormatting, paint.FontStyle, paint.Darkness);
if (paint.UnderlineText == TextUnderline::On)
if (paint.UnderlineText == TextUnderline::on)
{
Rectangle::fill(
rt, { { alignedCoords + ScreenCoordsXY{ 0, 11 } }, { alignedCoords + ScreenCoordsXY{ width, 11 } } },

View File

@@ -30,8 +30,8 @@ enum class TextAlignment
enum class TextUnderline
{
Off,
On,
off,
on,
};
enum class TextDarkness
@@ -45,7 +45,7 @@ struct TextPaint
{
ColourWithFlags Colour = { COLOUR_BLACK };
::FontStyle FontStyle = FontStyle::Medium;
TextUnderline UnderlineText = TextUnderline::Off;
TextUnderline UnderlineText = TextUnderline::off;
TextAlignment Alignment = TextAlignment::LEFT;
TextDarkness Darkness = TextDarkness::regular;