[BUG]statement 'at' doesn't work on textbuttons

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
Badriel
Regular
Posts: 66
Joined: Mon Jul 23, 2012 1:10 pm
Completed: Clockwork City
Tumblr: badrielart
Deviantart: badriel
Contact:

[BUG]statement 'at' doesn't work on textbuttons

#1 Post by Badriel »

I've encountered a bug in the new renpy update (it worked fine in the earlier 6.17.3 release), 'at' statement doesn't work with textbuttons anymore
This code:

Code: Select all

textbutton _("Back") at qm_smooth(0.5,0.6,0,-20) action Rollback()
Accompanied with

Code: Select all

    transform qm_smooth(p=0, t=.5, x=0, y=0): ##transform with vertical hover
        on replaced:
            easeout t alpha 0
        on hide:
            easeout t alpha 0
        on hover:
            pause p
            easein .2 xoffset -5
        on idle:
            easeout .2 xoffset 0
        on selected_idle:
            easeout .2 xoffset 0
        on selected_hover:
            easein .2 xoffset -5   
Worked normally before, but now doesn't work with textbuttons (the text button should slide a bit on the hover).
It works on imagebuttons, though.

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: [BUG]statement 'at' doesn't work on textbuttons

#2 Post by SundownKid »

Did you try writing the button like this?

Code: Select all

textbutton _("Back") action Rollback() at qm_smooth(0.5,0.6,0,-20)

User avatar
Badriel
Regular
Posts: 66
Joined: Mon Jul 23, 2012 1:10 pm
Completed: Clockwork City
Tumblr: badrielart
Deviantart: badriel
Contact:

Re: [BUG]statement 'at' doesn't work on textbuttons

#3 Post by Badriel »

SundownKid wrote:Did you try writing the button like this?

Code: Select all

textbutton _("Back") action Rollback() at qm_smooth(0.5,0.6,0,-20)
Doesn't work either.

Post Reply

Who is online

Users browsing this forum: No registered users