|
7.
|
|
|
Create an instance of Gallery.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:31
|
|
8.
|
|
|
Add buttons and images to that gallery, along with conditions that determine if the buttons and images they belong to are unlocked. This is also a multi-step process.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:33
|
|
9.
|
|
|
Declare a new button by calling :meth:`Gallery.button`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:37
|
|
10.
|
|
|
Optionally, add one or more unlock conditions to the button by calling :meth:`Gallery.unlock` or :meth:`Gallery.condition`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/rooms.rst:39
|
|
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
|