From 3504e88a9a628b7947358424f04ded59c00faf77 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 7 May 2025 13:48:00 -0500 Subject: [PATCH] ellipsis-truncate PC names on startup screen --- src/game/boe.graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/boe.graphics.cpp b/src/game/boe.graphics.cpp index b78fbf4b..8874e050 100644 --- a/src/game/boe.graphics.cpp +++ b/src/game/boe.graphics.cpp @@ -369,7 +369,9 @@ void draw_startup_stats() { style.pointSize = 14; pc_rect.offset(35,0); - win_draw_string(mainPtr(),pc_rect,univ.party[i].name,eTextMode::WRAP,style); + rectangle name_rect = pc_rect; + name_rect.width() = frame_rect.width() * 0.4; + win_draw_string(mainPtr(),name_rect,univ.party[i].name,eTextMode::ELLIPSIS,style); to_rect.offset(pc_rect.left + 8,pc_rect.top + 8); }