sounds
This commit is contained in:
parent
47b9ecbb94
commit
b3fff0134f
6 changed files with 10 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue