UI sound effect rename

This commit is contained in:
Anuken
2025-12-14 19:25:39 -05:00
parent fcd4e5a737
commit 97d3f6f63f
12 changed files with 9 additions and 8 deletions

View File

@@ -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){

View File

@@ -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();
}
}

View File

@@ -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());

View File

@@ -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(() -> {

View File

@@ -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));
}

View File

@@ -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){