imagemap, hotspot and gallery
Posted: Sun Jan 22, 2017 6:29 am
Hello.
I'm trying to make a gallery but the gallery screen has asymmetric boxes. So, I think imagemap is the right option.
The problem is that I don't understand how to set the unlocked image.
gallery.rpy is like:
And (if I understood correct) when the image 'ian1' showed at script, the image should be unlocked.
But this doesn't happens.
My script.rpy is like:
Can someone help me to understand how gallery works?
I'm trying to make a gallery but the gallery screen has asymmetric boxes. So, I think imagemap is the right option.
The problem is that I don't understand how to set the unlocked image.
gallery.rpy is like:
Code: Select all
image ian1 = "cg/ian1.jpg"
init python:
# Step 1. Create the gallery object.
g = Gallery()
# Step 2. Add buttons and images to the gallery.
g.button("ian1")
g.image("ian1")
g.unlock("ian1")
screen gallery():
tag menu
imagemap:
ground "gui/Gallery/Gallery Final - ground.png"
hover "gui/Gallery/Gallery Final - hover.png"
selected_idle "gui/Gallery/Gallery Final - selected idle.png"
alpha False
hotspot (243, 229, 255, 136) action g.button("ian1")
But this doesn't happens.
My script.rpy is like:
Code: Select all
scene ian1
centered "Ian CG is unlocked"