[#12815] Server UI tooltips
半只a管理员
楼主发布于 |7 浏览
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
Adds tooltip to the server UI builder and DSL, using the existing desktop and mobile tooltips.
Builder: button("Help").tooltip("Shows the server commands.")
button: "Help" { tooltip: "Shows the server commands." }Hides an open table tooltip before updating its contents.

Tested with ./gradlew tests:test desktop:dist -PnoLocalArc (337 tests). Desktop hover, disabled buttons and table updates checked in-game. Mobile input was simulated; device testing is pending.
I have read the contribution guidelines.
I have ensured that any new features or fixes in this PR function correctly in-game, if applicable.
I affirm that this code follows Mindustry's AI policy.
由 MDT GitHub 同步机器人自动同步。