Page 1 of 1

In-game buttons flickering to disabled state

Posted: Mon May 15, 2017 4:17 am
by InvertMouse
Hi there :). To my understanding, you can assign ground, hover, idle etc states for your buttons. I have them set up for my in-game UI. My ground buttons are set to 50% opacity to indicate they cannot be pressed on in that state.

Let's say I have this scene:

* * *

scene test

"Hi!"

scene test2 with dissolve

"Hey."

* * *

On the second play through, I should be able to hit that skip button at any point. However, I noticed that during:

scene test2 with dissolve

While the dissolve is happening, the skip button shows its disabled state , then once the transition ends, it is enabled again. This is fair enough function wise, but it results in the skip button flickering to its ground state for a tick, which is pretty distracting. Is there a way to get around this?

Thank you so much :).

Re: In-game buttons flickering to disabled state

Posted: Mon May 15, 2017 5:18 am
by Imperf3kt
Use imagebuttons instead of imagemaps

Re: In-game buttons flickering to disabled state

Posted: Tue May 16, 2017 5:04 am
by InvertMouse
Imperf3kt wrote:Use imagebuttons instead of imagemaps
Thank you! Let me give this a go :).

Re: In-game buttons flickering to disabled state

Posted: Fri May 19, 2017 10:39 pm
by InvertMouse
Hello again. I tried changing into imagebuttons, but unfortunately the issue persists. Here is a clip to show what I mean:

https://drive.google.com/file/d/0BxueVy ... sp=sharing

The code looks like this:

Code: Select all


screen say:
   # Included only one button as an example.
   imagebutton:
                auto "assets/images/ui/ui_t/skip_%s.png"
                action Skip()

But as you can see in the video, the button still flickers to its disabled state during transitions. I would love to receive some guidance on this. Thank you so much :).

Re: In-game buttons flickering to disabled state

Posted: Fri May 19, 2017 11:27 pm
by PyTom
I'm tracking this as a bug for the time being.

https://github.com/renpy/renpy/issues/1185

Re: In-game buttons flickering to disabled state

Posted: Sat May 20, 2017 12:07 pm
by PyTom
Okay, the problem was that Ren'Py was never marking with statements as seen.

https://github.com/renpy/renpy/commit/d ... 13e09d73aa

has the fix for it. It's a one liner, so you can probably edit it into renpy/display/core.py yourself.

Re: In-game buttons flickering to disabled state

Posted: Fri May 26, 2017 8:03 pm
by InvertMouse
PyTom wrote:Okay, the problem was that Ren'Py was never marking with statements as seen.

https://github.com/renpy/renpy/commit/d ... 13e09d73aa

has the fix for it. It's a one liner, so you can probably edit it into renpy/display/core.py yourself.
Yeah, that seems to have fixed it Tom. Thank you :)!