This commit is contained in:
Sen 2025-03-18 13:07:23 +01:00
parent 47b9ecbb94
commit b3fff0134f
6 changed files with 10 additions and 3 deletions

View file

@ -51,6 +51,7 @@ public class Dropdown<T> extends Element {
if(drop.value != prev) {
drop.func.use(drop, drop.getValue());
drop.formatText();
this.playSound();
}
this.visible = false;
this.r_dirty = true;
@ -110,6 +111,7 @@ public class Dropdown<T> extends Element {
if((this.value = this.def) != prev) {
this.func.use(this, this.getValue());
this.formatText();
this.playSound();
}
}
else if(this.gui != null) {
@ -117,6 +119,7 @@ public class Dropdown<T> extends Element {
drop.visible = true;
drop.r_dirty = true;
this.gui.selected = drop;
this.playSound();
}
}