UI sound effect rename
This commit is contained in:
@@ -97,6 +97,7 @@ public class SoundPriority{
|
|||||||
set(-2f, mechStep, mechStepHeavy, walkerStep, walkerStepSmall, walkerStepTiny, mechStepSmall);
|
set(-2f, mechStep, mechStepHeavy, walkerStep, walkerStepSmall, walkerStepTiny, mechStepSmall);
|
||||||
|
|
||||||
explosionCore.setFalloffOffset(100f);
|
explosionCore.setFalloffOffset(100f);
|
||||||
|
blockExplodeElectricBig.setFalloffOffset(70f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void max(int max, Sound... sounds){
|
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){
|
public static void sendMessage(String message, @Nullable String unformatted, @Nullable Player playersender){
|
||||||
if(Vars.ui != null){
|
if(Vars.ui != null){
|
||||||
Vars.ui.chatfrag.addMessage(message);
|
Vars.ui.chatfrag.addMessage(message);
|
||||||
Sounds.chatMessage.play();
|
Sounds.uiChat.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(playersender != null && unformatted != null){
|
if(playersender != null && unformatted != null){
|
||||||
@@ -248,7 +248,7 @@ public class NetClient implements ApplicationListener{
|
|||||||
public static void sendMessage(String message){
|
public static void sendMessage(String message){
|
||||||
if(Vars.ui != null){
|
if(Vars.ui != null){
|
||||||
Vars.ui.chatfrag.addMessage(message);
|
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."));
|
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());
|
drillCursor = Core.graphics.newCursor("drill", Fonts.cursorScale());
|
||||||
unloadCursor = Core.graphics.newCursor("unload", 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){
|
if(shouldPause && state.isGame() && !net.active() && !wasPaused){
|
||||||
state.set(State.playing);
|
state.set(State.playing);
|
||||||
}
|
}
|
||||||
Sounds.back.play();
|
Sounds.uiBack.play();
|
||||||
});
|
});
|
||||||
|
|
||||||
shown(() -> {
|
shown(() -> {
|
||||||
|
|||||||
@@ -602,7 +602,7 @@ public class ResearchDialog extends BaseDialog{
|
|||||||
treeLayout();
|
treeLayout();
|
||||||
rebuild();
|
rebuild();
|
||||||
Core.scene.act();
|
Core.scene.act();
|
||||||
Sounds.unlock.play();
|
Sounds.uiUnlock.play();
|
||||||
Events.fire(new ResearchEvent(node.content));
|
Events.fire(new ResearchEvent(node.content));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -610,7 +610,7 @@ public class HudFragment{
|
|||||||
if(state.isMenu()) return;
|
if(state.isMenu()) return;
|
||||||
|
|
||||||
scheduleToast(() -> {
|
scheduleToast(() -> {
|
||||||
Sounds.message.play();
|
Sounds.uiNotify.play();
|
||||||
|
|
||||||
Table table = new Table(Tex.button);
|
Table table = new Table(Tex.button);
|
||||||
table.update(() -> {
|
table.update(() -> {
|
||||||
@@ -640,7 +640,7 @@ public class HudFragment{
|
|||||||
//also don't play in the tutorial to prevent confusion
|
//also don't play in the tutorial to prevent confusion
|
||||||
if(state.isMenu()) return;
|
if(state.isMenu()) return;
|
||||||
|
|
||||||
Sounds.message.play();
|
Sounds.uiNotify.play();
|
||||||
|
|
||||||
//if there's currently no unlock notification...
|
//if there's currently no unlock notification...
|
||||||
if(lastUnlockTable == null){
|
if(lastUnlockTable == null){
|
||||||
|
|||||||
@@ -26,4 +26,4 @@ org.gradle.caching=true
|
|||||||
org.gradle.internal.http.socketTimeout=100000
|
org.gradle.internal.http.socketTimeout=100000
|
||||||
org.gradle.internal.http.connectionTimeout=100000
|
org.gradle.internal.http.connectionTimeout=100000
|
||||||
android.enableR8.fullMode=false
|
android.enableR8.fullMode=false
|
||||||
archash=c10d68b7a1
|
archash=bba30e2f12
|
||||||
|
|||||||
Reference in New Issue
Block a user