UI sound effect rename
This commit is contained in:
@@ -97,6 +97,7 @@ public class SoundPriority{
|
||||
set(-2f, mechStep, mechStepHeavy, walkerStep, walkerStepSmall, walkerStepTiny, mechStepSmall);
|
||||
|
||||
explosionCore.setFalloffOffset(100f);
|
||||
blockExplodeElectricBig.setFalloffOffset(70f);
|
||||
}
|
||||
|
||||
static void max(int max, Sound... sounds){
|
||||
|
||||
@@ -231,7 +231,7 @@ public class NetClient implements ApplicationListener{
|
||||
public static void sendMessage(String message, @Nullable String unformatted, @Nullable Player playersender){
|
||||
if(Vars.ui != null){
|
||||
Vars.ui.chatfrag.addMessage(message);
|
||||
Sounds.chatMessage.play();
|
||||
Sounds.uiChat.play();
|
||||
}
|
||||
|
||||
if(playersender != null && unformatted != null){
|
||||
@@ -248,7 +248,7 @@ public class NetClient implements ApplicationListener{
|
||||
public static void sendMessage(String message){
|
||||
if(Vars.ui != null){
|
||||
Vars.ui.chatfrag.addMessage(message);
|
||||
Sounds.chatMessage.play();
|
||||
Sounds.uiChat.play();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ public class UI implements ApplicationListener, Loadable{
|
||||
Core.app.post(() -> showErrorMessage("Failed to access local storage.\nSettings will not be saved."));
|
||||
});
|
||||
|
||||
ClickListener.clicked = () -> Sounds.press.play();
|
||||
ClickListener.clicked = () -> Sounds.uiButton.play();
|
||||
|
||||
drillCursor = Core.graphics.newCursor("drill", Fonts.cursorScale());
|
||||
unloadCursor = Core.graphics.newCursor("unload", Fonts.cursorScale());
|
||||
|
||||
@@ -26,7 +26,7 @@ public class BaseDialog extends Dialog{
|
||||
if(shouldPause && state.isGame() && !net.active() && !wasPaused){
|
||||
state.set(State.playing);
|
||||
}
|
||||
Sounds.back.play();
|
||||
Sounds.uiBack.play();
|
||||
});
|
||||
|
||||
shown(() -> {
|
||||
|
||||
@@ -602,7 +602,7 @@ public class ResearchDialog extends BaseDialog{
|
||||
treeLayout();
|
||||
rebuild();
|
||||
Core.scene.act();
|
||||
Sounds.unlock.play();
|
||||
Sounds.uiUnlock.play();
|
||||
Events.fire(new ResearchEvent(node.content));
|
||||
}
|
||||
|
||||
|
||||
@@ -610,7 +610,7 @@ public class HudFragment{
|
||||
if(state.isMenu()) return;
|
||||
|
||||
scheduleToast(() -> {
|
||||
Sounds.message.play();
|
||||
Sounds.uiNotify.play();
|
||||
|
||||
Table table = new Table(Tex.button);
|
||||
table.update(() -> {
|
||||
@@ -640,7 +640,7 @@ public class HudFragment{
|
||||
//also don't play in the tutorial to prevent confusion
|
||||
if(state.isMenu()) return;
|
||||
|
||||
Sounds.message.play();
|
||||
Sounds.uiNotify.play();
|
||||
|
||||
//if there's currently no unlock notification...
|
||||
if(lastUnlockTable == null){
|
||||
|
||||
Reference in New Issue
Block a user