|
11.
|
|
|
Declare an image by calling :meth:`Gallery.image` with one or displayables as arguments. Or call the convenience method :meth:`Gallery.unlock_image` instead.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:42
|
|
12.
|
|
|
Optionally, call :meth:`Gallery.transform` to associate transforms with the displayables.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:46
|
|
13.
|
|
|
Optionally, add one or more unlock conditions to the image by calling :meth:`Gallery.unlock`, :meth:`Gallery.condition`, or :meth:`Gallery.allprior`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:49
|
|
14.
|
|
|
Additional images can be added to a button by repeating steps 3-5, while additional buttons can be added to the gallery by repeating all five steps.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:53
|
|
15.
|
|
|
Create an image gallery screen. The screen should display a background, and should contain navigation that allows the user to show other image galleries, or to return to the main or extras menu.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:57
|
|
16.
|
|
|
Add code to display the image gallery screen to the main or extras menu.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:61
|
|
17.
|
|
|
Here's an example of the first three steps::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:63
../../source/rooms.rst:210
|
|
18.
|
|
|
Step 4 will vary based on how your game is structured, but one way of accomplishing it is to add the following line::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:169
../../source/rooms.rst:253
|
|
19.
|
|
|
to the main menu screen.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:174
../../source/rooms.rst:258
|
|
20.
|
|
|
This class supports the creation of an image gallery by handling the locking of images, providing an action that can show one or more images, and a providing method that creates buttons that use that action.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/gallery:5
|