diff --git a/docs/user_guide/01-getting-started/03-accessing.rst b/docs/user_guide/01-getting-started/03-accessing.rst index 5896fcc..fd4037d 100644 --- a/docs/user_guide/01-getting-started/03-accessing.rst +++ b/docs/user_guide/01-getting-started/03-accessing.rst @@ -18,6 +18,7 @@ The screen is then shown to the player. This allows the player to open the encyclopaedia. .. code-block:: renpy + init python: greek_mythology = Encyclopaedia(name="Greek Mythology") diff --git a/docs/user_guide/03-interface/01-default-screens.rst b/docs/user_guide/03-interface/01-default-screens.rst index 1b359d4..00ccd95 100644 --- a/docs/user_guide/03-interface/01-default-screens.rst +++ b/docs/user_guide/03-interface/01-default-screens.rst @@ -38,6 +38,7 @@ This screen should only be opened using the `SetEntry` Action. Example: .. code-block:: renpy + init python: my_enc = Encyclopaedia(...) my_encentry = EncEntry(parent=my_enc, ...) diff --git a/docs/user_guide/03-interface/02-custom-screens.rst b/docs/user_guide/03-interface/02-custom-screens.rst index 335bde4..273329f 100644 --- a/docs/user_guide/03-interface/02-custom-screens.rst +++ b/docs/user_guide/03-interface/02-custom-screens.rst @@ -31,6 +31,7 @@ In the following toy example, instead of textbuttons for each entry, we're going to use an imagebutton. .. code-block:: renpy + screen custom_encyclopaedia_screen(enc): vbox: for entry in enc.current_entries: