Code: Select all
While running game code:
File "renpy/common/00gamemenu.rpy", line 173, in script
$ ui.interact()
File "renpy/common/00gamemenu.rpy", line 173, in <module>
$ ui.interact()
Exception: Required parameter enc has no value.
Here's my screens code if needed.
Code: Select all
init python:
#tried the below as enc and their original tag, made no difference
enc = Encyclopaedia(
show_locked_buttons=False,
show_locked_entry=False,
entry_screen="notes")
note_example = EncEntry(
name="Example",
text=[
"Row one of example text",
"Tow two, ect"
],locked=False,)
screen notes_page(enc, entry):
tag menu
style_prefix "notes"
imagemap:
id "notes_page"
xoffset 341
ground "gui/Phone/Cell_Notes_G.png"
hover "gui/Phone/Cell_Notes_H.png"
hotspot (752,163,69,74) action ShowMenu("phone_menu")
viewport:
xpos 459
ypos 241
xysize (365, 421)
draggable True
mousewheel True
scrollbars "vertical"
vbox:
textbutton "Example" action enc.SetEntry(note_example) style "notes_button_text"
screen notes(enc):
tag menu
modal True
imagemap:
style_prefix "notes"
xoffset 341
ground "gui/Phone/Cell_Notes_G.png"
hover "gui/Phone/Cell_Notes_H.png"
hotspot (752,163,69,74) action ShowMenu("notes_page")
vbox:
spacing 10
xpos 459
ypos 241
xysize (365, 421)
frame:
xfill True
text enc.active.label style "notes_entry_title" #Indicate which entry we're currently on
hbox: #If the entry an image
if enc.active.current_page.has_image:
frame:
viewport:
scrollbars None
draggable True
mousewheel True
edgescroll (1.0, 1.0)
add enc.active.current_page.image
frame:
id "entry_window"
viewport:
scrollbars "vertical"
mousewheel True
draggable True
vbox:
spacing 15
for item in enc.active.current_page.text:
text item style "notes_entry_text"
else: #If there's no image
frame:
id "entry_window"
viewport:
scrollbars "vertical"
mousewheel True
draggable True
vbox:
spacing 15
for item in enc.active.current_page.text:
text item style "notes_entry_text"