This is my ground picture.
Now when I launch the game it isn't responding...at all. It shows up, but none of the imagemap buttons work and nothing shows up in the little screencap save areas.
Admittedly, I was confused on how to fit the little screencaps in their designated places, so I am SURE that part of the code is wrong, but I thought the image mapped buttons, like the numbers, save, quit etc should work...I think.
Here is the code:
Code: Select all
# Save, Load
#
# Screens that allow the user to save and load the game.
# http://www.renpy.org/doc/html/screen_special.html#save
# http://www.renpy.org/doc/html/screen_special.html#load
# Since saving and loading are so similar, we combine them into
# a single screen, file_picker. We then use the file_picker screen
# from simple load and save screens.
screen load_save_slot:
$ file_text = "%2s. %s\n %s" % (
FileSlotName(number, 4),
FileTime(number, empty=_("Empty Slot.")),
FileSaveName(number))
add FileScreenshot(number) xpos 120 ypos 90
text file_text xpos 215 ypos 92 size 18 color "#000000"
screen file_picker:
key "w" action FileLoad(1, page="quick", confirm=True, newest=False)
key "m" action MainMenu(confirm=True)
key "p" action ShowMenu("preferences")
key "mouseup_3" action ShowMenu("keys_map")
key "K_ESCAPE" action Return()
imagemap:
ground "saveground.png"
idle "saveidle.png"
hover "savehover.png"
selected_idle "saveidle.png"
hotspot (466, 63, 14, 41) clicked FilePage(1)
hotspot (482, 68, 23, 39) clicked FilePage(2)
hotspot (505, 71, 25, 38) clicked FilePage(3)
hotspot (535, 75, 25, 38) clicked FilePage(4)
hotspot (557, 72, 28, 44) clicked FilePage(5)
hotspot (586, 73, 25, 36) clicked FilePage(6)
hotspot (608, 71, 27, 36) clicked FilePage(7)
hotspot (635, 61, 25, 50) clicked FilePage(8)
hotspot (661, 68, 26, 38) clicked FilePage(9)
hotspot (22, 180, 363, 184) clicked FileAction(1):
use load_save_slot(number=1)
hotspot (401, 178, 384, 191) clicked FileAction(2):
use load_save_slot(number=2)
hotspot (16, 376, 377, 195) clicked FileAction(3):
use load_save_slot(number=3)
hotspot (401, 375, 381, 202) clicked FileAction(4):
use load_save_slot(number=4)
hotspot (394, 126, 67, 46) action ShowMenu("load")
hotspot (459, 127, 66, 43) action ShowMenu("save")
hotspot (527, 127, 58, 50) action Help()
hotspot (642, 130, 64, 43) action Quit()
hotspot (583, 127, 63, 48) action MainMenu()
hotspot (702, 126, 75, 48) action Return()
screen save:
key "s" action Return()
# This ensures that any other menu screen is replaced.
tag menu
use file_picker
add "saveground.png"
screen load:
key "l" action Return()
# This ensures that any other menu screen is replaced.
tag menu
use file_picker
add "saveground.png"
init -2 python:
style.file_picker_frame = Style(style.menu_frame)
style.file_picker_nav_button = Style(style.small_button)
style.file_picker_nav_button_text = Style(style.small_button_text)
style.file_picker_button = Style(style.large_button)
style.file_picker_text = Style(style.large_button_text)
config.thumbnail_width = 120
config.thumbnail_height = 90
ALSO - If you know...what code would I use to make those + - buttons next to the numbers functional?