I hope you can help me, I have difficulty with using viewport to use the scroll function.
Basically I have some character dialogue which is too large to be displayed fully in the main textbox.(when the player is hearing a story or reading a book ect..)
I tried to use a screen with viewport to add a scroll bar. and although when shown it's scrollable, the screen text is showing up behind the main textbox as shown in the screen shot below, Also it is not filling the screen as it should rather it only displaying 6 rows of text, while the window should be able to display atleast 12 rows before it needs to be scrollable to see the remaining 8 rows.
1.)How can I hide the main text box so only the the dialogue in the screen is visible? (until the user finish reading and then clicks a continue button which i'll to add to the project)
2. how can i resize the window of the scroll screen to display more rows of text before the user has to really use the side scrollbar to read the rest of the content?
3) Using the screen and viewport/scrollbar approach will have me adding all of the long dialogues in the "scrolling sceen" with the text " " code.
Is there a better way to solve this issue of the text being too long for the main textbox?
Perhaps someway to wrap a scrollbar/viewport to display at specific labels/character dialogues?
Code: Select all
screen scrollbr:
add "blkscreen.png" align (.93,.33)
modal True
window:
viewport:
scrollbars "vertical"
mousewheel True
draggable True
side_yfill True
vbox:
text "start dialogue."
text "this is some text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is my text."
text "this is the end."