mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-09 05:07:12 +08:00
feat(UI): 为提示框添加类型支持并改进样式
- 新增MessageType枚举定义提示类型(INFO/WARNING/ERROR) - 根据不同类型显示不同颜色样式 - 修改所有调用showTip的地方使用新的类型参数 - 移除自动销毁时间参数,统一使用固定显示时长
This commit is contained in:
@@ -369,9 +369,9 @@ func tryDie(by: BulletBase = null):
|
||||
await die()
|
||||
died.emit()
|
||||
if isBoss:
|
||||
UIState.showTip("[b]%s[/b] 已被打败!" % displayName, 500)
|
||||
UIState.showTip("[b]%s[/b] 已被打败!" % displayName, TipBox.MessageType.INFO)
|
||||
elif isPlayer():
|
||||
UIState.showTip("[b]%s[/b] 似了😭。" % displayName, 500)
|
||||
UIState.showTip("[b]%s[/b] 似了😭。" % displayName, TipBox.MessageType.ERROR)
|
||||
queue_free()
|
||||
func tryHeal(count: float):
|
||||
playSound("heal")
|
||||
|
||||
Reference in New Issue
Block a user