Code: Select all
add Text ( "Your Text Here", text_align=0.5, slow=True) xcenter 0.5
Original Post
I feel like I've been asking too many things lately.
Anyway, so I have a screen and I want to center the text.
Here is my current code for this screen.
Code: Select all
screen testimony:
fixed: #The important part
xysize (680, 189) #(735, 122)
xpos 300 #273
ypos 481 #573
add Text ( "{size=50}[sta]", slow=True ) xcenter 0.5
imagemap:
ground "UI/debate_ui.png"
#Evidence
hotspot (7, 563, 286, 75) action Function(cycle_bullet, 1)
hotspot (7, 639, 286, 75) action Function(cycle_bullet, -1)
#Advance Testimony
hotspot (987, 563, 286, 150) action Return()
fixed:
xysize (680, 50)
xpos 300
ypos 670
text "{}".format(eval('bullet'+ str(bullet_selected)) ) color "#000" size 50 yalign 0.5
So my question, is there a way to make center the lines of text in a screen?
I welcome any input and suggestions. Thank you for your time.