

Look at these beautiful mock-ups, haha.
Is this a possible thing to do? And if it is, could someone explain the code to me? Thanks a ton!


Code: Select all
screen choice(items):
window:
style "menu_window"
xalign 0.3 # off centre
yalign 0.6 # off centre
xsize 0.8 # width 80%
background "#ccc8" # light gray at 50% opacity
xpadding 25 ypadding 25 # padding 25px
vbox:
style "menu"
spacing 2
for caption, action, chosen in items:
if action:
button:
action action
style "menu_choice_button"
xsize 1.0 # width 100%
idle_background None # transparent
hover_background "#f66" # pink
xpadding 50 # padding 50px
text caption:
style "menu_choice"
color "#f66"
hover_color "#fff"
xcenter 0.0 # align left
else:
text caption style "menu_caption"
# add the displayable
add "choice_protag" xalign 0.8 yalign 0.6
init:
# protag image displayable
image choice_protag:
Image("placeholder.png", xsize=100, ysize=100)
Thank you so much! This was easy to understand, and you definitely helped with all of the reference links and the notes. I appreciate this incredibly, and I'll get to testing this and tweaking it right away.SinnyROM wrote:-snip-

Users browsing this forum: Ocelot