[Solved] Show buttons only with dialogue windows
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Regular
- Posts: 28
- Joined: Wed Mar 14, 2018 5:54 pm
- Contact:
[Solved] Show buttons only with dialogue windows
Hello guys. The question is quick to ask but seems hard to resolve (because I couldn't find that info anywhere for a long time).
Question: how to show buttons (q.save, skip etc. default buttons) only when dialogue window is shown (ADV and NVL too). For now they are shown all the time and I don't like it very much. I'm very new to this so please include as much info as you can.
Question: how to show buttons (q.save, skip etc. default buttons) only when dialogue window is shown (ADV and NVL too). For now they are shown all the time and I don't like it very much. I'm very new to this so please include as much info as you can.
Last edited by CyDementia on Fri Mar 16, 2018 5:19 am, edited 1 time in total.
Re: Show buttons only with dialogue windows
I'm confused. I'm pretty sure those buttons are already only shown when the dialogue window is shown -- the dialogue window is just shown nearly all the time.
-
- Regular
- Posts: 28
- Joined: Wed Mar 14, 2018 5:54 pm
- Contact:
Re: Show buttons only with dialogue windows
They are really shown all the time. And there is one thing that amazes me most of all else: they are dissolving along with the scene dissolving (at least it's individual case in the very beginning of the game, because it starts with dissolving scene). This case makes it look like this default buttons are hardcoded into all "scene" statements. If I remove "with Dissolve()" from this first scene, they don't dissolve with it
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3791
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Show buttons only with dialogue windows
Try adding
$quick_menu = True
And
$quick_menu = False
to your script.
True makes it show, False does the opposite.
$quick_menu = True
And
$quick_menu = False
to your script.
True makes it show, False does the opposite.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Show buttons only with dialogue windows
Huh. That's a change in default that I hadn't noticed. Old renpy used to have the quick_menu used in the say screen. You can delete
These two lines from screens.rpy and add use quick_menu to the say screen. (You can check a legacy UI screens.rpy for an example if you need to.)
Code: Select all
init python:
config.overlay_screens.append("quick_menu")
-
- Regular
- Posts: 28
- Joined: Wed Mar 14, 2018 5:54 pm
- Contact:
-
- Regular
- Posts: 28
- Joined: Wed Mar 14, 2018 5:54 pm
- Contact:
Re: Show buttons only with dialogue windows
I managed to completely hide menu by deleting those two lines, thank you. But I don't understand how to add menu to say screen. Imperf3kt's solution works fine, but I'll need to add these lines over and over again in the future.philat wrote: ↑Wed Mar 14, 2018 11:05 pm Huh. That's a change in default that I hadn't noticed. Old renpy used to have the quick_menu used in the say screen. You can delete
These two lines from screens.rpy and add use quick_menu to the say screen. (You can check a legacy UI screens.rpy for an example if you need to.)Code: Select all
init python: config.overlay_screens.append("quick_menu")
-
- Regular
- Posts: 28
- Joined: Wed Mar 14, 2018 5:54 pm
- Contact:
Re: Show buttons only with dialogue windows
False alert, I did it. But now it looks dimmer than usual for some reason (button text is dimmer).philat wrote: ↑Wed Mar 14, 2018 11:05 pm Huh. That's a change in default that I hadn't noticed. Old renpy used to have the quick_menu used in the say screen. You can delete
These two lines from screens.rpy and add use quick_menu to the say screen. (You can check a legacy UI screens.rpy for an example if you need to.)Code: Select all
init python: config.overlay_screens.append("quick_menu")
UPD: on closer look buttons appear faster than say window with its background (which is black with opacity). So they appear white and after ~0.2 sec say window overlaps and make buttons very dim. Is there any way to avoid it? I should bring buttons to front obviously, but i don't know the command for it
-
- Regular
- Posts: 28
- Joined: Wed Mar 14, 2018 5:54 pm
- Contact:
Re: Show buttons only with dialogue windows
Aaaaand false alert again. I should have added use quick_menu under "if" cycle in say screen and not above it. Thanks again!CyDementia wrote: ↑Wed Mar 14, 2018 11:24 pmFalse alert, I did it. But now it looks dimmer than usual for some reason (button text is dimmer).philat wrote: ↑Wed Mar 14, 2018 11:05 pm Huh. That's a change in default that I hadn't noticed. Old renpy used to have the quick_menu used in the say screen. You can delete
These two lines from screens.rpy and add use quick_menu to the say screen. (You can check a legacy UI screens.rpy for an example if you need to.)Code: Select all
init python: config.overlay_screens.append("quick_menu")
UPD: on closer look buttons appear faster than say window with its background (which is black with opacity). So they appear white and after ~0.2 sec say window overlaps and make buttons very dim. Is there any way to avoid it? I should bring buttons to front obviously, but i don't know the command for it
Who is online
Users browsing this forum: Google [Bot]