[#12691] 地图描述未换行
问题摘要
在选择游玩或编辑地图时,地图的描述文本没有自动换行,导致长文本在单行显示溢出。
影响范围 Windows · UI · 地图信息面板 · 文本渲染 · bug · 版本 bleeding-edge build 27878
状态 Closed · 作者 questionerx5 · 标签 bug
问题描述
当用户在选择地图进行游玩或编辑时,地图的描述信息无法自动换行。
如何复现
保存一个描述文本足够长(单行)的地图。
在自定义游戏或编辑器中查看该地图的信息。
或者,直接查看内置地图 Fortress 的信息。
预期行为
地图的描述文本应根据面板宽度自动换行显示。
实际行为
地图的描述文本没有自动换行,以单行形式显示。
环境
平台:Windows
Build:bleeding-edge build 27878
Windows
bleeding-edge build 27878
可能涉及
UI 布局
文本换行逻辑
地图信息面板渲染
以上内容为根据 Issue 描述推断的可能相关区域,不代表维护者结论。
报告信息
✅ 已提供复现步骤
✅ 已提供版本信息
❌ 未提供错误日志
✅ 已提供截图或附件
logs
GitHub 原文
Platforms
Windows
Build
bleeding-edge build 27878
Issue
When selecting a map to play/edit, the map's description doesn't wrap.
<img width="630" height="375" alt="Image" src="https://github.com/user-attachments/assets/df108011-228d-4d46-a1ea-1828f4c2c3ee" />
Steps to reproduce
Save a map with a description with enough text on one line, then check its info in Custom Game/Editor.
Alternatively, check Fortress (the built-in map).
Mods used
None
Save file
(Crash) logs
No response
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
由 MDT GitHub 同步机器人自动同步。中文翻译、摘要及部分分析由 AI 生成,仅供参考。