No Text Box
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.
-
TheChatotMaestro
- Regular
- Posts: 91
- Joined: Mon Jul 31, 2017 8:33 am
- Deviantart: LedianWithACamera
- Contact:
No Text Box
When I try to use a custom textbox...
window_background="textbox_phone.png" results in an error, but "window_background="gui/textbox_phone.png"" makes the text box disappear. I'm pretty sure the image is in the right place, it's in the GUI folder...
window_background="textbox_phone.png" results in an error, but "window_background="gui/textbox_phone.png"" makes the text box disappear. I'm pretty sure the image is in the right place, it's in the GUI folder...
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: No Text Box
You don't need to fiddle with the code, merely replace the image "textbox.png" found in the gui folder, with your image. Keep the name the same.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
TheChatotMaestro
- Regular
- Posts: 91
- Joined: Mon Jul 31, 2017 8:33 am
- Deviantart: LedianWithACamera
- Contact:
Re: No Text Box
But I want certain characters to have 'textbox' and certain characters to have 'textbox_phone'.
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: No Text Box
"window_background="gui/textbox_phone.png" is the correct one. The problem of text box disappearing is maybe due to the adjustment of the textbox position?
-
TheChatotMaestro
- Regular
- Posts: 91
- Joined: Mon Jul 31, 2017 8:33 am
- Deviantart: LedianWithACamera
- Contact:
Re: No Text Box
The textbox for the phone is the same as the normal textbox, just recolored, and the normal one works fine.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: No Text Box
You could do a window hide at the start of the game and just 'show' an ordinary image that covers where the text box area instead.
Not ideal, but it'd work.
Not ideal, but it'd work.
Code: Select all
label start:
window hide
show textbox
charactera "Hi."
show textbox_phone as textbox
characterb "Oh, hello"Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: No Text Box
What is the file of the textbox? PNG or JPEG? (just want to be sure). Is there another styling besides "window_background" for that specific character? You could attach the textbox file here so I can check it out.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: No Text Box
Just remembered a common issue.
In Windows are you hiding known file extensions (default)
You may have inadvertently named the file "textbox_phone.png.png"
In Windows are you hiding known file extensions (default)
You may have inadvertently named the file "textbox_phone.png.png"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: No Text Box
OK. Scrap the theory of incorrect file name, as Ren'Py should throw "IOError: Couldn't find file". Tell me, what happens when you use "window_background="gui/window_icon.png"? Does something show on screen or nothing show up at all?
Who is online
Users browsing this forum: Google [Bot]
