Search found 337 matches

by henvu50
Fri Oct 28, 2022 1:20 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How do you know if a button is visible or not? How can you get a count of QuickSaves?
Replies: 2
Views: 403

Re: How do you know if a button is visible or not? How can you get a count of QuickSaves?

Testing out a new project, it looks like the Q. Load button doesn't hide itself when you have no quick saves, it just greys out. Maybe it's blending in with your textbox or background? If it isn't the stuff behind it and the quick load button is truly going away, could you post your quick screen co...
by henvu50
Thu Oct 27, 2022 11:25 pm
Forum: Ren'Py Questions and Announcements
Topic: (Lets get screen shaders working!) If you pass Layer Master to a shader, what variable does it become in the shader?
Replies: 0
Views: 442

(Lets get screen shaders working!) If you pass Layer Master to a shader, what variable does it become in the shader?

I want to apply a shader to the master layer; background images and characters . Basically, a simple screen shader. Here is my code so far, but I have no idea what variable RENPY.LAYER.MASTER becomes? Image IMAGE8398 = 'some_image.png' label test() show layer master: shader("screen_shader_01&qu...
by henvu50
Thu Oct 27, 2022 1:48 am
Forum: Ren'Py Questions and Announcements
Topic: How do you pass a scene; e.g, kitchen image & 3 char images, to a shader, as a texture?
Replies: 0
Views: 479

How do you pass a scene; e.g, kitchen image & 3 char images, to a shader, as a texture?

I have a shader. I need to pass it a base texture image and overlay texture image. Can I pass the current Ren'py scene as a texture? Imagine you hide the UI, now all you see is a Kitchen and three characters on the screen. images/kitchen.png images/char1.png images/char2.png images/char3.png How do ...
by henvu50
Wed Oct 26, 2022 11:20 am
Forum: Ren'Py Questions and Announcements
Topic: [UNRESOLVED: Must figure out how to apply shader to renpy.layer['master']) - Soft Light blend mode shader in Ren'py.
Replies: 4
Views: 1858

Re: How do I complete this "Soft Light" blend shader?

UPDATE: I've got it 95% figured out. Minor problems: 1. The images have to be the same dimensions or texture stretching occurs. Would be nice to not have to worry about that. 2. I want the top most layer to be the blend soft light layer, that applies over every image in the scene. I'm not sure how t...
by henvu50
Wed Oct 26, 2022 8:02 am
Forum: Ren'Py Questions and Announcements
Topic: [UNRESOLVED: Must figure out how to apply shader to renpy.layer['master']) - Soft Light blend mode shader in Ren'py.
Replies: 4
Views: 1858

[UNRESOLVED: Must figure out how to apply shader to renpy.layer['master']) - Soft Light blend mode shader in Ren'py.

EDIT: Although I figured out how to make the shader work, the shader needs to be a screen shader. That's what I need. I have no idea how to make a screen shader in Ren'py. The only thing I know how to do is show an image with a shader effect on it, but there's no documentation on how to apply a shad...
by henvu50
Fri Oct 21, 2022 7:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little.
Replies: 2
Views: 518

Re: We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little.

Ocelot wrote: Fri Oct 21, 2022 7:14 pm You can try

Code: Select all

renpy.display.focus.set_focused(None, None, None)
renpy.restart_interaction()
Note: not tested, might now work properly.
It works. I just tested it. Works perfect so far, thank you.
by henvu50
Fri Oct 21, 2022 6:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little.
Replies: 2
Views: 518

[SOLVED]We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little.

edit: code to clear / lose focus is down below, thx to Ocelot We can renpy.set_focus, but how do we renpy.clear_focus? Similar to moving the mouse a little. I just want to clear the focus from any button. Is there anything like this, or a way to simulate it? renpy.clear_focus() I'm resorting to crea...
by henvu50
Thu Oct 20, 2022 11:30 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you change bar increment/decrement value when using keyboard?
Replies: 2
Views: 363

Re: How do you change bar increment/decrement value when using keyboard?

This is what I came up with: #At the beginning of the screens file init python: def set_music_volume(vol): preferences.set_volume("music",vol) #In the preferences screen if config.has_music: label _("Music Volume") default music_volume = 1.0 hbox: bar adjustment ui.adjustment(va...
by henvu50
Thu Oct 20, 2022 7:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How do you know if a button is visible or not? How can you get a count of QuickSaves?
Replies: 2
Views: 403

[Solved]How do you know if a button is visible or not? How can you get a count of QuickSaves?

EDIT: Long story short, I needed to specify an insensitive image for my custom quick load button. So I don't need to know if the button is visible or not, just specify the insensitive image for it's disabled state, then the button will get shown properly. I want to know if the QuickLoad button is hi...
by henvu50
Thu Oct 20, 2022 5:49 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you change bar increment/decrement value when using keyboard?
Replies: 2
Views: 363

How do you change bar increment/decrement value when using keyboard?

In a new renpy project. Go to preferences and music volume. Then press enter and slide the music volume slider left and right. It will increment and decrement by a value of 0.1 .. How can you change this value to 0.05, instead of 0.1? if config.has_music: label _("Music Volume") hbox: bar ...
by henvu50
Wed Oct 19, 2022 10:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED:Answer as PC only, not touch]If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?
Replies: 1
Views: 326

[SOLVED:Answer as PC only, not touch]If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?

edit: thx ocelot If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both? https://www.renpy.org/doc/html/screens.html?highlight=android#screen-variants This is from discord. I thought the speculation and info might be useful: ________________________________________________...
by henvu50
Wed Oct 19, 2022 5:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED: Intended Functionality]Potential Bug? Renpy 8.0.2 - Keysym doesn't work with gamepad, but Key does.
Replies: 2
Views: 367

[SOLVED: Intended Functionality]Potential Bug? Renpy 8.0.2 - Keysym doesn't work with gamepad, but Key does.

Potential Bug? Renpy 8.0.2 - Keysym doesn't work with gamepad, but Key does. Documentation says it should work: "In Ren'Py keysyms are strings representing mouse buttons, joystick buttons, or keyboard keys." - https://www.renpy.org/doc/html/keymap.html How to reproduce. Paste this code ove...
by henvu50
Tue Aug 23, 2022 11:20 am
Forum: Ren'Py Questions and Announcements
Topic: Can someone provide an example of how focus_mask callable works?
Replies: 1
Views: 331

Can someone provide an example of how focus_mask callable works?

https://www.renpy.org/doc/html/style_properties.html?highlight=mask#style-property-focus_mask callable If a non-displayable callable (like a function, method, or object with a __call__ method) is given, the function is called with two arguments, the x and y offset from the top-left corner of the dis...
by henvu50
Sun Aug 21, 2022 1:28 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you rotate and skew an Image or Movie in 3D space?
Replies: 1
Views: 384

How do you rotate and skew an Image or Movie in 3D space?

How do you rotate and skew an Image or Movie in 3D space? https://i.imgur.com/In7z4A2.png So I want to show a background image, but I don't want that to be rotated/skewed, just the foreground Image or Movie I'm showing. I checked out this link: https://www.renpy.org/doc/html/3dstage.html , but I can...