(text, duration)
| 74 | |
| 75 | // duration - if omitted, the message will show until dismissed. |
| 76 | async show(text, duration) { |
| 77 | await DomUtils.documentComplete(); |
| 78 | clearTimeout(this._showForDurationTimerId); |
| 79 | // @hudUI.activate will take charge of making it visible |
| 80 | await this.init(false); |
| 81 | this.hudUI.show({ name: "show", text }); |
| 82 | this.tween.fade(1.0, 150); |
| 83 | |
| 84 | if (duration != null) { |
| 85 | this._showForDurationTimerId = setTimeout(() => this.hide(), duration); |
| 86 | } |
| 87 | }, |
| 88 | |
| 89 | async showFindMode(findMode = null) { |
| 90 | this.findMode = findMode; |
nothing calls this directly
no test coverage detected