Search found 6 matches
- Mon Oct 31, 2022 2:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] how to grab and manipulate renpy elements by their IDs
- Replies: 3
- Views: 99
Re: how to grab and manipulate renpy elements by their IDs
Not sure about grabbing and manipulating by IDs, but Ocelot (^ post #2) explained how to achieve result I wanted in alternative way here: https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=65589 I didn't quite get post #2 of this forum cause i'm fairly new to renpy and I didn't realize screen ref...
- Mon Oct 31, 2022 2:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] create and delete imagebuttons from python block
- Replies: 4
- Views: 49
Re: create and delete imagebuttons from python block
Oh, answer (post #2) works perfectly.
Issue I mentioned in post #3 was cause I have to use:
and not:
which apparently breaks everything cause I'm not supposed to run unwrapped python in renpy. Didn't know that...
Issue I mentioned in post #3 was cause I have to use:
Code: Select all
action Function(function_name, *args)Code: Select all
action funcion_name(*args)- Mon Oct 31, 2022 1:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] create and delete imagebuttons from python block
- Replies: 4
- Views: 49
Re: create and delete imagebuttons from python block
^ trying this, but it seems using the conditionals with a multidimensional arrays is causing issues when i add the action button calling a function that changes the array. ("action" is activating hundreds of times soon as the screen is shown) I'll mark the thread solved when I post working code that...
- Mon Oct 31, 2022 8:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] create and delete imagebuttons from python block
- Replies: 4
- Views: 49
[SOLVED] create and delete imagebuttons from python block
I'm trying to delete imagebuttons by id from a python function, as well as add imagebuttons to specific 'fixed' blocks, by id, from a python function. But I've been searching for days and haven't been able to find docs on python functions that do this stuff. init python: def add_button(img1, img2): ...
- Sun Oct 30, 2022 5:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] how to grab and manipulate renpy elements by their IDs
- Replies: 3
- Views: 99
Re: how to grab and manipulate renpy elements by their IDs
In short: that would ne useless, since all changes would disappear when screen would reevaluate and redraw itself in the next instant. You can conditionally create buttons from data contained in some container and your functions would just manipulate those containers. Those changes shouldn't be per...
- Sun Oct 30, 2022 1:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] how to grab and manipulate renpy elements by their IDs
- Replies: 3
- Views: 99
[SOLVED] how to grab and manipulate renpy elements by their IDs
Hello! I'm having trouble finding docs on how to grab and manipulate elements by their IDs. The parts I'm having trouble with are the ones I marked with ### init python: def example_function(id_fixed, id_imagebutton, id_fixed_new): ###Delete imagebutton with id_imagebutton, and add new imagebutton t...