I have my preference menu screen and hover screen, like when u customise the main menu and have the code like this
Code: Select all
layout.imagemap_preferences("pref.jpg", "pref_hover.jpg", [
(350,83,447,127, "Window"),
(465,81,554,125, "Fullscreen"),
(351,131,446,175, "Seen Messages"),
(467,129,587,173, "All Messages"),
(345,189,449,226, "Stop Skipping"),
(467,186,582,224, "Keep Skipping"),
(339,357,609,399, "Music Volume"),
(335,412,605,454, "Sound Volume"),
(332,291,607,335, "Auto-Forward Time"),
(330,236,611,280, "Text Speed"),
(332,291,607,335, "All"),
(330,236,611,280, "None"),
# Also define the game menu buttons.
(198,0,272,52, "Return"),
(273,0,344,52, "Save Game"),
(346,0,423,52, "Load Game"),
(427,0,474,42, "Preferences"),
(477,0,550,42, "Main Menu"),
(552,0,601,42, "Quit"),
(486,491,599,536, "Gore")#Custom new menu
])
but i keep getting this
Code: Select all
I'm sorry, but an exception occured while executing your Ren'Py
script.
TypeError: imagemap_preferences() takes exactly 6 arguments (3 given)
While executing init code:
- script at line 19 of L:\Visual Novels\software\renpy-6.10.0\Cafe avec de L'amour/game/options.rpy
- python at line 82 of L:\Visual Novels\software\renpy-6.10.0\Cafe avec de L'amour/game/options.rpy.
-- Full Traceback ------------------------------------------------------------
File "L:\Anime\Visual Novels\software\renpy-6.10.0\renpy\bootstrap.py", line 260, in bootstrap
File "L:\Anime\Visual Novels\software\renpy-6.10.0\renpy\main.py", line 253, in main
File "L:\Anime\Visual Novels\software\renpy-6.10.0\renpy\execution.py", line 230, in run
File "renpy-6.10.0/renpy/ast.py", line 557, in execute
File "L:\Anime\Visual Novels\software\renpy-6.10.0\renpy\python.py", line 927, in py_exec_bytecode
File "L:\Visual Novels\software\renpy-6.10.0\Cafe avec de L'amour/game/options.rpy", line 82, in <module>
TypeError: imagemap_preferences() takes exactly 6 arguments (3 given)
While executing init code:
- script at line 19 of L:\Visual Novels\software\renpy-6.10.0\Cafe avec de L'amour/game/options.rpy
- python at line 82 of L:\Visual Novels\software\renpy-6.10.0\Cafe avec de L'amour/game/options.rpy.
Ren'Py Version: Ren'Py 6.10.0e