This is about when images are locked. In this example, a button points to two images. One or the other could be seen, and so the other is locked.
Here the first image is unlocked. By default, it will skip the rest of the images if they're all locked, and return to the gallery.
If the second image is seen instead, you're given the screen that says "Image x of x locked", followed by unlocked images, then it returns to the gallery.
The problem I have, is the inconsistency. What I want is either that the "Image x of x locked" will always display if something is locked, or it never displays.
The former example is easy to make happen, but inconvenient: in renpy/common/00gallery.rpy on line 466 is the following code -
Code: Select all
if self.locked and result.endswith("_unlocked"):
images = all_images
else:
images = unlocked_images
"locked = True" is described in the documentation as "the gallery will advance through locked images", but I've observed no effect.
* As an aside, some of the language is contradictory. Besides "locked"'s behaviour; "unlock" is described as for "an image that automatically unlocks", but it's more like "this image will unlock when it is seen". I'm not sure if "unlock_image" has different behaviour, but I do know "unlock" doesn't play nice with "condition", so my setup checks if I'm looking for a preset condition, calling one or the other.