diff options
author | Treeki <treeki@gmail.com> | 2013-02-28 05:50:15 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-28 05:50:15 +0100 |
commit | 423c46c008361a31d949b213673daacc9edb2818 (patch) | |
tree | d12b07c57222d7aa4deb26fa92bf8c06f53ad91a | |
parent | 1aed898047474dc077d9c5e908642ce0ab6a81ff (diff) | |
download | kamek-423c46c008361a31d949b213673daacc9edb2818.tar.gz kamek-423c46c008361a31d949b213673daacc9edb2818.zip |
add sounds and fix draw order of message box
-rw-r--r-- | src/msgbox.cpp | 8 |
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() { |