Search found 22 matches
- Tue Sep 05, 2023 2:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Can you change the "auto" property of imagebuttons to have two states share the same image?
- Replies: 2
- Views: 274
Re: Can you change the "auto" property of imagebuttons to have two states share the same image?
Yes, you can use this configuration variable to do what you want. Something like that: Thanks a lot! I knew how to do it for individual buttons, but I wanted a solution that works on a larger scale, and doesn't require a lot of work on a wide scale, I had no idea how to do that. I am using the &quo...
- Tue Sep 05, 2023 8:45 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can you change the "auto" property of imagebuttons to have two states share the same image?
- Replies: 2
- Views: 274
Can you change the "auto" property of imagebuttons to have two states share the same image?
What I mean is that I'd like a "selected" or "hovered" imagebutton to use the "image_hover.png" displayable in either case, and for this behaviour to work with "auto", so that I don't have to manually add this behaviour to each button. I saw that " config...
- Thu Feb 16, 2023 11:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: Alternative to modifying config variables after init?
- Replies: 2
- Views: 260
Re: Alternative to modifying config variables after init?
Did you check documentation page on mouse cursors? https://www.renpy.org/doc/html/mouse.html You can easily create a dynamic cursor and set default_mouse to whatever you like. config.mouse_displayable = MouseDisplayable('gui/pointerA.webp', 9, 10).add("item_use", DynamicImage(""...
- Thu Feb 16, 2023 9:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Alternative to modifying config variables after init?
- Replies: 2
- Views: 260
Alternative to modifying config variables after init?
So, I recently decided to try and update to Ren'py 7.5.3, and I discovered some of the UI elements I used are no longer viable. Specifically, I made it so that items which could be used on the environment would change the cursor to one that would look like said item, and disable the save menu from b...
- Sun Jul 24, 2022 4:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to access the default value of an array after it has changed?
- Replies: 8
- Views: 610
Re: Is it possible to access the default value of an array after it has changed?
You definitely should use a dictionary here. It's perfectly made for it. Use a simple internal word as the dictionary key (e.g. "homecoming") and it's very easy to check if this quest exists. Or updating data of this quest. Checking for the length of the array here is less manageable. My ...
- Sat Jul 23, 2022 10:47 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to access the default value of an array after it has changed?
- Replies: 8
- Views: 610
Re: Is it possible to access the default value of an array after it has changed?
What is the array you have, and what changes do you want to make to it? There are a couple of possible answers: 1) If it's fixed content that doesn't change during play, just create it with 'define' instead of 'default'. Then it won't be written to the save file and when you update the code, you'll...
- Wed Jun 01, 2022 10:00 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to access the default value of an array after it has changed?
- Replies: 8
- Views: 610
Re: Is it possible to access the default value of an array after it has changed?
Well, you could easily just check for the length of the "array" (in this case actually called a list) or parts of its contents. And you could define a "new_array" and just keep the old default one. default array = [1, 2, 3] default new_array = [1, 2, 3, 4, "newquest"] ...
- Wed Jun 01, 2022 3:00 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to access the default value of an array after it has changed?
- Replies: 8
- Views: 610
Re: Is it possible to access the default value of an array after it has changed?
Is the array constant over a game or does it change when the player progresses? (If it changes, you have to know what it could look like.) You can always check for the current value of a variable after the player loads a game via the special label "after_load": # renpy jumps here after lo...
- Tue May 31, 2022 3:26 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to access the default value of an array after it has changed?
- Replies: 8
- Views: 610
Is it possible to access the default value of an array after it has changed?
Specifically, I was wondering about updating an array between versions of a game. Let's say the default value for the array is [0,1,2] in version 0.1 and [0,1,2,3,4] in version 0.2. Is it possible to compare the saved array size with the new default one, and if they are different, appending the new ...
- Thu Jan 09, 2020 2:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Question on the "about" screen
- Replies: 2
- Views: 343
Question on the "about" screen
This is a question about legality and the will of the developer. Basically, I'd like to know if the dev cares whether I show it or not and if it would be illegal to hide it. I ask because I have seen games without the "about" page in them, and it got me wondering. That's the kind of inform...
- Thu Oct 10, 2019 3:49 am
- Forum: Ren'Py Questions and Announcements
- Topic: textbutton behaviour
- Replies: 1
- Views: 464
textbutton behaviour
Hi everyone! I have a simple screen in my game: screen hologlasses: zorder 110 add "splash.png" modal True hbox: xalign 0.5 yalign 0.5 spacing 5 vbox: text "Quest log (not available yet)" #action [ Show('quest_log'), Hide("hologlasses")] textbutton "Extranet" ...
- Thu Oct 03, 2019 9:29 am
- Forum: Ren'Py Questions and Announcements
- Topic: questions about displaying images and layered images
- Replies: 0
- Views: 730
questions about displaying images and layered images
I was wondering if it's possible to set the attribute of a layered image using a variable. I tried something like: show image [var]: But it shows "image unknown attribute small" ("small" being the attribute I was actually trying to use). When I use the "small" attribute...
- Sat Sep 07, 2019 8:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to use the dialogue box to show tooltips?
- Replies: 2
- Views: 511
Re: Is it possible to use the dialogue box to show tooltips?
It can be shown here https://www.renpy.org/doc/html/screen_actions.html#tooltips sorry if i cannot really help you about it. I knew about the tooltips, but I was hoping there would be a more straightforward way to do what I want (since there is an option to display text in the dialogue box when the...
- Sat Sep 07, 2019 4:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: Is it possible to use the dialogue box to show tooltips?
- Replies: 2
- Views: 511
Is it possible to use the dialogue box to show tooltips?
Specifically, I was considering the possibility to show extra info in the dialogue box when hovering choices (for example, if a choice needs a deeper explanation, or if I want to show the next few lines of dialogue the protagonist would say if the option is selected.
- Sun May 12, 2019 1:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Question about keybindings
- Replies: 2
- Views: 273
Re: Question about keybindings
I see! This should be fairly easy to get to work, thanks!