Code: Select all
screen choice(items):
frame:
style "other_frame"
xalign 0.5
yalign 0.5
hbox:
xmaximum 650
viewport id "men_bar":
xalign 0.5 yalign 0.5
xysize (600, 400) #Could shorten hight as it not to clip in the image
#scrollbars "vertical" style "viewport_menu"
#spacing 5
draggable True
#edgescroll (100, 500)
mousewheel True
arrowkeys True
window:
at choice_menu_transition ###Added as test to see if I can transition them in and out?
style "menu_window"
#xalign 0.5
yalign 0.5
vbox:
style "menu"
spacing 2
for caption, action, chosen in items:
if action:
#This is the test code
$ randomSTYLE = renpy.random.randint(1, 3)
if randomSTYLE == 1:
button:
action action
style "menu_choice_button"
text caption style "menu_choice"
elif randomSTYLE == 2:
button:
action action
style "button_test2"
text caption style "button_text_test2"
elif randomSTYLE == 3:
button:
action action
style "button_test3"
text caption style "button_text_test3"
# button:
# action action
# style "menu_choice_button"
#
# text caption style "menu_choice"
else:
text caption style "menu_caption"
bar value YScrollValue("men_bar") ymaximum 400 style "viewport_menu"
And while it technickly works, it jumps around, so that the styles shift around while I'm reading the options. The idea was simply to have not all buttons look statickly the same. Any Ideas????