Well anyway, i thought about it, and i thought well, why not try for all sides torn?
Like passing notes in class, or something. Anyway, i kind of like it but what does everyone think?
I think this would be a really cute idea!Well, if you had 2:
Choice 1 = Top clean, bottom ripped
Choice 2 = Top ripped, bottom clean
And if 4:
Choice 1 = Clean top, ripped bottom
Choice 2, 3 = Ripped top and bottom
Choice 4 = Ripped top, clean bottom?
Code: Select all
screen choice:
$ choicenum = 0 #keeps track of the menu choice's number
window:
style "menu_window"
xalign 0.5
yalign 0.5
vbox:
style "menu"
spacing 2
for caption, action, chosen in items: #loop through all the choices in the menu
if action:
$ choicenum +=1 #increase the menu choice number by 1
if choicenum == 1: #first choice in menu
button:
action action
text caption style "menu_choice"
style "topbutton" #use style for the top button, which we will define below
elif choicenum == len(items): #last choice in menu
button:
action action
text caption style "menu_choice"
style "bottombutton" #use style for the last button, which we will define below
else: #all the middle choices
button:
action action
text caption style "menu_choice"
style "menu_choice_button" #use the regular button style
else:
text caption style "menu_caption"
Code: Select all
style.topbutton = Style("menu_choice_button") # define a new style based on the menu button
style.topbutton.background = "topbutton.png" #the new background for the top button
# add more options here if you want
style.bottombutton = Style("menu_choice_button") # define a new style based on the menu button
style.bottombutton.background = "bottombutton.png" #the new background for the bottombutton
# add more options here if you want

Hmm, that's strange - that code has worked okay for me. Can you post each of the images you are using, as well as your "options.rpy" file? I can give it a go on my computer as well.@ Arowana - i tried that code, but it didnt really work out see:
Yeah, you would just have to switch "vbox" to "hbox" in the choice screen and possibly modify the button style's dimensions. I imagine that might be hard to read, though, because long choices would get squished into narrow columns.actually, i wonder is there a way i could make the choices appear side by side like CHOICE 1 | CHOICE 2 | CHOICE 3?
Sure, just make an image of the paper background. Then you can put the image in your choice screen using the add statement (make sure to switch your button backgrounds to None). You can make "Which choice do you want?" part of the paper image, or add it onto the screen using the text statemet.oh! actually even like have a piece of paper and atop has the question (ex "Which choice do you want?") and then below are the choices, is that possible?

Yeah, no problem! I think it's a cool effect and I would like to know how to do it, too.ok sure!
i included my screen.rpy file too incase you want to take a look at it.
oh thats easy! hmm but you are right, would look odd with longer choices, better stick to the standard stacked.
Ah! Ok, i might give that a try.
Thank you for all your help by the way. ^_^
Code: Select all
style.topbutton = Style("menu_choice_button") # define a new style
style.topbutton.background = "choice1.png"
#you can also set style.topbutton.hover_background = some image for the hovered version
style.bottombutton = Style("menu_choice_button") # define a new style
style.bottombutton.background = "choice3.png"
#you can also set style.bottombutton.hover_background = some image for the hovered version
Code: Select all
init -2 python:
config.narrator_menu = True
style.menu_window.set_parent(style.default)
style.menu_choice.set_parent(style.button_text)
style.menu_choice.clear()
style.menu_choice_button.set_parent(style.button)
style.menu_choice_button.background = "choice2.png" # image for the middle buttons
#style.menu_choice_button.hover_background = "choice2hover.png" # whatever image you want for the middle buttons (hovered version)
style.menu_choice.color = "#000000"
style.menu_choice.hover_color = "#000000"
style.menu_choice_button.xminimum = int(config.screen_width * 0.25)
style.menu_choice_button.xmaximum = int(config.screen_width * 0.50)
style.menu_choice_button.yminimum = int(config.screen_width * 0.10)
style.menu_choice_button.ymaximum = int(config.screen_width * 0.10)

Users browsing this forum: Google [Bot]