Search found 124 matches
- 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: 779
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...
- 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: 209
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...
- 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: 748
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.
- 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: 779
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...
- 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: 209
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). ...
- 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: 209
[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...
- 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: 748
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...
- 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: 779
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.
- 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: 779
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...
- 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: 779
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...
- Sat Mar 02, 2024 7:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Crash on reload on versions prior to 8.2
- Replies: 14
- Views: 779
Re: Crash on reload on versions prior to 8.2
Thank you for the suggestions! Yes, I think my best bet is to replace ProportionalScale with something more long-lasting. I'll look into CDDs although it looks way above my level of understanding for now...
- Sat Mar 02, 2024 7:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Coloring buttons in styles
- Replies: 2
- Views: 181
Re: Coloring buttons in styles
It works perfectly! Brilliant, thank you! Edit - Quick recipe to quickly color multiple UI elements easily for anyone interested: 1) Get black pictures of the buttons, bars etc. that you wish to recolor as templates 2) Set up a function like this: def colorize_images(root_name, img_path, color_list)...
- Fri Mar 01, 2024 8:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Coloring buttons in styles
- Replies: 2
- Views: 181
[SOLVED] Coloring buttons in styles
Hi all, So I'm used to the "old way" of coloring a black button to something else, it used to look something like this: style my_button: idle_background Frame(im.MatrixColor("gui/button/button.webp", im.matrix.colorize(c_lightorange, c_white)), tile=False) hover_background Frame(...
- Fri Mar 01, 2024 7:57 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Fading edges of a portrait
- Replies: 2
- Views: 185
Re: Fading edges of a portrait
Thank you very much, AlphaMask() did the trick!
Looks something like this in the code for the say() screen:
Marking the topic as resolved. Thank you !
Looks something like this in the code for the say() screen:
Code: Select all
add AlphaMask(SideImage(), Frame("GUI/edge_mask.png")) xalign 0.0 yalign 1.0
- Fri Mar 01, 2024 12:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Fading edges of a portrait
- Replies: 2
- Views: 185
[SOLVED] Fading edges of a portrait
Hi, is there an easy way to fade the edges of an image in screen language?
Looking to achieve something like this:
https://www.lunapic.com/editor/premade/edge-fade.gif
Thanks!
Looking to achieve something like this:
https://www.lunapic.com/editor/premade/edge-fade.gif
Thanks!