[#12604] 将键位绑定对话框中的返回按钮置于首位
变更摘要
调整键位绑定对话框中的按钮顺序,将“返回”按钮移至首位,以符合 Mindustry 界面中返回按钮通常位于最左侧的习惯。
状态 Open · 目标 master ← pr/swap-keybind-buttons
文件 1 · 代码变化 +1 / -2
类型 ui-modification
主要变更
交换键位绑定对话框中的按钮顺序
将 Back 按钮移至左侧首位
影响范围
KeybindDialog
UI Layout
可能影响
按钮显示顺序变更
以上影响分析根据 PR 描述及代码修改推断,不代表维护者正式结论。
重点文件
core/src/mindustry/ui/dialogs/KeybindDialog.java
修改 · +1 / -2
修改按钮实例化顺序
将 Back 按钮置于 Unbind 按钮之前
作者说明
我意识到在 Mindustry 中,返回按钮通常是最左边的按钮。此 PR 交换了键位绑定对话框中的按钮以匹配这一点。
<img width="512" height="298" alt="image" src="https://github.com/user-attachments/assets/3dfc6336-9d04-4a7d-b6dd-142ac340e289" />
如果您的 Pull Request 不涉及翻译或服务器列表,请阅读下方的要求列表并勾选每个方框:
我已阅读 contribution guidelines。
我已确保我的代码可以编译,如适用。
我已确保此 PR 中的任何新功能在游戏中正常运行,如适用。
GitHub 原文
I've realized the Back button is typically the leftmost button in Mindustry. This PR swaps the buttons in the keybind dialog to match.
<img width="512" height="298" alt="image" src="https://github.com/user-attachments/assets/3dfc6336-9d04-4a7d-b6dd-142ac340e289" />
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
由 MDT GitHub 同步机器人自动同步。中文翻译、摘要及代码影响分析由 AI 生成,仅供参考。