How can I hide the textbox when calling a screen?

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
jacob_ax
Regular
Posts: 32
Joined: Thu Jan 31, 2019 9:21 am
Contact:

How can I hide the textbox when calling a screen?

#1 Post by jacob_ax »

Hi everyone!
As the title says, I'm trying to make some screens that will hide the textbox when they are called. So far I've just been able to prevent dialogues from going on by using

Code: Select all

screen some_screen:
	modal True
but the textbox still remain...

the command:

Code: Select all

window hide
doesn't work inside a screen...

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: How can I hide the textbox when calling a screen?

#2 Post by isobellesophia »

Code: Select all

screen some_screen:
                   background None
                   modal True
I am a friendly user, please respect and have a good day.


Image

Image


jacob_ax
Regular
Posts: 32
Joined: Thu Jan 31, 2019 9:21 am
Contact:

Re: How can I hide the textbox when calling a screen?

#3 Post by jacob_ax »

isobellesophia wrote: Tue Feb 19, 2019 8:32 am

Code: Select all

screen some_screen:
                   background None
                   modal True
I get "background is not a valid child for the screen statement"

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: How can I hide the textbox when calling a screen?

#4 Post by isobellesophia »

Nvm. Here, try it.

Code: Select all

define _preferences.show_empty_window = False
Last edited by isobellesophia on Tue Feb 19, 2019 9:43 am, edited 1 time in total.
I am a friendly user, please respect and have a good day.


Image

Image


jacob_ax
Regular
Posts: 32
Joined: Thu Jan 31, 2019 9:21 am
Contact:

Re: How can I hide the textbox when calling a screen?

#5 Post by jacob_ax »

isobellesophia wrote: Tue Feb 19, 2019 9:19 am EDIT: No, i mean, try add something to your screen, then test it.
the screen has a few things in it: buttons, frames etc...
the problem is that the textbox doesn't go away...

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: How can I hide the textbox when calling a screen?

#6 Post by isobellesophia »

jacob_ax wrote: Tue Feb 19, 2019 9:29 am
isobellesophia wrote: Tue Feb 19, 2019 9:19 am EDIT: No, i mean, try add something to your screen, then test it.
the screen has a few things in it: buttons, frames etc...
the problem is that the textbox doesn't go away...
Look at the new edit. :wink:
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: How can I hide the textbox when calling a screen?

#7 Post by Scribbles »

I'm going off of memory but you can try to add

Code: Select all

 tag menu

or you can call the screen vs show the screen maybe?
you can also hide the textbox with

Code: Select all

 window hide 
Image - Image -Image

jacob_ax
Regular
Posts: 32
Joined: Thu Jan 31, 2019 9:21 am
Contact:

Re: How can I hide the textbox when calling a screen?

#8 Post by jacob_ax »

Thanks Scribbles,
unfortunately neither of those work :(

But I realize now that I asked the question badly...
What I really need is something like this: I have a label, when I reach the end of it I don't want to leave the label, I just want stay there without going anywhere unless there is a "jump" or "call" or something else.

Code: Select all

label some_label_name:
	show background beach
	show screen some_buttons
	eileen "Hello!"
	jack "Hello to you Eileen"
	#nothing more here, but I still want to stay in this label showing the background and the buttons
The reason why I want it like this is that I will leave that label by clicking some buttons on the screen "some_buttons".

strayerror
Regular
Posts: 159
Joined: Fri Jan 04, 2019 3:44 pm
Contact:

Re: How can I hide the textbox when calling a screen?

#9 Post by strayerror »

Would reordering slightly to achieve this be acceptible? It should be possible to do this:

Code: Select all

label some_label_name:
	show background beach
	eileen "Hello!"
	jack "Hello to you Eileen"
	call screen some_buttons # using call here will wait until the screen exits before proceeding
	return # this is just a safety, and won't be used if you jump out of the screen

jacob_ax
Regular
Posts: 32
Joined: Thu Jan 31, 2019 9:21 am
Contact:

Re: How can I hide the textbox when calling a screen?

#10 Post by jacob_ax »

strayerror wrote: Tue Feb 19, 2019 6:47 pm Would reordering slightly to achieve this be acceptible? It should be possible to do this:

Code: Select all

label some_label_name:
	show background beach
	eileen "Hello!"
	jack "Hello to you Eileen"
	call screen some_buttons # using call here will wait until the screen exits before proceeding
	return # this is just a safety, and won't be used if you jump out of the screen
Thanks strayerror! That works great :D

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How can I hide the textbox when calling a screen?

#11 Post by Imperf3kt »

jacob_ax wrote: Tue Feb 19, 2019 8:26 am the command:

Code: Select all

window hide
doesn't work inside a screen...
window hide is not a screen statement, it's part of your script (it pretty much just toggles a variable, that if True, shows the window)

To use it, put it in your script, before calling your screen.

Code: Select all

    window hide
    call screen my_screen
    window auto
    "my game continues"
    
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

jacob_ax
Regular
Posts: 32
Joined: Thu Jan 31, 2019 9:21 am
Contact:

Re: How can I hide the textbox when calling a screen?

#12 Post by jacob_ax »

Imperf3kt wrote: Wed Feb 20, 2019 3:30 am
jacob_ax wrote: Tue Feb 19, 2019 8:26 am the command:

Code: Select all

window hide
doesn't work inside a screen...
window hide is not a screen statement, it's part of your script (it pretty much just toggles a variable, that if True, shows the window)

To use it, put it in your script, before calling your screen.

Code: Select all

    window hide
    call screen my_screen
    window auto
    "my game continues"
    
Thanks Imperf3kt, now it works even better :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot], piinkpuddiin