TextFormatter
基本信息
| 属性 | 值 |
|---|---|
| 类名 | remoteio.client.helper.TextFormatter |
| 包 | client/helper/(与 IORenderHelper 同包) |
功能
客户端文本格式化工具,处理界面 / tooltip 中的文本排版。
实现要点
- 与 Strings 的
wrap配合:后者做单词换行,本类做富文本标记。 - 服务于 Documentation 手册与各 GUI 的文本渲染。
- 另有 TooltipEventHandler 在客户端拦截 tooltip 事件, 为物品补充本 mod 的说明文字。
相关条目
- Strings - 单词换行
- Documentation - 主要使用方
- TooltipEventHandler - tooltip 增强