Bigger input prompt
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.
-
- Newbie
- Posts: 5
- Joined: Sun Aug 12, 2018 4:07 am
- Contact:
Bigger input prompt
Hi,
I would like to make a screen that shows an email like image in the background where the player can enter text using something like renpy.input() however, this method does not admit entering multiple lines (as far as I know).
Is it possible to create an input text (or text area) that allows multiple lines and possibly has a button for sending the text somewhere? (instead of using the Enter key to accept the input).
My main issue is creating this multiline text area.
Thanks
I would like to make a screen that shows an email like image in the background where the player can enter text using something like renpy.input() however, this method does not admit entering multiple lines (as far as I know).
Is it possible to create an input text (or text area) that allows multiple lines and possibly has a button for sending the text somewhere? (instead of using the Enter key to accept the input).
My main issue is creating this multiline text area.
Thanks
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Bigger input prompt
kikofernandez wrote: ↑Sun Aug 12, 2018 4:18 am Hi,
I would like to make a screen that shows an email like image in the background where the player can enter text using something like renpy.input() however, this method does not admit entering multiple lines (as far as I know).
Is it possible to create an input text (or text area) that allows multiple lines and possibly has a button for sending the text somewhere? (instead of using the Enter key to accept the input).
My main issue is creating this multiline text area.
Thanks
An input entity in a screen will work as a multi line area if you set a xmaximum value to it. xmaximum is the width of the entity in pixels. A text that is wider will break line and continue one line down.
i.e.
input pos(20, 125) color "#fff" xmaximum 350
-
- Newbie
- Posts: 5
- Joined: Sun Aug 12, 2018 4:07 am
- Contact:
Re: Bigger input prompt
Hi,
thanks. That works partially. After I introduce two lines of text the third line is half cut by the bottom frame.
thanks. That works partially. After I introduce two lines of text the third line is half cut by the bottom frame.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Bigger input prompt
Then you should consider adjusting the xmaximum
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
-
- Newbie
- Posts: 5
- Joined: Sun Aug 12, 2018 4:07 am
- Contact:
Re: Bigger input prompt
Hi,
thanks but by adjusting the xmaximum I can control de width, not but the height. I have tried to use the ymaximum without success either.
Could you put a really simple snippet that shows this? What I have is:
thanks but by adjusting the xmaximum I can control de width, not but the height. I have tried to use the ymaximum without success either.
Could you put a really simple snippet that shows this? What I have is:
Code: Select all
screen emailI():
window:
# has vbox
input pos(120, 0) color "#fff" xmaximum 200 ymaximum 20
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Bigger input prompt
That ymaximum is really small, try rather than 20, having a larger number like 200?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
- Newbie
- Posts: 5
- Joined: Sun Aug 12, 2018 4:07 am
- Contact:
Re: Bigger input prompt
thanks but the issue remains. I have tried with 120, 200, 400 and the same thing happens.
I attach an image link so that it is clear:
https://image.ibb.co/j5BURU/Screen_Shot ... _12_04.png
I attach an image link so that it is clear:
https://image.ibb.co/j5BURU/Screen_Shot ... _12_04.png
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Bigger input prompt
Oops, sorry. I did mean ymaximum, I was just going by what was written in the code provided without much thought.
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
-
- Newbie
- Posts: 5
- Joined: Sun Aug 12, 2018 4:07 am
- Contact:
Re: Bigger input prompt
thanks, but the issue remains... the following image should show the problem:
https://image.ibb.co/j5BURU/Screen_Shot ... _12_04.png
https://image.ibb.co/j5BURU/Screen_Shot ... _12_04.png
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: Bigger input prompt
It looks to me like it is a scroll-able text that you are looking for.
You could get that by putting the input inside a viewport.
Code: Select all
viewport:
ypos 125
xpos 10
xysize (310,100)
scrollbars "vertical"
input pos (5,5) color "#fff" xmaximum 300
Who is online
Users browsing this forum: Google [Bot]