rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.21k stars 262 forks source link

Does the text in this component support scrolling beyond the height of the container instead of pagination #424

Closed cy920820 closed 5 months ago

cy920820 commented 5 months ago

https://codepen.io/rexrainbow/pen/GRYLrje

rexrainbow commented 5 months ago

Using TextArea, demo

cy920820 commented 5 months ago

But I want to use components like dialog boxes, can I implement them

rexrainbow commented 5 months ago

TextBox does not support scrolling content feature. It is designed for typing page by page.

rexrainbow commented 5 months ago

For typing on textArea, it is another kind of use case, can you describe it more detail?

cy920820 commented 5 months ago

I need an interactive approach like TextBox Demo, but I don't want to use pagination. I want it to scroll and output as the word by word content increases

This is a bit like CSS attributes, overflow: auto

rexrainbow commented 5 months ago

For example, TextBox has 4 lines, once typing at end of 4th line, it will move up 1 line = 2nd, 3rd, 4th lines + an empty new line for typing 5th lines.

1st line
2nd line
3rd line
4th line

-->

2nd line
3rd line
4th line
... typing 5th line...

Do I get your requirement?

cy920820 commented 5 months ago

Can it add a word for word animation?

rexrainbow commented 5 months ago

I don't get your requirement. Sorry. Can you explain about word animation?

cy920820 commented 5 months ago

I actually want to combine these two demos

rexrainbow commented 5 months ago

Typing character one by one and still can drag the content by touch input?

Or after tying, user can drag the content by touch input (but can't drag when typing)

I actually want to combine these two demos

cy920820 commented 5 months ago

It's just an AVG conversation guide, and then the user and NPC will have a conversation. The NPC will put the reply into the dialogue box, and the text content of this dialogue box is uncertain, completely depending on the server's return

rexrainbow commented 5 months ago

Since you had implemented this feature, issue closed.