Page 1 of 1
ImageMap - Pressed/MouseDown State
Posted: Sun Jan 05, 2014 1:51 pm
by DarkClaymore
In my ImageMap title screen, I want the hotspot buttons to have an additional display state, for when they are
being clicked. In other words, when the mouse button is being pressed down and hovers above the hotspot.
It seems like a trivial thing to do, but I failed to find a solution for this.
Need some help with this

Re: ImageMap - Pressed/MouseDown State
Posted: Sun Jan 05, 2014 3:15 pm
by Tsapas
try adding a selected_hover state along with idle and hover states (or anything else you use), like:
Code: Select all
imagemap:
idle "gui/imagemap_idle.png"
hover "gui/imagemap_hover.png"
selected_hover "gui/imagemap_sel_hover.png"
or if you use the auto imagemap definition, just add a whatever-the-image-name-is_selected_idle.png in the folder with the rest of the images.
(Dunno if this is what exactly what you are looking for because *I think* that the selected state is applied on mousebutton release, not press, but worth a shot).
Re: ImageMap - Pressed/MouseDown State
Posted: Sun Jan 05, 2014 3:36 pm
by PyTom
No, this won't work. Ren'Py doesn't support a pressed state.