Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
Kinmoku
- Miko-Class Veteran
- Posts: 560
- Joined: Mon Aug 11, 2014 9:39 am
- Completed: One Night Stand
- Projects: Love IRL, Memories
- Tumblr: gamesbykinmoku
- itch: kinmoku
- Location: Germany
-
Contact:
#1
Post
by Kinmoku » Thu Jan 07, 2021 12:46 pm
Hi all,
I'm having an issue using a say statement in a menu. It causes the choice menu buttons to stop changing on hover. If I remove the say statement, the buttons work as desired. Here's my code:
Code: Select all
menu:
nmenu "Who is that?" # if i remove this, the hover works correctly
"I’ve never seen him before.":
$ pronoun = "he"
"I’ve never seen her before.":
$ pronoun = "she"
"I’ve never seen them before.":
$ violet_pronoun = "they"
This is the character:
Code: Select all
define nmenu = Character(None, window_xanchor=0.0, window_yanchor=0.0, window_xpos=1280, window_ypos=160, window_xmaximum=700, what_xalign=0.0, what_yalign=0.0, what_font="fonts/KOMTXTI_.ttf", what_slow_cps=30, window_background=None)
Screens:
Code: Select all
screen choice(items):
style_prefix "choice"
vbox:
if menualignment == "left":
xalign 0.1
for i in items:
textbutton i.caption action i.action
## When this is true, menu captions will be spoken by the narrator. When false,
## menu captions will be displayed as empty buttons.
define config.narrator_menu = True
style choice_vbox is vbox
style choice_button is button
style choice_button_text is button_text
style choice_vbox:
xalign 0.9
ypos 600
yanchor 0.5
spacing gui.choice_spacing
style choice_button is default:
properties gui.button_properties("choice_button")
style choice_button_text is default:
properties gui.button_text_properties("choice_button")
GUI:
Code: Select all
define gui.choice_button_width = 700
define gui.choice_button_height = None
define gui.choice_button_tile = False
define gui.choice_button_borders = Borders(8, 8, 8, 16)
define gui.choice_button_text_font = "fonts/KOMTXTI_.ttf" #gui.text_font
define gui.choice_button_text_size = 42 #gui.text_size
define gui.choice_button_text_xalign = 0.5
define gui.choice_button_text_idle_color = "#000000"
define gui.choice_button_text_hover_color = "#ffffff"
define gui.choice_button_text_insensitive_color = "#000000"
I'm not sure what's going on as the documentation says that say statements will work. Does anyone know what's wrong?
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt » Thu Jan 07, 2021 5:26 pm
Which version of Ren'Py are you using?
7.4 is fairly new and has some uncaught bugs, this may be one.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
Kinmoku
- Miko-Class Veteran
- Posts: 560
- Joined: Mon Aug 11, 2014 9:39 am
- Completed: One Night Stand
- Projects: Love IRL, Memories
- Tumblr: gamesbykinmoku
- itch: kinmoku
- Location: Germany
-
Contact:
#3
Post
by Kinmoku » Fri Jan 08, 2021 6:22 am
Imperf3kt wrote: ↑Thu Jan 07, 2021 5:26 pm
Which version of Ren'Py are you using?
7.4 is fairly new and has some uncaught bugs, this may be one.
I was using 7.3 so updated to the new release 7.4, but the button hover is still not working

-
philat
- Eileen-Class Veteran
- Posts: 1853
- Joined: Wed Dec 04, 2013 12:33 pm
-
Contact:
#4
Post
by philat » Fri Jan 08, 2021 7:18 am
There's no reason that the say statement would affect the choice hovers (it does not in a new project), so you're going to have to do more investigating to figure out what's causing it.
-
Kinmoku
- Miko-Class Veteran
- Posts: 560
- Joined: Mon Aug 11, 2014 9:39 am
- Completed: One Night Stand
- Projects: Love IRL, Memories
- Tumblr: gamesbykinmoku
- itch: kinmoku
- Location: Germany
-
Contact:
#5
Post
by Kinmoku » Mon Jan 11, 2021 9:37 am
philat wrote: ↑Fri Jan 08, 2021 7:18 am
There's no reason that the say statement would affect the choice hovers (it does not in a new project), so you're going to have to do more investigating to figure out what's causing it.
Yes, it seems very strange. I still haven't figured it out what's causing it, but I will repost if I find something that may help others with similar issues.
Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_