Mercurial > mm7
comparison mm7_5.cpp @ 388:d95a91011d57
AudioPlayer::PlaySound
author | Nomad |
---|---|
date | Sat, 23 Feb 2013 04:01:09 +0200 |
parents | 243418228760 |
children | e32950ebabb9 |
comparison
equal
deleted
inserted
replaced
383:c3a0d94c07a5 | 388:d95a91011d57 |
---|---|
13867 v2 = 1; | 13867 v2 = 1; |
13868 goto LABEL_15; | 13868 goto LABEL_15; |
13869 } | 13869 } |
13870 v2 = 1; | 13870 v2 = 1; |
13871 v31 = 1; | 13871 v31 = 1; |
13872 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 13872 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
13873 LABEL_15: | 13873 LABEL_15: |
13874 dword_506568 = 0; | 13874 dword_506568 = 0; |
13875 pRenderer->DrawTextureTransparent(pViewport->uViewportX + 398, pViewport->uViewportY + 113, pTexture_506394); | 13875 pRenderer->DrawTextureTransparent(pViewport->uViewportX + 398, pViewport->uViewportY + 113, pTexture_506394); |
13876 LABEL_16: | 13876 LABEL_16: |
13877 if ( dword_50653C ) | 13877 if ( dword_50653C ) |
13878 { | 13878 { |
13879 if ( dword_506568 != v2 ) | 13879 if ( dword_506568 != v2 ) |
13880 { | 13880 { |
13881 v31 = v2; | 13881 v31 = v2; |
13882 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 13882 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
13883 } | 13883 } |
13884 } | 13884 } |
13885 else | 13885 else |
13886 { | 13886 { |
13887 if ( dword_506568 != v2 ) | 13887 if ( dword_506568 != v2 ) |
13901 if ( dword_506538 ) | 13901 if ( dword_506538 ) |
13902 { | 13902 { |
13903 if ( dword_506568 != 2 ) | 13903 if ( dword_506568 != 2 ) |
13904 { | 13904 { |
13905 v31 = v2; | 13905 v31 = v2; |
13906 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 13906 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
13907 } | 13907 } |
13908 } | 13908 } |
13909 else | 13909 else |
13910 { | 13910 { |
13911 if ( dword_506568 != 2 ) | 13911 if ( dword_506568 != 2 ) |
13925 if ( dword_506534 ) | 13925 if ( dword_506534 ) |
13926 { | 13926 { |
13927 if ( dword_506568 != 3 ) | 13927 if ( dword_506568 != 3 ) |
13928 { | 13928 { |
13929 v31 = v2; | 13929 v31 = v2; |
13930 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 13930 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
13931 } | 13931 } |
13932 } | 13932 } |
13933 else | 13933 else |
13934 { | 13934 { |
13935 if ( dword_506568 != 3 ) | 13935 if ( dword_506568 != 3 ) |
13949 if ( dword_506530 ) | 13949 if ( dword_506530 ) |
13950 { | 13950 { |
13951 if ( dword_506568 != 4 ) | 13951 if ( dword_506568 != 4 ) |
13952 { | 13952 { |
13953 v31 = v2; | 13953 v31 = v2; |
13954 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 13954 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
13955 } | 13955 } |
13956 } | 13956 } |
13957 else | 13957 else |
13958 { | 13958 { |
13959 if ( dword_506568 != 4 ) | 13959 if ( dword_506568 != 4 ) |
13973 if ( dword_50652C ) | 13973 if ( dword_50652C ) |
13974 { | 13974 { |
13975 if ( dword_506568 != 5 ) | 13975 if ( dword_506568 != 5 ) |
13976 { | 13976 { |
13977 v31 = v2; | 13977 v31 = v2; |
13978 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 13978 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
13979 } | 13979 } |
13980 } | 13980 } |
13981 else | 13981 else |
13982 { | 13982 { |
13983 if ( dword_506568 != 5 ) | 13983 if ( dword_506568 != 5 ) |
14209 { | 14209 { |
14210 viewparams->_443225(); | 14210 viewparams->_443225(); |
14211 //v6 = dword_506534; | 14211 //v6 = dword_506534; |
14212 } | 14212 } |
14213 if ( dword_506548 | dword_506544 | dword_506540 | dword_50653C | dword_506538 | dword_506534 ) | 14213 if ( dword_506548 | dword_506544 | dword_506540 | dword_50653C | dword_506538 | dword_506534 ) |
14214 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 14214 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
14215 dword_506548 = 0; | 14215 dword_506548 = 0; |
14216 dword_506544 = 0; | 14216 dword_506544 = 0; |
14217 dword_506534 = 0; | 14217 dword_506534 = 0; |
14218 dword_506538 = 0; | 14218 dword_506538 = 0; |
14219 dword_50653C = 0; | 14219 dword_50653C = 0; |
15078 GameUI_MainMenu_DrawLoad(); | 15078 GameUI_MainMenu_DrawLoad(); |
15079 continue; | 15079 continue; |
15080 case WINDOW_5E: // window that initiates savegame loading | 15080 case WINDOW_5E: // window that initiates savegame loading |
15081 { | 15081 { |
15082 if (pWindow->Hint != (char *)1) | 15082 if (pWindow->Hint != (char *)1) |
15083 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15083 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15084 auto pGUIButton3 = (GUIButton *)pWindow->ptr_1C; | 15084 auto pGUIButton3 = (GUIButton *)pWindow->ptr_1C; |
15085 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, pGUIButton3->pTextures[0]); | 15085 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, pGUIButton3->pTextures[0]); |
15086 pHint = pWindow->Hint; | 15086 pHint = pWindow->Hint; |
15087 viewparams->bRedrawGameUI = 1; | 15087 viewparams->bRedrawGameUI = 1; |
15088 if ( pHint && pHint != (char *)1 ) | 15088 if ( pHint && pHint != (char *)1 ) |
15101 { | 15101 { |
15102 v33 = pWindowType - 96; | 15102 v33 = pWindowType - 96; |
15103 if ( pWindowType == WINDOW_60 )//96 | 15103 if ( pWindowType == WINDOW_60 )//96 |
15104 { | 15104 { |
15105 if ( pWindow->Hint != (char *)1 ) | 15105 if ( pWindow->Hint != (char *)1 ) |
15106 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15106 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15107 pGUIButton = (GUIButton *)pWindow->ptr_1C; | 15107 pGUIButton = (GUIButton *)pWindow->ptr_1C; |
15108 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, pGUIButton->pTextures[0]); | 15108 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, pGUIButton->pTextures[0]); |
15109 pHint = pWindow->Hint; | 15109 pHint = pWindow->Hint; |
15110 viewparams->bRedrawGameUI = 1; | 15110 viewparams->bRedrawGameUI = 1; |
15111 if ( pHint && pHint != (char *)1 ) | 15111 if ( pHint && pHint != (char *)1 ) |
15182 GUIButton2.uX = 27; | 15182 GUIButton2.uX = 27; |
15183 GUIButton2.uY = 161; | 15183 GUIButton2.uY = 161; |
15184 GUIButton2.uWidth = 171; | 15184 GUIButton2.uWidth = 171; |
15185 GUIButton2.uHeight = 37; | 15185 GUIButton2.uHeight = 37; |
15186 GUIButton2.pParent = pButton_RestUI_WaitUntilDawn->pParent; | 15186 GUIButton2.pParent = pButton_RestUI_WaitUntilDawn->pParent; |
15187 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15187 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15188 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)pWindow->ptr_1C + 15)); | 15188 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)pWindow->ptr_1C + 15)); |
15189 viewparams->bRedrawGameUI = 1; | 15189 viewparams->bRedrawGameUI = 1; |
15190 GUIButton2.DrawLabel(pGlobalTXT_LocalizationStrings[183], pFontCreate, 0, 0);//Отдых и лечение 8 часов | 15190 GUIButton2.DrawLabel(pGlobalTXT_LocalizationStrings[183], pFontCreate, 0, 0);//Отдых и лечение 8 часов |
15191 GUIButton2.pParent = 0; | 15191 GUIButton2.pParent = 0; |
15192 //goto LABEL_134; | 15192 //goto LABEL_134; |
15194 //goto LABEL_110; | 15194 //goto LABEL_110; |
15195 pGUIWindow2->Release(); | 15195 pGUIWindow2->Release(); |
15196 continue; | 15196 continue; |
15197 } | 15197 } |
15198 if ( pWindow->Hint != (char *)1 )//pWindowType == WINDOW_61 | 15198 if ( pWindow->Hint != (char *)1 )//pWindowType == WINDOW_61 |
15199 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15199 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15200 v32 = pWindow->ptr_1C; | 15200 v32 = pWindow->ptr_1C; |
15201 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)v32 + 16)); | 15201 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)v32 + 16)); |
15202 //goto LABEL_138; | 15202 //goto LABEL_138; |
15203 pHint = pWindow->Hint; | 15203 pHint = pWindow->Hint; |
15204 viewparams->bRedrawGameUI = 1; | 15204 viewparams->bRedrawGameUI = 1; |
15218 } | 15218 } |
15219 | 15219 |
15220 if ( pWindowType == WINDOW_5F ) | 15220 if ( pWindowType == WINDOW_5F ) |
15221 { | 15221 { |
15222 if ( pWindow->Hint != (char *)1 ) | 15222 if ( pWindow->Hint != (char *)1 ) |
15223 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15223 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15224 v32 = pWindow->ptr_1C; | 15224 v32 = pWindow->ptr_1C; |
15225 pRenderer->DrawTextureTransparent(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)v32 + 15)); | 15225 pRenderer->DrawTextureTransparent(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)v32 + 15)); |
15226 //LABEL_138: | 15226 //LABEL_138: |
15227 pHint = pWindow->Hint; | 15227 pHint = pWindow->Hint; |
15228 viewparams->bRedrawGameUI = 1; | 15228 viewparams->bRedrawGameUI = 1; |
15284 } | 15284 } |
15285 v16 = v15 - 1; | 15285 v16 = v15 - 1; |
15286 if ( pWindowType == WINDOW_5A ) // Press buttons in title menu and in game, and escape in game | 15286 if ( pWindowType == WINDOW_5A ) // Press buttons in title menu and in game, and escape in game |
15287 { | 15287 { |
15288 if ( pWindow->Hint != (char *)1 ) | 15288 if ( pWindow->Hint != (char *)1 ) |
15289 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15289 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15290 pButtonPtr_1C = (GUIButton *)pWindow->ptr_1C; | 15290 pButtonPtr_1C = (GUIButton *)pWindow->ptr_1C; |
15291 if ( pButtonPtr_1C->uX >= 0 )//if ( (pButtonPtr_1C->uX & 0x80000000u) == 0 ) | 15291 if ( pButtonPtr_1C->uX >= 0 )//if ( (pButtonPtr_1C->uX & 0x80000000u) == 0 ) |
15292 { | 15292 { |
15293 if ( (signed int)pButtonPtr_1C->uX <= 640 ) | 15293 if ( (signed int)pButtonPtr_1C->uX <= 640 ) |
15294 { | 15294 { |
15335 } | 15335 } |
15336 v17 = v16 - 1; | 15336 v17 = v16 - 1; |
15337 if ( pWindowType == WINDOW_5B )//Change button in Character window | 15337 if ( pWindowType == WINDOW_5B )//Change button in Character window |
15338 { | 15338 { |
15339 if ( pWindow->Hint != (char *)1 ) | 15339 if ( pWindow->Hint != (char *)1 ) |
15340 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15340 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15341 pButtonPtr_1C = (GUIButton *)pWindow->ptr_1C; | 15341 pButtonPtr_1C = (GUIButton *)pWindow->ptr_1C; |
15342 pTexture2 = pButtonPtr_1C->pTextures[1]; | 15342 pTexture2 = pButtonPtr_1C->pTextures[1]; |
15343 //LABEL_94: | 15343 //LABEL_94: |
15344 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, pTexture2); | 15344 pRenderer->DrawTextureIndexed(pWindow->uFrameX, pWindow->uFrameY, pTexture2); |
15345 //LABEL_80: | 15345 //LABEL_80: |
15360 } | 15360 } |
15361 v18 = v17 - 1; | 15361 v18 = v17 - 1; |
15362 if ( pWindowType == WINDOW_VoiceSwitcherButton ) // Change page in AutonotesBook | 15362 if ( pWindowType == WINDOW_VoiceSwitcherButton ) // Change page in AutonotesBook |
15363 { | 15363 { |
15364 if ( pWindow->Hint != (char *)1 ) | 15364 if ( pWindow->Hint != (char *)1 ) |
15365 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15365 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15366 pButtonPtr_1C = (GUIButton *)pWindow->ptr_1C; | 15366 pButtonPtr_1C = (GUIButton *)pWindow->ptr_1C; |
15367 pRenderer->DrawTextureTransparent(pWindow->uFrameX, pWindow->uFrameY, pButtonPtr_1C->pTextures[0]); | 15367 pRenderer->DrawTextureTransparent(pWindow->uFrameX, pWindow->uFrameY, pButtonPtr_1C->pTextures[0]); |
15368 //goto LABEL_80; | 15368 //goto LABEL_80; |
15369 pHint1 = pWindow->Hint; | 15369 pHint1 = pWindow->Hint; |
15370 viewparams->bRedrawGameUI = 1; | 15370 viewparams->bRedrawGameUI = 1; |
15380 } | 15380 } |
15381 v19 = v18 - 1; | 15381 v19 = v18 - 1; |
15382 if ( pWindowType == WINDOW_5D ) | 15382 if ( pWindowType == WINDOW_5D ) |
15383 { | 15383 { |
15384 if ( pWindow->Hint != (char *)1 ) | 15384 if ( pWindow->Hint != (char *)1 ) |
15385 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 15385 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
15386 pRenderer->DrawTextureTransparent(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)pWindow->ptr_1C + 16)); | 15386 pRenderer->DrawTextureTransparent(pWindow->uFrameX, pWindow->uFrameY, *((Texture **)pWindow->ptr_1C + 16)); |
15387 viewparams->bRedrawGameUI = 1; | 15387 viewparams->bRedrawGameUI = 1; |
15388 //goto LABEL_134; | 15388 //goto LABEL_134; |
15389 pGUIWindow2 = pWindow; | 15389 pGUIWindow2 = pWindow; |
15390 //goto LABEL_110; | 15390 //goto LABEL_110; |