Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
-
tmeerkat
- Newbie
- Posts: 4
- Joined: Wed Oct 21, 2020 11:36 am
-
Contact:
#1
Post
by tmeerkat » Tue Oct 27, 2020 2:32 pm
Sorry for the simple question, but I am unable to hide the dialog window. I want the text to show over the background image without the darkened box. It seems like this should be a simple task, but I have not been successful. I've tried both of the below lines, but neither seem to affect the background of the dialog window.
Code: Select all
define persistent.dialogueBoxOpacity = 0.0
window hide
b "Hello?{w=1.0}{nw}"
Yes, I have read the documentation:
https://www.renpy.org/doc/html/dialogue.html
-
rayminator
- Miko-Class Veteran
- Posts: 754
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
-
Contact:
#2
Post
by rayminator » Tue Oct 27, 2020 2:53 pm
if you don't want to use a textbox in your game
look for background Image("gui/textbox.png", xalign=0.5, yalign=1.0) in screens.rpy and remove it
the window hide window show doesn't really work like it use to
-
tmeerkat
- Newbie
- Posts: 4
- Joined: Wed Oct 21, 2020 11:36 am
-
Contact:
#3
Post
by tmeerkat » Tue Oct 27, 2020 4:16 pm
I actually do want to use it normally, but I have an animation sequence where it is blocking graphics, and I would prefer floating text.
-
RicharDann
- Veteran
- Posts: 284
- Joined: Thu Aug 31, 2017 11:47 am
-
Contact:
#4
Post
by RicharDann » Wed Oct 28, 2020 9:12 am
Not the most elegant solution but you could try using a
ConditionSwitch to temporarily hide the background.
Code: Select all
# this variable will control wether the window background is shown or not
default show_window = True
# in style window
background ConditionSwitch('not show_window', Null(),
'True', Image("gui/textbox.png", xalign=0.5, yalign=1.0))
# in your script
label start:
"Window is shown as normal"
$ show_window = False #this hides the window
"Now the text is floating!"
$ show_window = True #this restores the window
"The window is back."
The most important step is always the next one.
Users browsing this forum: Bing [Bot]