OpenWebGAL / WebGAL

A brand new web Visual Novel engine | 全新的网页端视觉小说引擎
https://openwebgal.com
Mozilla Public License 2.0
2.61k stars 227 forks source link

Added newline processing in textbox #315

Closed labiker closed 11 months ago

labiker commented 11 months ago

Added newline processing in textbox. 在文本框中添加换行处理。 改行機能の実装です。

This is the pull request for WebGAL. ↓ https://github.com/MakinoharaShoko/WebGAL/pull/314

This is the pull request for WebGAL Terre. ↓ https://github.com/MakinoharaShoko/WebGAL_Terre/pull/104

The effect is shown below. ↓ image

generalfreed commented 11 months ago

@MakinoharaShoko

■ Functions to be added in the future Currently you can change the font size on the engine side, I would like to be able to arbitrarily change the font size of individual texts on the Terra side. In many visual novel game performance, large letters are displayed when the voice is loud, and small letters are displayed when the voice is low. (It may not be recommended to change the font size on the engine side, but please give me your opinion)

MakinoharaShoko commented 11 months ago

This is a great feature that can be considered to allow temporary override of text size through scripts

generalfreed commented 11 months ago

thank you. I'll it try.

IdrilK commented 11 months ago

(I'm directly changing the default size in the custom CSS :D) so, great and beautiful. Don't forget to let the text box automatically adjust its height with a lot of text, be careful not to overlap with the bottom menu and be careful with word hyphenation in other languages ;)

MakinoharaShoko commented 11 months ago

Merged #314