mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
SwitchBlock clickSound (#7158)
This commit is contained in:
parent
aaf37b0be8
commit
af80db0dfd
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package mindustry.world.blocks.logic;
|
||||
|
||||
import arc.audio.*;
|
||||
import arc.graphics.g2d.*;
|
||||
import arc.util.io.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
|
|
@ -8,6 +9,8 @@ import mindustry.world.*;
|
|||
import mindustry.world.meta.*;
|
||||
|
||||
public class SwitchBlock extends Block{
|
||||
public Sound clickSound = Sounds.click;
|
||||
|
||||
public @Load("@-on") TextureRegion onRegion;
|
||||
|
||||
public SwitchBlock(String name){
|
||||
|
|
@ -27,7 +30,7 @@ public class SwitchBlock extends Block{
|
|||
@Override
|
||||
public boolean configTapped(){
|
||||
configure(!enabled);
|
||||
Sounds.click.at(this);
|
||||
clickSound.at(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue