(Solved) Hide Window/Show Window will not work

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.
Post Reply
Message
Author
User avatar
Zodiac_Stories
Newbie
Posts: 17
Joined: Mon Mar 05, 2018 9:26 pm
Completed: Flower of the North Star, Pnígike Paradise
IRC Nick: Zodie
Deviantart: EillaThePortalMaker
itch: https://zodiacstorie
Contact:

(Solved) Hide Window/Show Window will not work

#1 Post by Zodiac_Stories »

I don't know what I am doing wrong,

I want to keep my textbox hidden, while keeping the text visible. But the Hide Window wont work.

How the code looks:https://sta.sh/0jxuuknh0xf

Can anyone help?
Last edited by Zodiac_Stories on Mon Mar 04, 2024 8:42 pm, edited 1 time in total.
I make worlds filled with Monsters so you can be the Hero

User avatar
m_from_space
Eileen-Class Veteran
Posts: 1030
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: (Problem) Hide Window/Show Window will not work

#2 Post by m_from_space »

Zodiac_Stories wrote: Sun Mar 03, 2024 7:31 pm I don't know what I am doing wrong,

I want to keep my textbox hidden, while keeping the text visible. But the Hide Window wont work.

How the code looks:https://sta.sh/0jxuuknh0xf

Can anyone help?
The command "window hide" will hide the dialogue window (in other words the "say" screen). But of course the dialogue window will have to show again, if you're going to execute dialogue.

If you want to show text that is not dialogue (so it won't trigger the say screen), then create your own screen with text on it! An alternative is to create a character (or configure the narrator) that does not show a say screen background.

Code: Select all

define narrator = Character(None, window_background=None, ......)

jeffster
Miko-Class Veteran
Posts: 501
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

Re: (Problem) Hide Window/Show Window will not work

#3 Post by jeffster »

To make the textbox transparent for all characters, you can change styles in file "screens.rpy":

Code: Select all

style window:
    background None
    # other properties of this style

style namebox:
    background None
    # other properties of this style
Then to see the dialog text well, add text outlines. For example, dark outlines for white text could be:

Code: Select all

style say_label:
    # other properties of this style
    outlines [(3, "#3333"), (2, "#333"), (1, "#000")]

style say_dialogue:
    # other properties of this style
    outlines [(3, "#3333"), (2, "#333"), (1, "#000")]
PS. And you can set properties for characters or characters groups using the technique m_from_space mentioned:
https://renpy.org/doc/html/dialogue.htm ... er-objects
If the problem is solved, please edit the original post and add [SOLVED] to the title. 8)

User avatar
Zodiac_Stories
Newbie
Posts: 17
Joined: Mon Mar 05, 2018 9:26 pm
Completed: Flower of the North Star, Pnígike Paradise
IRC Nick: Zodie
Deviantart: EillaThePortalMaker
itch: https://zodiacstorie
Contact:

Re: (Problem) Hide Window/Show Window will not work

#4 Post by Zodiac_Stories »

m_from_space wrote: Mon Mar 04, 2024 5:38 am
Zodiac_Stories wrote: Sun Mar 03, 2024 7:31 pm I don't know what I am doing wrong,

I want to keep my textbox hidden, while keeping the text visible. But the Hide Window wont work.

How the code looks:https://sta.sh/0jxuuknh0xf

Can anyone help?
The command "window hide" will hide the dialogue window (in other words the "say" screen). But of course the dialogue window will have to show again, if you're going to execute dialogue.

If you want to show text that is not dialogue (so it won't trigger the say screen), then create your own screen with text on it! An alternative is to create a character (or configure the narrator) that does not show a say screen background.

Code: Select all

define narrator = Character(None, window_background=None, ......)
Thanks! that worked perfectly!
I make worlds filled with Monsters so you can be the Hero

Post Reply

Who is online

Users browsing this forum: gregkulbar, Ocelot