updateButtonState 更新按钮状态
updateButtonState
类型: MethodDeclaration
所属类: ButtonElement
定义位置: ui.ts
描述
更新按钮状态
参数 hoverSE: 是否播放选中音效
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| hoverSE | boolean | - | false | 
返回值
类型: void
源代码
位置: 第 4526 行
private updateButtonState(hoverSE: boolean = false): void {
      if (this.active) {
        return this.button.activate()
      }
      if (this.hover) {
        return this.button.hover(hoverSE)
      }
      return this.button.restore()
    }
文档生成时间:2025/7/21 20:53:39