Search found 409 matches
- Sun Apr 07, 2024 9:00 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 240
Re: Item slot placements in inventories
I tried implementing it into my game but I got an error saying that "tooltip" is not a keyword argument or valid child of the add statement. There is official Ren'Py documentation here: https://renpy.org/doc/html/ Most problems can be solved by searching that site. About tooltip: my bad. ...
- Sun Apr 07, 2024 4:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Item slot placements in inventories
- Replies: 4
- Views: 240
Re: Item slot placements in inventories
For every slot of the inventory, certain information should be stored: * position (x, y) of the slot, * what item is there in the slot. For example: default inventory = [ {"pos": (100, 20), "item": None}, {"pos": (100, 120), "item": None}, {"pos": (1...
- Sun Apr 07, 2024 3:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Alternative display format
- Replies: 3
- Views: 222
Re: Alternative display format
The text box could be based on NVL-mode dialog: https://renpy.org/doc/html/gui.html#nvl but instead of a large vertical wall of text, it could be a lesser scrollable box, a "viewport" with scrollbar: https://renpy.org/doc/html/gui.html#scrollbars https://renpy.org/doc/html/screens.html#vie...
- Sun Apr 07, 2024 11:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: custom Displayable style_prefix
- Replies: 3
- Views: 161
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: 161
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: 276
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: 196
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: 196
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: 276
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: 126
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: 289
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: 227
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: 156
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: 227
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: 289
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...