Search found 436 matches
- Sun Apr 07, 2024 11:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 168
Re: custom Displayable style_prefix
Is it possible to get the value from - style_prefix "navigation" ? I want to make a button like "textbutton" so that it pulls styles from the parent style_prefix. It works for standard displayables, like Button. It might be possible to employ the same mechanism here. What if we ...
- Sun Apr 07, 2024 8:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 168
Re: custom Displayable style_prefix
How to make your own custom button "textbutton" so that style_prefix "navigation" styles are applied to it ? class SmoothHover(renpy.Displayable): def __init__(self, text, action, text_colors, outline_colors, **kwargs): in the screen navigation() block: I added a button but the ...
- Sun Apr 07, 2024 8:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: [HELP] Screen menu issues
- Replies: 6
- Views: 292
Re: [HELP] Screen menu issues
I tryed, but problem still here. :< Other problems in the posted code are: (1) Wrong indentations. Each level of indentation should be 4 spaces. (2) Multiple "idle" and "hover" in the same imagemap. "idle" and "hover" are images (like backgrounds) for their i...
- Sat Apr 06, 2024 9:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Any way to access store variables from CDS function?
- Replies: 5
- Views: 202
Re: [HELP] Any way to access store variables from CDS function?
def execute_my_cds(parsed_object): getattr(store, "my_complex_system_object").do_some_complex_stuff(parsed_object) Still fails for the same reason that using "store.my_complex_system_object" fails: the CDS code runs when the "python early" block initializes it (though ...
- Sat Apr 06, 2024 8:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Any way to access store variables from CDS function?
- Replies: 5
- Views: 202
Re: [HELP] Any way to access store variables from CDS function?
Is there a way to access a variable that has been initialized with "default" or "define" inside a CDS (which itself required "python early")? Instead of addressing store variables by name, we can use functions like setattr(store, "my_complex_system_object", v...
- Sat Apr 06, 2024 3:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [HELP] Screen menu issues
- Replies: 6
- Views: 292
Re: [HELP] Screen menu issues
Greetings! Have a problem here. So I wanted to make point 'n' click feature, and subsequent confirm choice. But surfaced that, for some reason, after confirm to interact with pufflet, code wont contunie. It just stops on choice button aftertext. It only work after Shift+R. What might be a reason of...
- Fri Apr 05, 2024 8:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to implement a smooth style change ?
- Replies: 1
- Views: 134
Re: How to implement a smooth style change ?
If you prefer creator defined displayables to ATL transforms, there are interesting examples like BGQueue and SmoothHover:
viewtopic.php?t=63219
viewtopic.php?t=63219
- Fri Apr 05, 2024 2:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Repeat button action on mouse down
- Replies: 5
- Views: 297
Re: Repeat button action on mouse down
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). Indeed. Here is a slightly better implementation, abstracting the button to make it reusable in the UI. Activation of continuous_b...
- Thu Apr 04, 2024 8:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Infinite money glitch when scrolling up
- Replies: 4
- Views: 232
Re: Infinite money glitch when scrolling up
- Thu Apr 04, 2024 2:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Having some problems with styles
- Replies: 2
- Views: 160
Re: Having some problems with styles
style CharProfile_vbox: background Solid("#0008") Instead of background Solid("#0008") , we can use background "#0008" Boxes (and grids) don't have "background" property. https://renpy.org/doc/html/style_properties.html#box-style-properties To use background ...
- Thu Apr 04, 2024 8:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Infinite money glitch when scrolling up
- Replies: 4
- Views: 232
Re: Infinite money glitch when scrolling up
the issue is that if you scroll up to one click before the money gets given to them and then let it play out again, you will get the same amount of money added on top of what you got before scrolling back up and you can infinitely repeat it. I don't see how it happens exactly, but it's probably rol...
- Thu Apr 04, 2024 8:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Repeat button action on mouse down
- Replies: 5
- Views: 297
Re: 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 Re...
- Thu Apr 04, 2024 7:46 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to define persistable objects?
- Replies: 4
- Views: 197
Re: How to define persistable objects?
As persistent data is loaded before init python blocks are run, persistent data should only contain types that are native to Python or Ren'Py. Alternatively, classes that are defined in python early blocks can be used, provided those classes can be pickled and implement equality. My approach in sim...
- Mon Apr 01, 2024 4:26 am
- Forum: Development of Ren'Py
- Topic: Change to syntax to compile?
- Replies: 4
- Views: 1971
Re: Change to syntax to compile?
I wonder why Ren'Py 8.1 didn't need that import line. Now it needsPyTom wrote: ↑Mon Apr 01, 2024 2:08 am You probably need:
Code: Select all
init python: from typing import Optional
Code: Select all
init python:
from typing import Optional, Union
- Sun Mar 31, 2024 3:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: KeyError: 'retain' when calling say with name argument
- Replies: 4
- Views: 202
Re: KeyError: 'retain' when calling say with name argument
PS. I just run that test piece on my PC with the current 8.2.1, and it went OK, no errors. default character.sgirl = Character( "School Girl", who_color = "#8a2be2", what_color = "#ffffff", what_size = 28, ) label test: sgirl "Hello." (name="Aona")