Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Hi, wasn't active with RenPy in a long time and thought with the new version I could go back and have some fun.
So I wrote a little screen for my Interface but instead of separating the two items in the hbox "xalign"' seems to be ignored.
screen scr_topBar():
frame:
xpos 0
ypos 0
xsize 1280
ysize 75
hbox:
xsize 1280
text s_location
text "€" + str(mc.i_cash) xalign 1.0 #this part should be at the right side of my bar
Last edited by HochElf on Thu Jan 07, 2021 4:34 am, edited 1 time in total.
hbox:
xsize 1280
textbutton s_location background "#888"
textbutton "€" + str(mc.i_cash) xalign 1.0 background "#808" #this part should be at the right side of my bar
hbox:
xsize 1280
xfill True
textbutton s_location background "#888"
textbutton "€" + str(mc.i_cash) xalign 1.0 background "#808" #this part should be at the right side of my bar
Even if hbar size is full width it does not use whole width, unless you specify to do it with xfill True.