summaryrefslogtreecommitdiff
path: root/src/msgbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/msgbox.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/msgbox.cpp b/src/msgbox.cpp
index 968b607..30ee66e 100644
--- a/src/msgbox.cpp
+++ b/src/msgbox.cpp
@@ -45,7 +45,7 @@ int dMsgBoxManager_c::onCreate() {
layout.loadGroups(groupNames, (int[2]){0,1}, 2);
layout.disableAllAnimations();
- layout.drawOrder = 0xA0;
+ layout.drawOrder = 140;
layoutLoaded = true;
}
@@ -132,6 +132,9 @@ void dMsgBoxManager_c::beginState_BoxAppearWait() {
visible = true;
MessageBoxIsShowing = true;
layout.enableNonLoopAnim(ANIM_BOX_APPEAR);
+
+ nw4r::snd::SoundHandle handle;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_SYS_KO_DIALOGUE_IN, 1);
}
void dMsgBoxManager_c::executeState_BoxAppearWait() {
@@ -162,6 +165,9 @@ CREATE_STATE(dMsgBoxManager_c, BoxDisappearWait);
void dMsgBoxManager_c::beginState_BoxDisappearWait() {
layout.enableNonLoopAnim(ANIM_BOX_DISAPPEAR);
+
+ nw4r::snd::SoundHandle handle;
+ PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_SYS_DIALOGUE_OUT_AUTO, 1);
}
void dMsgBoxManager_c::executeState_BoxDisappearWait() {