Search found 7 matches

by Pronax
Fri Mar 05, 2021 12:39 am
Forum: Ren'Py Questions and Announcements
Topic: how to change text in textbox through screen?
Replies: 8
Views: 361

Re: how to change text in textbox through screen?

Can you please tell me how to do this correctly? A possible example of how you can do that with one imagebutton that changes the 'what' text on hover: default hover_what = '' screen hover_say(who, what): default hov = False style_prefix "say" if hover_what: imagebutton: idle Text("Ho...
by Pronax
Thu Mar 04, 2021 7:38 pm
Forum: Ren'Py Questions and Announcements
Topic: how to change text in textbox through screen?
Replies: 8
Views: 361

Re: how to change text in textbox through screen?

I would suggest using another screen instead of using say screen (dialogue textbox screen). You could simply copy the "look" of say screen so player won't see the difference. The pros is you have more freedom this way and can easily use global or screen variable to control hover/idle text...
by Pronax
Thu Mar 04, 2021 1:56 am
Forum: Ren'Py Questions and Announcements
Topic: how to change text in textbox through screen?
Replies: 8
Views: 361

Re: how to change text in textbox through screen?

Sorry, I should have provided an example and been a bit more clear. I was suggesting to use an imagebutton, with hover_foreground and idle_foreground button states. May work with text buttons too, but I haven't tested. imagebutton: idle "path to a 1*1 pixel transparent PNG" hover_foregrou...
by Pronax
Wed Mar 03, 2021 9:08 pm
Forum: Ren'Py Questions and Announcements
Topic: how to change text in textbox through screen?
Replies: 8
Views: 361

Re: how to change text in textbox through screen?

Imperf3kt wrote: Wed Mar 03, 2021 8:53 pm Use foreground_hovered and foreground_idle states
Thanks, but can I see an example of how exactly this should be used?
Nowhere can I find an application for this method
by Pronax
Wed Mar 03, 2021 8:18 pm
Forum: Ren'Py Questions and Announcements
Topic: how to change text in textbox through screen?
Replies: 8
Views: 361

how to change text in textbox through screen?

Hi! I need to make it so that when hovering over the button, the character says a phrase, and when unhovered, restores the previous text. Tried to do it through the function and renpy.say, but it gives an error: init python: def _say(s): renpy.say(e, s) ssay = renpy.curry(_say) While running game co...
by Pronax
Wed Oct 10, 2018 2:29 am
Forum: Ren'Py Questions and Announcements
Topic: How to return deleted objects DragGroup?
Replies: 3
Views: 546

Re: How to return deleted objects DragGroup?

Your method does not work, alas. But thank you very much for the hint with the child.target_at! Inserting this simple block before return True: apple.snap(pos_f[0][0], pos_f[0][1]) pear.snap(pos_f[1][0], pos_f[1][1]) banana.snap(pos_f[2][0], pos_f[2][1]) melon.snap (pos_f[3][0], pos_f[3][1]) cherry....
by Pronax
Tue Oct 09, 2018 5:08 pm
Forum: Ren'Py Questions and Announcements
Topic: How to return deleted objects DragGroup?
Replies: 3
Views: 546

How to return deleted objects DragGroup?

Hi I have a code in which when dragging a thing to a certain place, this thing, to hide itself from the screen, is removed across .remove(child) from DragGroup() def fruit(drags, drop): global karzina_pl, karzina_srav, prav_list, p if not drop: drags[0].snap(pos_f[int(drags[0].drag_name.split("...