Search found 129 matches

by goldo
Mon May 13, 2024 6:05 am
Forum: Ren'Py Questions and Announcements
Topic: Binding keymap dynamically: Missing the key code
Replies: 2
Views: 125

Re: Binding keymap dynamically: Missing the key code

Thanks! Here are a few answers: 1) I am not aware of an alternative to clear_keymap_cache , so for now that will have to do. A feature that works most of the time is still better for my purposes than a feature that works none of the time. 2) I guess that can be handled with a persistent variable as ...
by goldo
Tue May 07, 2024 11:34 am
Forum: Ren'Py Questions and Announcements
Topic: Binding keymap dynamically: Missing the key code
Replies: 2
Views: 125

Binding keymap dynamically: Missing the key code

Hi, So this is probably more of a pygame question, but I guess it belongs here because the keymap in Ren'Py is borrowed from it. I am working on a way to let the user change some shortcuts dynamically, in the spirit of this question . I am this close to making it work, but I am missing one final pie...
by goldo
Wed Apr 10, 2024 5:08 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Repeat button action on mouse down
Replies: 5
Views: 292

Re: [Solved] Repeat button action on mouse down

Thanks! I think adding _action to the list of actions that happen when clicking could fix the latter problem, although you'd need to check for the _condition first in some way to avoid problems.
by goldo
Fri Apr 05, 2024 10:38 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Repeat button action on mouse down
Replies: 5
Views: 292

Re: Repeat button action on mouse down

Thank you for your messages, it put me on the right track! The above implementation has a flaw in that a click anywhere on the screen will increase the value (because keysym doesn't care if you're actually hovering the button). Here is what I came up with: screen change_value(): default v = 0 defaul...
by goldo
Wed Apr 03, 2024 4:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Repeat button action on mouse down
Replies: 5
Views: 292

[Solved] Repeat button action on mouse down

Hi, so I have a couple of buttons that the user can click to increase or decrease a numerical value. I would like to let the player simply hold their mouse button down to keep increasing/decreasing the value instead of clicking repeatedly. But I'm not sure if it's achievable with the behavior of Ren...
by goldo
Fri Mar 22, 2024 12:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Crash on reload on versions prior to 8.2
Replies: 14
Views: 1626

Re: Crash on reload on versions prior to 8.2

Why do you care about old versions? If you distribute a Ren'Py game, the engine gets packed inside, so players will use the version you have packed. I used to care very much because the whole game was made with one of the legacy UI themes and before the switch to Python 3, so every version update h...
by goldo
Fri Mar 22, 2024 12:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Something's odd with hover_alpha and tooltips
Replies: 5
Views: 934

Re: Something's odd with hover_alpha and tooltips

Thank you! This set me in the right direction. Here is what I ended up implementing: screen hover(): modal True default alpha_unhover = 0.6 default alpha_hover = 1.0 default alpha_dict = {k: 0.6 for k in button_list} for but in button_list: button background None action NullAction(): hovered SetDict...
by goldo
Fri Mar 08, 2024 10:16 am
Forum: Ren'Py Questions and Announcements
Topic: [Closed] Graphic glitches since updating to 8.1
Replies: 8
Views: 897

Re: Graphic glitches since updating to 8.1

Thanks, I have removed it from my game and will let the creator know if I can get a hold of him.
by goldo
Fri Mar 08, 2024 10:13 am
Forum: Ren'Py Questions and Announcements
Topic: Crash on reload on versions prior to 8.2
Replies: 14
Views: 1626

Re: Crash on reload on versions prior to 8.2

Yes, although I hesitate to mark the topic as solved since I still have the crashes on reload in prior versions - although I took the rather painful step of porting the whole UI to 8.2 to work around it...
by goldo
Fri Mar 08, 2024 10:09 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Something's odd with hover_alpha and tooltips
Replies: 5
Views: 934

Re: Something's odd with hover_alpha and tooltips

Sorry about the nested button, but you can see the exact same behavior if you replace the parent button with a frame (I updated the code above). m_from_space 's solution works, however having to define three images for each picture is going to be a pain (as I have a couple hundreds of such images). ...
by goldo
Thu Mar 07, 2024 8:46 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Something's odd with hover_alpha and tooltips
Replies: 5
Views: 934

[Solved] Something's odd with hover_alpha and tooltips

Okay, i think I might be misunderstanding something but I can't make 'hover_alpha' work properly with tooltips in screens. Whenever I have multiple elements using 'hover_alpha' and tooltip on the same screen, they all change alpha at the same time when hovering any one of them. Here is an easy scree...
by goldo
Thu Mar 07, 2024 7:53 am
Forum: Ren'Py Questions and Announcements
Topic: [Closed] Graphic glitches since updating to 8.1
Replies: 8
Views: 897

Re: Graphic glitches since updating to 8.1

Sorry to necro this thread, but I finally found the culprit, it's this function: #<PredictImages> # Threading is necessary, because otherwise the screen only shows AFTER ALL images have been loaded. # That would actually make things slower. With threading, the images load in the background as intend...
by goldo
Thu Mar 07, 2024 7:44 am
Forum: Ren'Py Questions and Announcements
Topic: Crash on reload on versions prior to 8.2
Replies: 14
Views: 1626

Re: Crash on reload on versions prior to 8.2

Thanks! I was under the impression that floats would behave as multiples of the available width and height (as it does when using xsize 0.5 or ysize 0.8 in plain ATL). Maybe only if lower than 1.0? But that would be weirdly inconsistent.
by goldo
Mon Mar 04, 2024 7:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Crash on reload on versions prior to 8.2
Replies: 14
Views: 1626

Re: Crash on reload on versions prior to 8.2

If you want some nitpicking comments: :-) Absolutely! I'm not sure if you need methods "visit" and "per_interact". One simple picture might work without them. But if they help prediction (I don't know), then maybe it's OK to have them. According to the documentation, 'visit()' i...
by goldo
Sun Mar 03, 2024 6:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Crash on reload on versions prior to 8.2
Replies: 14
Views: 1626

Re: Crash on reload on versions prior to 8.2

Here is my attempt to replicate ProportionalScale() using more modern methods: Edited thanks to jeffster's remarks class ProportionalScale(renpy.Displayable): '''Resizes a renpy image to fit into the specified width and height. The aspect ratio of the image will be conserved.''' def __init__(self, i...