Page 1 of 1

I want to positioning choice buttons horizontally

Posted: Mon Jan 15, 2018 8:05 am
by civcommander
Hi together,

I want to display my choice buttons side by side for the whole game but i didnt found anything in gui.rpy and screens.rpy. I can change position, size etc. and things like this...


Maybe somebody knows a solution?

thanks for your help!

Re: I want to positioning choice buttons horizontally

Posted: Mon Jan 15, 2018 11:24 am
by zankizuna
use hbox!

Code: Select all

screen myscreen:
    hbox:
       xalign 0.5 yalign 0.5
       textbutton "myfirstbutton.png" action Return()
       textbutton "mysecondbutton.png"  action Return()

This shows two buttons in the middle.

Re: I want to positioning choice buttons horizontally

Posted: Mon Jan 15, 2018 8:11 pm
by zankizuna
actually , go replace vbox in screens.rpy/screen choice, into hbox.

Re: I want to positioning choice buttons horizontally

Posted: Tue Jan 16, 2018 4:27 am
by civcommander
Hello,

thank you for your answer, it works... (vbox = vertical, hbox = horizontal...) :D

have a nice day!!