Mercurial > mm7
comparison mm7_2.cpp @ 423:88c30918eef7
NPC_EventProcessor
author | Gloval |
---|---|
date | Sat, 23 Feb 2013 23:09:48 +0400 |
parents | 6cb79ea315ba |
children | afad358dc684 |
comparison
equal
deleted
inserted
replaced
416:233f9cfc32a3 | 423:88c30918eef7 |
---|---|
3678 return result; | 3678 return result; |
3679 } | 3679 } |
3680 | 3680 |
3681 | 3681 |
3682 //----- (004BCA33) -------------------------------------------------------- | 3682 //----- (004BCA33) -------------------------------------------------------- |
3683 GUIButton *__cdecl sub_4BCA33() | 3683 GUIButton *__cdecl UI_CreateEndConversationButton() |
3684 { | 3684 { |
3685 pDialogueWindow->Release(); | 3685 pDialogueWindow->Release(); |
3686 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, 0, 0); | 3686 pDialogueWindow = GUIWindow::Create(0, 0, 640, 345, WINDOW_MainMenu, 0, 0); |
3687 pBtn_ExitCancel = pDialogueWindow->CreateButton( | 3687 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, 0x71u, 0, 0, |
3688 0x1D7u, | 3688 pGlobalTXT_LocalizationStrings[74], //"End Conversation" |
3689 0x1BDu, | 3689 (Texture *)(uTextureID_506438 != -1 ? &pIcons_LOD->pTextures[uTextureID_506438] : NULL), |
3690 0xA9u, | |
3691 0x23u, | |
3692 1, | |
3693 0, | |
3694 0x71u, | |
3695 0, | |
3696 0, | |
3697 pGlobalTXT_LocalizationStrings[74], | |
3698 (Texture *)(uTextureID_506438 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_506438] : 0), | |
3699 0); | 3690 0); |
3700 return pDialogueWindow->CreateButton(8u, 8u, 0x1C2u, 0x140u, 1, 0, 0x51u, 0, 0, "", 0); | 3691 return pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, 0x51u, 0, 0, "", 0); |
3701 } | 3692 } |
3702 | 3693 |
3703 //----- (004BCACC) -------------------------------------------------------- | 3694 //----- (004BCACC) -------------------------------------------------------- |
3704 void __fastcall sub_4BCACC_bounties(signed int a1) | 3695 void __fastcall sub_4BCACC_bounties(signed int a1) |
3705 { | 3696 { |
4089 LABEL_196: | 4080 LABEL_196: |
4090 switch ( a1 ) | 4081 switch ( a1 ) |
4091 { | 4082 { |
4092 case 96: | 4083 case 96: |
4093 pDialogueWindow->eWindowType = WINDOW_MainMenu; | 4084 pDialogueWindow->eWindowType = WINDOW_MainMenu; |
4094 sub_4BCA33(); | 4085 UI_CreateEndConversationButton(); |
4095 sub_4B3703((void *)dword_F8B198); | 4086 sub_4B3703((void *)dword_F8B198); |
4096 break; | 4087 break; |
4097 case 101: | 4088 case 101: |
4098 pDialogueWindow->eWindowType = WINDOW_MainMenu; | 4089 pDialogueWindow->eWindowType = WINDOW_MainMenu; |
4099 sub_4BCA33(); | 4090 UI_CreateEndConversationButton(); |
4100 sub_4B3A72(dword_F8B198); | 4091 sub_4B3A72(dword_F8B198); |
4101 break; | 4092 break; |
4102 case 102: | 4093 case 102: |
4103 dword_F8B19C = 102; | 4094 dword_F8B19C = 102; |
4104 break; | 4095 break; |
4180 else | 4171 else |
4181 { | 4172 { |
4182 if ( a1 == 94 ) | 4173 if ( a1 == 94 ) |
4183 { | 4174 { |
4184 pDialogueWindow->eWindowType = WINDOW_MainMenu; | 4175 pDialogueWindow->eWindowType = WINDOW_MainMenu; |
4185 sub_4BCA33(); | 4176 UI_CreateEndConversationButton(); |
4186 sub_4B3AD4(dword_F8B198); | 4177 sub_4B3AD4(dword_F8B198); |
4187 } | 4178 } |
4188 } | 4179 } |
4189 } | 4180 } |
4190 return; | 4181 return; |
4342 } | 4333 } |
4343 if ( v0 != 94 && v0 != 96 && v0 != 101 ) | 4334 if ( v0 != 94 && v0 != 96 && v0 != 101 ) |
4344 { | 4335 { |
4345 if ( v0 == 3 || v0 == 5 || v0 == 4 ) | 4336 if ( v0 == 3 || v0 == 5 || v0 == 4 ) |
4346 { | 4337 { |
4347 sub_4BCA33(); | 4338 UI_CreateEndConversationButton(); |
4348 dword_F8B19C = 94; | 4339 dword_F8B19C = 94; |
4349 sub_4B3AD4(dword_F8B198); | 4340 sub_4B3AD4(dword_F8B198); |
4350 } | 4341 } |
4351 else | 4342 else |
4352 { | 4343 { |
4357 dword_F8B19C = 1; | 4348 dword_F8B19C = 1; |
4358 sub_4B3B42(dword_F8B198); | 4349 sub_4B3B42(dword_F8B198); |
4359 return 1; | 4350 return 1; |
4360 } | 4351 } |
4361 pVideoPlayer->_4BF5B2(); | 4352 pVideoPlayer->_4BF5B2(); |
4362 sub_4BCA33(); | 4353 UI_CreateEndConversationButton(); |
4363 dword_F8B19C = 101; | 4354 dword_F8B19C = 101; |
4364 sub_4B3A72(dword_F8B198); | 4355 sub_4B3A72(dword_F8B198); |
4365 } | 4356 } |
4366 return 1; | 4357 return 1; |
4367 } | 4358 } |
4368 pVideoPlayer->_4BF5B2(); | 4359 pVideoPlayer->_4BF5B2(); |
4369 sub_4BCA33(); | 4360 UI_CreateEndConversationButton(); |
4370 goto LABEL_28; | 4361 goto LABEL_28; |
4371 } | 4362 } |
4372 array_5913D8[6] = 0; | 4363 array_5913D8[6] = 0; |
4373 pDialogueWindow->Release(); | 4364 pDialogueWindow->Release(); |
4374 dword_F8B19C = 0; | 4365 dword_F8B19C = 0; |