じ☆ve冰风 发表于 2026-7-24 19:35:22

Phileas' Text Wrap (MZ automatic text break (word wrap) in the message)

Plugin name: Phileas's Text Wrap

Author: Phileas

Version: 1.1.7 for MZ

Release date:
1.0.0 - 2023.July.02
1.1.7 - 2025.July.27

Plugin description:
The plugin adds a line break to the text in such a way that the text does not go beyond the borders of the window.
The plugin works automatically for message windows and the TAA_BookMenu plugin.

The text is carried over by words. That is, it is impossible for one half of a word to be on one line and the other half on the next. The whole word will be moved to a new line. This is how word wrapping works in Windows Notepad and many other places. This way, the text will look neat.
The plugin may not work well if some word is wider than the dialog box. But it is unlikely that anyone in their right mind would use such words in practice.

Plugin Command: getWrappedText
This command will allow you to write the processed text to a variable.

Feature of the plugin: the text color setting (\C) is saved when the line is moved. Even if the new line is displayed in another window (which often happens when transferring text in the message window).
The same applies to the text size setting (\FS).

Code

License
MIT, all responsibility is on the user.

Compatibility:
If there are any problems, write to me.


本贴来自国际rpgmaker官方论坛作者:Phileas处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/phileas-text-wrap-mz-automatic-text-break-word-wrap-in-the-message.158894/
页: [1]
查看完整版本: Phileas' Text Wrap (MZ automatic text break (word wrap) in the message)