From b34dc20901b313ef9c4da542fc79ce2a1ea074f0 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:24:55 +0100 Subject: [PATCH] Better text in screens (cherry picked from commit 23a264c8f476a126ab4482a4394a4cb6422ed93b) --- game/scripts/interface/stats.rpy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/game/scripts/interface/stats.rpy b/game/scripts/interface/stats.rpy index c4dac958..79489418 100644 --- a/game/scripts/interface/stats.rpy +++ b/game/scripts/interface/stats.rpy @@ -434,9 +434,8 @@ screen stat_bar(steps, top_text, bottom_text, stat_number, top_padding=20): add Crop((0, 0, steps*36, 600), gui.format("interface/stats/{}/bar_full.webp")) add gui.format("interface/stats/{}/bar_empty.webp") - text bottom_text+" (lvl " +str(stat_number)+ ")" xalign 0.5 size 20 + text "[bottom_text] (lvl [stat_number])" xalign 0.5 size 20 screen text_stat(startText="", endText="", amount="", top_padding = 20): sensitive False - - text (startText +str(amount)+ endText) xpos 20 size 14 + text "[startText][amount][endText]" xpos 20 size 14