Search found 85 matches
- Sun Dec 27, 2020 5:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to disable right click and keep ESC, but also allow right click on buttons?
- Replies: 2
- Views: 321
Re: How to disable right click and keep ESC, but also allow right click on buttons?
Ah, that's a good one. I'll do that thanks.
- Sun Dec 27, 2020 4:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to disable right click and keep ESC, but also allow right click on buttons?
- Replies: 2
- Views: 321
How to disable right click and keep ESC, but also allow right click on buttons?
Currently the ESC key and RIGHT mouse click will bring up the game's menu. I have a game where I utilize right clicking on buttons as a unique action (as opposed to left clicking). Is there a way to keep ESC key as it is (to bring up the game menu), but disable the default right-clicking behavior, a...
- Fri May 29, 2020 10:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text in a textbutton?
- Replies: 12
- Views: 561
Re: How to center text in a textbutton?
@rayminator I don't quite understand the hostility here, I tried both ways and I am saying it does not give the right results. Have you tried the code snippet, because your own code gives an error.... Also, I already said the "text_align 0.5" showing up twice was a typo, and fixing that st...
- Fri May 29, 2020 8:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text in a textbutton?
- Replies: 12
- Views: 561
Re: How to center text in a textbutton?
@rayminator sorry that was a typo, but the problem still persists. If you run that same code on your end, do you see the same issue?
Also here is the button image, if anyone wants to try it out:
Also here is the button image, if anyone wants to try it out:
- Fri May 29, 2020 7:50 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text in a textbutton?
- Replies: 12
- Views: 561
Re: How to center text in a textbutton?
Thanks, how about when a background is defined? I just tried the following: screen test: frame: xalign 0.5 yalign 0.5 xmaximum 400 ymaximum 400 textbutton "Click me": text_size 30 background "images/a.png" text_align 0.5 text_color "#000" label start: show screen test &...
- Fri May 29, 2020 3:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to center text in a textbutton?
- Replies: 12
- Views: 561
How to center text in a textbutton?
I've created a textbutton inside a frame: frame: xalign 0.5 yalign 0.5 xmaximum 400 ymaximum 400 textbutton "Click me": xpos 30 ypos 30 text_size 30 But the text 'Click Me' is left-aligned, not centered in the textbox. I tried to use xalign/yalign 0.5 on the textbutton, but this shifts the...
- Wed May 27, 2020 1:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to show both AnimatedValue AND the value that's changing?
- Replies: 7
- Views: 546
How to show both AnimatedValue AND the value that's changing?
I have bar that renders a player's health. I would like to animate a healing spell, but also show the current health integer value as it increases. The speed at which the health increases is 2 seconds (for now). Below I have the code that uses AnimatedValue() , and I also have a text that displays t...
- Fri May 01, 2020 12:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Correct way of instantiating/modifying a global variable?
- Replies: 3
- Views: 252
Correct way of instantiating/modifying a global variable?
Hi, I have two questions regarding global variables: both instantiating them and modifying them. I have been having issues with reloading/rollback/saving because I made the mistake of only declaring the global variables inside the python init block, like so: BAD!!! init python: inv = "Ruby"...
- Tue Dec 31, 2019 2:20 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to declare scene on a custom layer?
- Replies: 1
- Views: 463
How to declare scene on a custom layer?
Hi, I have a custom layer named ‘base’: config.layer = [‘base’, ‘master’, ... ] Normally I would declare a scene like this: label start: scene bg mybackground And that puts my image on the master layer by default. Is there a way I can make it specifically render on my custom base layer instead?
- Thu Aug 29, 2019 5:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Scene command is incorrectly showing other scenes
- Replies: 6
- Views: 1013
Re: Scene command is incorrectly showing other scenes
Thanks, that seems to have worked!IrinaLazareva wrote: ↑Sat Aug 24, 2019 4:13 pm The transparent background will be black after the game is released. But if it is crucial, you can use this instead of «hide bg orange»:Code: Select all
scene black with fade
- Thu Aug 29, 2019 5:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Scene command is incorrectly showing other scenes
- Replies: 6
- Views: 1013
Re: Scene command is incorrectly showing other scenes
I don't fully understand the intent of this. I might be able to help if I do. Are you trying to show background images based on the time of day? Based on a variable? Are you trying to animate the backgrounds changing at once? I'm not doing anything fancy like that. I have a main scene where the pla...
- Fri Aug 23, 2019 7:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Scene command is incorrectly showing other scenes
- Replies: 6
- Views: 1013
Re: Scene command is incorrectly showing other scenes
Thanks, that's a nice idea, but now instead of showing the orange it shows a transparent background briefly and then proceeds to the next scene background.
- Thu Aug 22, 2019 6:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Scene command is incorrectly showing other scenes
- Replies: 6
- Views: 1013
Scene command is incorrectly showing other scenes
I have a weird issue. I have set up a game where I set the background image using a simple add statement through a screen. However, it calls other labels which uses the scene statement to setup the background image. The game interaction loops around, so the backgrounds should be hidden/shown based o...
- Fri Jul 12, 2019 8:10 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align columns in a vpgrid?
- Replies: 4
- Views: 594
Re: Align columns in a vpgrid?
@trooper6 What is the width property of an "add <image>", if the first column is to be a picture instead of text?
- Fri Jul 12, 2019 3:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align columns in a vpgrid?
- Replies: 4
- Views: 594
Align columns in a vpgrid?
I want to display a row of information, but because each column in my rows have a different width, it messes up the alignment when I stack my rows together. Here is an example: vpgrid: ypos 150 xalign 0.5 xsize 1000 cols 1 spacing 3 draggable True mousewheel True scrollbars "vertical" side...