comparison mm7_5.cpp @ 14:b47e9c80e741

On UI
author Nomad
date Sat, 13 Oct 2012 17:09:02 +0200
parents 4acbadf78023
children 3fa5d0522f92
comparison
equal deleted inserted replaced
4:4acbadf78023 14:b47e9c80e741
3453 { 3453 {
3454 GUIWindow::Create(495, 337, 0, 0, WINDOW_5A, (int)pMainMenu_BtnExit, 0); 3454 GUIWindow::Create(495, 337, 0, 0, WINDOW_5A, (int)pMainMenu_BtnExit, 0);
3455 SetCurrentMenuID(MENU_FINISHED); 3455 SetCurrentMenuID(MENU_FINISHED);
3456 } 3456 }
3457 continue; 3457 continue;
3458
3459 case UIMSG_LoadGame:
3460 {
3461 if (!pSavegameUsedSlots[uLoadGameUI_SelectedSlot])
3462 continue;
3463 LABEL_99:
3464 v40 = 9;
3465 goto LABEL_89;
3466 }
3467 continue;
3458 } 3468 }
3459 3469
3460 3470
3461 switch (v45) 3471 switch (v45)
3462 { 3472 {
3620 v7 = pGUIWindow_CurrentMenu; 3630 v7 = pGUIWindow_CurrentMenu;
3621 v43 = 0; 3631 v43 = 0;
3622 v39 = (int)ptr_69BD58; 3632 v39 = (int)ptr_69BD58;
3623 v8 = pGUIWindow_CurrentMenu->uFrameY + 323; 3633 v8 = pGUIWindow_CurrentMenu->uFrameY + 323;
3624 goto LABEL_105; 3634 goto LABEL_105;
3625 }
3626 if ( v45 == UIMSG_LoadGame )
3627 {
3628 if ( !pSavegameUsedSlots[uLoadGameUI_SelectedSlot] )
3629 continue;
3630 LABEL_99:
3631 v40 = 9;
3632 goto LABEL_89;
3633 } 3635 }
3634 if ( v45 == 107 ) 3636 if ( v45 == 107 )
3635 { 3637 {
3636 if ( uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions ) 3638 if ( uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions )
3637 { 3639 {
14923 auto v20 = (GUIButton *)v0->ptr_1C; 14925 auto v20 = (GUIButton *)v0->ptr_1C;
14924 pRenderer->DrawTextureIndexed(v0->uFrameX, v0->uFrameY, v20->pTextures[0]); 14926 pRenderer->DrawTextureIndexed(v0->uFrameX, v0->uFrameY, v20->pTextures[0]);
14925 v21 = v0->str_48; 14927 v21 = v0->str_48;
14926 viewparams->bRedrawGameUI = 1; 14928 viewparams->bRedrawGameUI = 1;
14927 if ( v21 && v21 != (char *)1 ) 14929 if ( v21 && v21 != (char *)1 )
14928 ((GUIButton *)v20)->DrawLabel(v21, pFontCreate, 0, 0); 14930 v20->DrawLabel(v21, pFontCreate, 0, 0);
14929 v0->Release(); 14931 v0->Release();
14930 if (uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions == 11) 14932 if (uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions == 11)
14931 pMessageQueue_50CBD0->SendMessage(UIMSG_SaveGame, 0, 0); 14933 pMessageQueue_50CBD0->SendMessage(UIMSG_SaveGame, 0, 0);
14932 else 14934 else
14933 pMessageQueue_50CBD0->SendMessage(UIMSG_LoadGame, 0, 0); 14935 pMessageQueue_50CBD0->SendMessage(UIMSG_LoadGame, 0, 0);