Better text in screens

This commit is contained in:
Gouvernathor 2023-11-15 23:24:55 +01:00
parent 32cf1de3a0
commit 23a264c8f4
1 changed files with 2 additions and 3 deletions

View File

@ -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