Search found 5 matches

by cyanic
Wed Nov 15, 2017 2:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Problem modifying notify() to accept two arguments
Replies: 7
Views: 1894

Re: Problem modifying notify() to accept two arguments

I was thinking something more like this:

Code: Select all

screen notify(message):
    $ msg = message[0]
    $ other_arg = message[1]

...

$ renpy.notify(("My Message", "someArg"))
by cyanic
Wed Nov 15, 2017 1:40 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Problem modifying notify() to accept two arguments
Replies: 7
Views: 1894

Re: Problem modifying notify() to accept two arguments

As the error says, renpy.notify() only takes one argument. Maybe try giving it a tuple?

Source for renpy.notify(): https://github.com/renpy/renpy/blob/mas ... s.py#L2743
by cyanic
Tue Nov 14, 2017 3:32 pm
Forum: Ren'Py Questions and Announcements
Topic: How does the completion progress indicator work?
Replies: 1
Views: 412

How does the completion progress indicator work?

I noticed in the changelog that a while ago a completion progress indicator was added that can be accessed with F2. I checked it out, and apparently the first number is number of dialog blocks seen this session, and the other is some kind of progress (lines? dialog blocks?). I'm trying to figure out...
by cyanic
Sun Oct 29, 2017 1:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Custom displayable on main menu rendering many multiple instances
Replies: 2
Views: 684

Re: Custom displayable on main menu rendering many multiple instances

I've figured it out. It turns out that I was declaring _live_particles as static. Did some logging, and there is only one instance of the particle manager running at a time, but it's adding duplicated values to the live particles dictionary every time a new instance of the manager is created. Made i...
by cyanic
Sun Oct 29, 2017 2:29 am
Forum: Ren'Py Questions and Announcements
Topic: Custom displayable on main menu rendering many multiple instances
Replies: 2
Views: 684

Custom displayable on main menu rendering many multiple instances

I'm currently trying to add some particle effects to the main menu, implemented as a custom displayable (not using sprite manager because I need rotation, size and zooming changes for each particle). I've managed to get it to work, however I'm having a problem with a new copy of the displayable rend...