For #1, can we see the rest of your code for the main menu? I think it may be a frame or something.
#4, I'm assuming you mean where the speaker's name is in a box by itself. Find this code in your options.rpy
Code: Select all
## This is the minimum height of the window, including the margins
## and padding
And then customize the say_who window there. (You don't ~technically~ need to put it in that particular location I think, but I put it there for organization's sake, since we're customizing a window.)
Here are some ways you can customize the say_who window.
Code: Select all
##You'll need to edit these codes to get it to look right for your game
##I doubt my measurements will work for you ^^;
style.window.yminimum = 125
style.window.ymaximum = 150
style.say_who_window.xminimum = 120
style.say_who_window.yminimum = 5
style.say_who_window.yminimum = 10
style.say_who_window.yminimum = 10
##These are what you are looking for specifically, but I thought I'd include the others above in case you need them
##I just put 5 so there'd be a number, you'll have to fiddle to get it to look right.
style.say_who_window.left_padding = 5
style.say_who_window.right_padding = 5
style.say_who_window.top_padding = 5
style.say_who_window.bottom_padding = 5
#6, you can hide the window with
Code: Select all
window hide ##this code and its counterpart can take a dissolve
and then reshow the window with
I have no clue about the rest of the stuff, unfortunately. Sorry!
Edit: I may have found out how to have a sound effect play when you click a button. You attach activate_sound "yoursoundfile.soundfileformat" to your main menu's start button. So for my game, this is what it would look like:
Code: Select all
screen main_menu:
# This ensures that any other menu screen is replaced.
tag menu
# The background of the main menu.
window:
style "mm_root"
imagemap:
ground "menuidle.png"
hover "menuhover.png"
hotspot (52,70,342,141) activate_sound "music/1 up.mp3" action Start() ## this is what you want.
hotspot (46,159,336,216) action ShowMenu("load")##my music file was located in a folder within the game folder, hence the "music/"
hotspot (50,245,343,302) action ShowMenu("preferences")
hotspot (130,334,265,389) action Help()
hotspot (130,422,265,480) action Quit()
init -2 python:
# Make all the main menu buttons be the same size.
style.mm_button.size_group = "mm"