hide the timer when it's stopped

This commit is contained in:
Greenlamp 2024-05-19 11:12:14 +02:00
parent f87b8e259f
commit 29d8d553ab

View File

@ -239,6 +239,7 @@ export default abstract class AbstractBindingUiHandler extends UiHandler {
*/ */
onInputDown(buttonIcon: string, assignedButtonIcon: string, type: string): void { onInputDown(buttonIcon: string, assignedButtonIcon: string, type: string): void {
clearTimeout(this.countdownTimer); clearTimeout(this.countdownTimer);
this.timerText.setText("");
this.newButtonIcon.setTexture(type); this.newButtonIcon.setTexture(type);
this.newButtonIcon.setFrame(buttonIcon); this.newButtonIcon.setFrame(buttonIcon);
if (assignedButtonIcon) { if (assignedButtonIcon) {