Mercurial > mm7
comparison mm7_5.cpp @ 362:38bfbee60146
Menu options
author | Ritor1 |
---|---|
date | Fri, 22 Feb 2013 01:28:48 +0600 |
parents | 57d81602e72c |
children | 3abebb74fd09 |
comparison
equal
deleted
inserted
replaced
361:b803545c1b96 | 362:38bfbee60146 |
---|---|
590 if ( pMessageQueue_50CBD0->uNumMessages ) | 590 if ( pMessageQueue_50CBD0->uNumMessages ) |
591 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 591 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
592 pGUIWindow_CurrentMenu->Release(); | 592 pGUIWindow_CurrentMenu->Release(); |
593 viewparams->field_48 = v0; | 593 viewparams->field_48 = v0; |
594 pCurrentScreen = SCREEN_OPTIONS; | 594 pCurrentScreen = SCREEN_OPTIONS; |
595 uTextureID_507C60 = pIcons_LOD->LoadTexture("ControlBG", TEXTURE_16BIT_PALETTE); | 595 uTextureID_ControlBG = pIcons_LOD->LoadTexture("ControlBG", TEXTURE_16BIT_PALETTE); |
596 uTextureID_507C6C = pIcons_LOD->LoadTexture("con_16x", TEXTURE_16BIT_PALETTE); | 596 uTextureID_Con_Smoo[2] = pIcons_LOD->LoadTexture("con_16x", TEXTURE_16BIT_PALETTE); |
597 uTextureID_507C68 = pIcons_LOD->LoadTexture("con_32x", TEXTURE_16BIT_PALETTE); | 597 uTextureID_Con_Smoo[1] = pIcons_LOD->LoadTexture("con_32x", TEXTURE_16BIT_PALETTE); |
598 uTextureID_507C70 = pIcons_LOD->LoadTexture("con_ArrL", TEXTURE_16BIT_PALETTE); | 598 uTextureID_Con_ArrL = pIcons_LOD->LoadTexture("con_ArrL", TEXTURE_16BIT_PALETTE); |
599 uTextureID_507C74 = pIcons_LOD->LoadTexture("con_ArrR", TEXTURE_16BIT_PALETTE); | 599 uTextureID_Con_ArrR = pIcons_LOD->LoadTexture("con_ArrR", TEXTURE_16BIT_PALETTE); |
600 uTextureID_507C64[0] = pIcons_LOD->LoadTexture("con_Smoo", TEXTURE_16BIT_PALETTE); | 600 uTextureID_Con_Smoo[0] = pIcons_LOD->LoadTexture("con_Smoo", TEXTURE_16BIT_PALETTE); |
601 pTextureIDs_SoundLevels[9] = pIcons_LOD->LoadTexture("convol00", TEXTURE_16BIT_PALETTE); | 601 pTextureIDs_SoundLevels[9] = pIcons_LOD->LoadTexture("convol00", TEXTURE_16BIT_PALETTE); |
602 pTextureIDs_SoundLevels[0] = pIcons_LOD->LoadTexture("convol10", TEXTURE_16BIT_PALETTE); | 602 pTextureIDs_SoundLevels[0] = pIcons_LOD->LoadTexture("convol10", TEXTURE_16BIT_PALETTE); |
603 pTextureIDs_SoundLevels[1] = pIcons_LOD->LoadTexture("convol20", TEXTURE_16BIT_PALETTE); | 603 pTextureIDs_SoundLevels[1] = pIcons_LOD->LoadTexture("convol20", TEXTURE_16BIT_PALETTE); |
604 pTextureIDs_SoundLevels[2] = pIcons_LOD->LoadTexture("convol30", TEXTURE_16BIT_PALETTE); | 604 pTextureIDs_SoundLevels[2] = pIcons_LOD->LoadTexture("convol30", TEXTURE_16BIT_PALETTE); |
605 pTextureIDs_SoundLevels[3] = pIcons_LOD->LoadTexture("convol40", TEXTURE_16BIT_PALETTE); | 605 pTextureIDs_SoundLevels[3] = pIcons_LOD->LoadTexture("convol40", TEXTURE_16BIT_PALETTE); |
606 pTextureIDs_SoundLevels[4] = pIcons_LOD->LoadTexture("convol50", TEXTURE_16BIT_PALETTE); | 606 pTextureIDs_SoundLevels[4] = pIcons_LOD->LoadTexture("convol50", TEXTURE_16BIT_PALETTE); |
607 pTextureIDs_SoundLevels[5] = pIcons_LOD->LoadTexture("convol60", TEXTURE_16BIT_PALETTE); | 607 pTextureIDs_SoundLevels[5] = pIcons_LOD->LoadTexture("convol60", TEXTURE_16BIT_PALETTE); |
608 pTextureIDs_SoundLevels[6] = pIcons_LOD->LoadTexture("convol70", TEXTURE_16BIT_PALETTE); | 608 pTextureIDs_SoundLevels[6] = pIcons_LOD->LoadTexture("convol70", TEXTURE_16BIT_PALETTE); |
609 pTextureIDs_SoundLevels[7] = pIcons_LOD->LoadTexture("convol80", TEXTURE_16BIT_PALETTE); | 609 pTextureIDs_SoundLevels[7] = pIcons_LOD->LoadTexture("convol80", TEXTURE_16BIT_PALETTE); |
610 pTextureIDs_SoundLevels[8] = pIcons_LOD->LoadTexture("convol90", TEXTURE_16BIT_PALETTE); | 610 pTextureIDs_SoundLevels[8] = pIcons_LOD->LoadTexture("convol90", TEXTURE_16BIT_PALETTE); |
611 uTextureID_507C84 = pIcons_LOD->LoadTexture("option04", TEXTURE_16BIT_PALETTE); | 611 uTextureID_Option04 = pIcons_LOD->LoadTexture("option04", TEXTURE_16BIT_PALETTE); |
612 uTextureID_507CB0 = pIcons_LOD->LoadTexture("option03", TEXTURE_16BIT_PALETTE); | 612 uTextureID_Option03 = pIcons_LOD->LoadTexture("option03", TEXTURE_16BIT_PALETTE); |
613 uTextureID_507CB8 = pIcons_LOD->LoadTexture("option02", TEXTURE_16BIT_PALETTE); | 613 uTextureID_Option02 = pIcons_LOD->LoadTexture("option02", TEXTURE_16BIT_PALETTE); |
614 uTextureID_507CB4 = pIcons_LOD->LoadTexture("option01", TEXTURE_16BIT_PALETTE); | 614 uTextureID_Option01 = pIcons_LOD->LoadTexture("option01", TEXTURE_16BIT_PALETTE); |
615 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_Options, 0, 0); | 615 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_Options, 0, 0); |
616 pGUIWindow_CurrentMenu->CreateButton(0x16u, 0x10Eu, | 616 pGUIWindow_CurrentMenu->CreateButton(0x16u, 0x10Eu, |
617 (uTextureID_507C6C != -1 ? pIcons_LOD->pTextures[uTextureID_507C6C].uTextureWidth : 24), | 617 (uTextureID_Con_Smoo[2] != -1 ? pIcons_LOD->pTextures[uTextureID_Con_Smoo[2]].uTextureWidth : 24), |
618 (uTextureID_507C6C != -1 ? pIcons_LOD->pTextures[uTextureID_507C6C].uTextureHeight : 26), | 618 (uTextureID_Con_Smoo[2] != -1 ? pIcons_LOD->pTextures[uTextureID_Con_Smoo[2]].uTextureHeight : 26), |
619 v0, 0, 0xB8u, 0x80u, 0, v1, 0); | 619 v0, 0, 0xB8u, 0x80u, 0, v1, 0); |
620 pGUIWindow_CurrentMenu->CreateButton(0x5Du, 0x10Eu, | 620 pGUIWindow_CurrentMenu->CreateButton(0x5Du, 0x10Eu, |
621 (uTextureID_507C68 != -1 ? pIcons_LOD->pTextures[uTextureID_507C68].uTextureWidth : 24), | 621 (uTextureID_Con_Smoo[1] != -1 ? pIcons_LOD->pTextures[uTextureID_Con_Smoo[1]].uTextureWidth : 24), |
622 (uTextureID_507C68 != -1 ? pIcons_LOD->pTextures[uTextureID_507C68].uTextureHeight : 26), | 622 (uTextureID_Con_Smoo[1] != -1 ? pIcons_LOD->pTextures[uTextureID_Con_Smoo[1]].uTextureHeight : 26), |
623 v0, 0, 0xB8u, 0x40u, 0, v1, 0); | 623 v0, 0, 0xB8u, 0x40u, 0, v1, 0); |
624 pGUIWindow_CurrentMenu->CreateButton(0xA4u, 0x10Eu, | 624 pGUIWindow_CurrentMenu->CreateButton(0xA4u, 0x10Eu, |
625 (uTextureID_507C64[0] != -1 ? pIcons_LOD->pTextures[uTextureID_507C64[0]].uTextureWidth : 24), | 625 (uTextureID_Con_Smoo[0] != -1 ? pIcons_LOD->pTextures[uTextureID_Con_Smoo[0]].uTextureWidth : 24), |
626 (uTextureID_507C64[0] != -1 ? pIcons_LOD->pTextures[uTextureID_507C64[0]].uTextureHeight : 26), | 626 (uTextureID_Con_Smoo[0] != -1 ? pIcons_LOD->pTextures[uTextureID_Con_Smoo[0]].uTextureHeight : 26), |
627 v0, 0, 0xB8u, 0, 0, v1, 0); | 627 v0, 0, 0xB8u, 0, 0, v1, 0); |
628 pGUIWindow_CurrentMenu->CreateButton(0x14u, 0x12Fu, | 628 pGUIWindow_CurrentMenu->CreateButton(0x14u, 0x12Fu, |
629 (uTextureID_507CB4 != -1 ? pIcons_LOD->pTextures[uTextureID_507CB4].uTextureWidth : 24), | 629 (uTextureID_Option01 != -1 ? pIcons_LOD->pTextures[uTextureID_Option01].uTextureWidth : 24), |
630 (uTextureID_507CB4 != -1 ? pIcons_LOD->pTextures[uTextureID_507CB4].uTextureHeight : 26), | 630 (uTextureID_Option01 != -1 ? pIcons_LOD->pTextures[uTextureID_Option01].uTextureHeight : 26), |
631 v0, 0, 0xB9u, 0, 0, v1, 0); | 631 v0, 0, 0xB9u, 0, 0, v1, 0); |
632 pGUIWindow_CurrentMenu->CreateButton(0x80u, 0x12Fu, | 632 pGUIWindow_CurrentMenu->CreateButton(0x80u, 0x12Fu, |
633 (uTextureID_507CB8 != -1 ? pIcons_LOD->pTextures[uTextureID_507CB8].uTextureWidth : 24), | 633 (uTextureID_Option02 != -1 ? pIcons_LOD->pTextures[uTextureID_Option02].uTextureWidth : 24), |
634 (uTextureID_507CB8 != -1 ? pIcons_LOD->pTextures[uTextureID_507CB8].uTextureHeight : 26), | 634 (uTextureID_Option02 != -1 ? pIcons_LOD->pTextures[uTextureID_Option02].uTextureHeight : 26), |
635 v0, 0, 0xBBu, 0, 0, v1, 0); | 635 v0, 0, 0xBBu, 0, 0, v1, 0); |
636 pGUIWindow_CurrentMenu->CreateButton(0x14u, 0x145u, | 636 pGUIWindow_CurrentMenu->CreateButton(0x14u, 0x145u, |
637 (uTextureID_507CB0 != -1 ? pIcons_LOD->pTextures[uTextureID_507CB0].uTextureWidth : 24), | 637 (uTextureID_Option03 != -1 ? pIcons_LOD->pTextures[uTextureID_Option03].uTextureWidth : 24), |
638 (uTextureID_507CB0 != -1 ? pIcons_LOD->pTextures[uTextureID_507CB0].uTextureHeight : 26), | 638 (uTextureID_Option03 != -1 ? pIcons_LOD->pTextures[uTextureID_Option03].uTextureHeight : 26), |
639 v0, 0, 0xE1u, 0, 0, v1, 0); | 639 v0, 0, 0xE1u, 0, 0, v1, 0); |
640 pGUIWindow_CurrentMenu->CreateButton(0x80u, 0x145u, | 640 pGUIWindow_CurrentMenu->CreateButton(0x80u, 0x145u, |
641 (uTextureID_507C84 != -1 ? pIcons_LOD->pTextures[uTextureID_507C84].uTextureWidth : 24), | 641 (uTextureID_Option04 != -1 ? pIcons_LOD->pTextures[uTextureID_Option04].uTextureWidth : 24), |
642 (uTextureID_507C84 != -1 ? pIcons_LOD->pTextures[uTextureID_507C84].uTextureHeight : 26), | 642 (uTextureID_Option04 != -1 ? pIcons_LOD->pTextures[uTextureID_Option04].uTextureHeight : 26), |
643 v0, 0, 0xE2u, 0, 0, v1, 0); | 643 v0, 0, 0xE2u, 0, 0, v1, 0); |
644 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton(243, 162, 16, 16, v0, 0, 111, 4, 0, v1, | 644 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton(243, 162, 16, 16, v0, 0, 111, 4, 0, v1, |
645 &pIcons_LOD->pTextures[uTextureID_507C70], 0); | 645 &pIcons_LOD->pTextures[uTextureID_Con_ArrL], 0); |
646 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton(0x1B3u, 0xA2u, 0x10u, 0x10u, v0, 0, 0x6Fu, 5, 0, v1, | 646 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton(0x1B3u, 0xA2u, 0x10u, 0x10u, v0, 0, 0x6Fu, 5, 0, v1, |
647 &pIcons_LOD->pTextures[uTextureID_507C74], 0); | 647 &pIcons_LOD->pTextures[uTextureID_Con_ArrR], 0); |
648 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xA2u, 0xACu, 0x11u, v0, 0, 0x6Fu, 0, 0, v1, 0); | 648 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xA2u, 0xACu, 0x11u, v0, 0, 0x6Fu, 0, 0, v1, 0); |
649 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton(0xF3u, 0xD8u, 0x10u, 0x10u, v0, 0, 0x70u, 4, 0, v1, | 649 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton(0xF3u, 0xD8u, 0x10u, 0x10u, v0, 0, 0x70u, 4, 0, v1, |
650 &pIcons_LOD->pTextures[uTextureID_507C70], 0); | 650 &pIcons_LOD->pTextures[uTextureID_Con_ArrL], 0); |
651 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton(0x1B3u, 0xD8u, 0x10u, 0x10u, v0, 0, 0x70u, 5, 0, v1, | 651 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton(0x1B3u, 0xD8u, 0x10u, 0x10u, v0, 0, 0x70u, 5, 0, v1, |
652 &pIcons_LOD->pTextures[uTextureID_507C74], 0); | 652 &pIcons_LOD->pTextures[uTextureID_Con_ArrR], 0); |
653 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xD8u, 0xACu, 0x11u, v0, 0, 0x70u, 0, 0, v1, 0); | 653 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xD8u, 0xACu, 0x11u, v0, 0, 0x70u, 0, 0, v1, 0); |
654 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton(0xF3u, 0x10Eu, 0x10u, 0x10u, v0, 0, 0xBAu, 4, 0, v1, | 654 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton(0xF3u, 0x10Eu, 0x10u, 0x10u, v0, 0, 0xBAu, 4, 0, v1, |
655 &pIcons_LOD->pTextures[uTextureID_507C70], 0); | 655 &pIcons_LOD->pTextures[uTextureID_Con_ArrL], 0); |
656 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton(0x1B3u, 0x10Eu, 0x10u, 0x10u, v0, 0, 0xBAu, 5u, 0, v1, | 656 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton(0x1B3u, 0x10Eu, 0x10u, 0x10u, v0, 0, 0xBAu, 5u, 0, v1, |
657 &pIcons_LOD->pTextures[uTextureID_507C74], 0); | 657 &pIcons_LOD->pTextures[uTextureID_Con_ArrR], 0); |
658 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0x10Eu, 0xACu, 0x11u, v0, 0, 0xBAu, 0, 0, v1, 0); | 658 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0x10Eu, 0xACu, 0x11u, v0, 0, 0xBAu, 0, 0, v1, 0); |
659 pGUIWindow_CurrentMenu->CreateButton(0xF1u, 0x12Eu, 0xD6u, 0x28u, v0, 0, 0x71u, 0, 0, | 659 pGUIWindow_CurrentMenu->CreateButton(0xF1u, 0x12Eu, 0xD6u, 0x28u, v0, 0, 0x71u, 0, 0, |
660 pGlobalTXT_LocalizationStrings[619],// "Return to Game" | 660 pGlobalTXT_LocalizationStrings[619],// "Return to Game" |
661 0); | 661 0); |
662 pGUIWindow_CurrentMenu->CreateButton(0x13u, 0x8Cu, 0xD6u, 0x28u, v0, 0, 0x19Fu, 0, 0x4Bu, v1, 0); | 662 pGUIWindow_CurrentMenu->CreateButton(0x13u, 0x8Cu, 0xD6u, 0x28u, v0, 0, 0x19Fu, 0, 0x4Bu, v1, 0); |
663 pTexture = 0; | 663 pGUIWindow_CurrentMenu->CreateButton(19, 194, 214, 40, v0, 0, 421, 0, 86, v1, 0); |
664 v150 = v1; | |
665 v143 = 86; | |
666 v138 = 0; | |
667 v134 = 421; | |
668 v131 = 0; | |
669 v129 = v0; | |
670 v126 = 40; | |
671 v124 = 214; | |
672 v122 = 194; | |
673 v120 = 19; | |
674 //goto LABEL_117; | |
675 pGUIWindow_CurrentMenu->CreateButton(v120, v122, v124, v126, v129, v131, v134, v138, v143, v150, pTexture); | |
676 continue; | 664 continue; |
677 case UIMSG_OpenKeyMappingOptions: | 665 case UIMSG_OpenKeyMappingOptions: |
678 if ( pMessageQueue_50CBD0->uNumMessages ) | 666 if ( pMessageQueue_50CBD0->uNumMessages ) |
679 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 667 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
680 pGUIWindow_CurrentMenu->Release(); | 668 pGUIWindow_CurrentMenu->Release(); |
681 viewparams->field_48 = 1; | 669 viewparams->field_48 = 1; |
682 pCurrentScreen = SCREEN_KEYBOARD_OPTIONS; | 670 pCurrentScreen = SCREEN_KEYBOARD_OPTIONS; |
683 uTextureID_507BF4 = pIcons_LOD->LoadTexture("optkb", TEXTURE_16BIT_PALETTE); | 671 uTextureID_Optkb = pIcons_LOD->LoadTexture("optkb", TEXTURE_16BIT_PALETTE); |
684 uTextureID_507BF8 = pIcons_LOD->LoadTexture("optkb_h", TEXTURE_16BIT_PALETTE); | 672 uTextureID_Optkb_h = pIcons_LOD->LoadTexture("optkb_h", TEXTURE_16BIT_PALETTE); |
685 uTextureID_507BFC = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); | 673 uTextureID_KeyResume1 = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); |
686 uTextureID_507C00 = pIcons_LOD->LoadTexture("optkb_1", TEXTURE_16BIT_PALETTE); | 674 uTextureID_Optkb_1 = pIcons_LOD->LoadTexture("optkb_1", TEXTURE_16BIT_PALETTE); |
687 uTextureID_507C04 = pIcons_LOD->LoadTexture("optkb_2", TEXTURE_16BIT_PALETTE); | 675 uTextureID_Optkb_2 = pIcons_LOD->LoadTexture("optkb_2", TEXTURE_16BIT_PALETTE); |
688 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_KeyMappingOptions, 0, 0); | 676 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_KeyMappingOptions, 0, 0); |
689 pGUIWindow_CurrentMenu->CreateButton(0xF1u, 0x12Eu, 0xD6u, 0x28u, 1, 0, 0x71u, 0, 0, "", 0); | 677 pGUIWindow_CurrentMenu->CreateButton(0xF1u, 0x12Eu, 0xD6u, 0x28u, 1, 0, 0x71u, 0, 0, "", 0); |
690 pGUIWindow_CurrentMenu->CreateButton(19u, 0x12Eu, 0x6Cu, 0x14u, 1, 0, 0x1A0u, 0, 0, "", 0); | 678 pGUIWindow_CurrentMenu->CreateButton(19u, 0x12Eu, 0x6Cu, 0x14u, 1, 0, 0x1A0u, 0, 0, "", 0); |
691 pGUIWindow_CurrentMenu->CreateButton(127u, 0x12Eu, 0x6Cu, 0x14u, 1, 0, 0x1A1u, 0, 0, "", 0); | 679 pGUIWindow_CurrentMenu->CreateButton(127u, 0x12Eu, 0x6Cu, 0x14u, 1, 0, 0x1A1u, 0, 0, "", 0); |
692 pGUIWindow_CurrentMenu->CreateButton(127u, 0x144u, 0x6Cu, 0x14u, 1, 0, 0x1A2u, 0, 0, "", 0); | 680 pGUIWindow_CurrentMenu->CreateButton(127u, 0x144u, 0x6Cu, 0x14u, 1, 0, 0x1A2u, 0, 0, "", 0); |
704 pGUIWindow_CurrentMenu->CreateButton(350u, 205u, 70u, 0x13u, 1, 0, 0x1A3u, 0xAu, 0, "", 0); | 692 pGUIWindow_CurrentMenu->CreateButton(350u, 205u, 70u, 0x13u, 1, 0, 0x1A3u, 0xAu, 0, "", 0); |
705 pGUIWindow_CurrentMenu->CreateButton(350u, 224u, 70u, 0x13u, 1, 0, 0x1A3u, 0xBu, 0, "", 0); | 693 pGUIWindow_CurrentMenu->CreateButton(350u, 224u, 70u, 0x13u, 1, 0, 0x1A3u, 0xBu, 0, "", 0); |
706 pGUIWindow_CurrentMenu->CreateButton(350u, 243u, 70u, 0x13u, 1, 0, 0x1A3u, 0xCu, 0, "", 0); | 694 pGUIWindow_CurrentMenu->CreateButton(350u, 243u, 70u, 0x13u, 1, 0, 0x1A3u, 0xCu, 0, "", 0); |
707 pGUIWindow_CurrentMenu->CreateButton(350u, 262u, 70u, 0x13u, 1, 0, 0x1A3u, 0xDu, 0, "", 0); | 695 pGUIWindow_CurrentMenu->CreateButton(350u, 262u, 70u, 0x13u, 1, 0, 0x1A3u, 0xDu, 0, "", 0); |
708 dword_506E68 = -1; | 696 dword_506E68 = -1; |
709 dword_506F08 = 1; | 697 KeyboardPageNum = 1; |
710 memset(word_506E6C, 0, 0x1Cu); | 698 memset(word_506E6C, 0, 0x1Cu); |
711 word_506E6C[14] = 0; | 699 word_506E6C[14] = 0; |
712 memcpy(pPrevVirtualCidesMapping, pKeyActionMap->pVirtualKeyCodesMapping, 0x78u); | 700 memcpy(pPrevVirtualCidesMapping, pKeyActionMap->pVirtualKeyCodesMapping, 0x78u); |
713 //goto LABEL_90; | 701 //goto LABEL_90; |
714 v1 = ""; | 702 v1 = ""; |
715 v0 = 1; | 703 v0 = 1; |
716 continue; | 704 continue; |
717 //default: | 705 //default: |
718 //continue; | 706 //continue; |
719 case UIMSG_1A3: | 707 case UIMSG_ChangeKeyButton: |
720 if ( dword_506E68 != -1 ) | 708 if ( dword_506E68 != -1 ) |
721 goto LABEL_623; | 709 { |
710 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | |
711 continue; | |
712 } | |
722 v14 = uMessageParam; | 713 v14 = uMessageParam; |
723 if ( dword_506F08 != v0 ) | 714 if ( KeyboardPageNum != v0 ) |
724 v14 = uMessageParam + 14; | 715 v14 = uMessageParam + 14; |
725 dword_506E68 = v14; | 716 dword_506E68 = v14; |
726 pKeyActionMap->EnterText(0, v0, pGUIWindow_CurrentMenu); | 717 pKeyActionMap->EnterText(0, v0, pGUIWindow_CurrentMenu); |
727 continue; | 718 continue; |
728 case UIMSG_ResetKeyMapping: | 719 case UIMSG_ResetKeyMapping: |
760 v135 = -1; | 751 v135 = -1; |
761 v132 = 0; | 752 v132 = 0; |
762 v130 = 0; | 753 v130 = 0; |
763 v127 = 219; | 754 v127 = 219; |
764 goto _play_sound_and_continue; | 755 goto _play_sound_and_continue; |
765 case UIMSG_1A0: | 756 case UIMSG_SelectKeyPage1: |
766 dword_506F08 = v0; | 757 KeyboardPageNum = v0; |
767 continue; | 758 continue; |
768 case UIMSG_1A1: | 759 case UIMSG_SelectKeyPage2: |
769 dword_506F08 = 2; | 760 KeyboardPageNum = 2; |
770 continue; | 761 continue; |
771 case UIMSG_OpenVideoOptions: | 762 case UIMSG_OpenVideoOptions: |
772 if ( pMessageQueue_50CBD0->uNumMessages ) | 763 if ( pMessageQueue_50CBD0->uNumMessages ) |
773 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 764 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
774 pGUIWindow_CurrentMenu->Release(); | 765 pGUIWindow_CurrentMenu->Release(); |
1346 pCurrentScreen = SCREEN_GAME; | 1337 pCurrentScreen = SCREEN_GAME; |
1347 viewparams->bRedrawGameUI = v0; | 1338 viewparams->bRedrawGameUI = v0; |
1348 pEventTimer->Resume(); | 1339 pEventTimer->Resume(); |
1349 continue; | 1340 continue; |
1350 case SCREEN_OPTIONS: | 1341 case SCREEN_OPTIONS: |
1351 thisa = (signed int)&uTextureID_507C60; | 1342 thisa = (signed int)&uTextureID_ControlBG; |
1352 do | 1343 do |
1353 { | 1344 { |
1354 if ( *(int *)thisa ) | 1345 if ( *(int *)thisa ) |
1355 pIcons_LOD->pTextures[*(int *)thisa].Release(); | 1346 pIcons_LOD->pTextures[*(int *)thisa].Release(); |
1356 thisa += 4; | 1347 thisa += 4; |
1357 } | 1348 } |
1358 while ( thisa < (signed int)&dword_507CBC ); | 1349 while ( thisa < (signed int)&dword_507CBC ); |
1359 memset(&uTextureID_507C60, 0, 0x5Cu); | 1350 memset(&uTextureID_ControlBG, 0, 0x5Cu); |
1360 pIcons_LOD->_40F9C5(); | 1351 pIcons_LOD->_40F9C5(); |
1361 WriteWindowsRegistryInt("soundflag", (char)uSoundVolumeMultiplier); | 1352 WriteWindowsRegistryInt("soundflag", (char)uSoundVolumeMultiplier); |
1362 WriteWindowsRegistryInt("musicflag", (char)uMusicVolimeMultiplier); | 1353 WriteWindowsRegistryInt("musicflag", (char)uMusicVolimeMultiplier); |
1363 WriteWindowsRegistryInt("CharVoices", (char)uVoicesVolumeMultiplier); | 1354 WriteWindowsRegistryInt("CharVoices", (char)uVoicesVolumeMultiplier); |
1364 WriteWindowsRegistryInt("WalkSound", bWalkSound); | 1355 WriteWindowsRegistryInt("WalkSound", bWalkSound); |
1435 while ( *((char *)word_506E6C + v32) != 1 ) | 1426 while ( *((char *)word_506E6C + v32) != 1 ) |
1436 { | 1427 { |
1437 ++v32; | 1428 ++v32; |
1438 if ( v32 >= 28 ) | 1429 if ( v32 >= 28 ) |
1439 { | 1430 { |
1440 thisb = (signed int)&uTextureID_507BF4; | 1431 thisb = (signed int)&uTextureID_Optkb; |
1441 do | 1432 do |
1442 { | 1433 { |
1443 if ( *(int *)thisb ) | 1434 if ( *(int *)thisb ) |
1444 pIcons_LOD->pTextures[*(int *)thisb].Release(); | 1435 pIcons_LOD->pTextures[*(int *)thisb].Release(); |
1445 thisb += 4; | 1436 thisb += 4; |
1446 } | 1437 } |
1447 while ( thisb < (signed int)&dword_507C08 ); | 1438 while ( thisb < (signed int)&dword_507C08 ); |
1448 memset(&uTextureID_507BF4, 0, 0x14u); | 1439 memset(&uTextureID_Optkb, 0, 0x14u); |
1449 pIcons_LOD->_40F9C5(); | 1440 pIcons_LOD->_40F9C5(); |
1450 uAction = 0; | 1441 uAction = 0; |
1451 do | 1442 do |
1452 { | 1443 { |
1453 v33 = pKeyActionMap->GetActionVKey((enum InputAction)uAction); | 1444 v33 = pKeyActionMap->GetActionVKey((enum InputAction)uAction); |
1477 //goto LABEL_291; | 1468 //goto LABEL_291; |
1478 stru_506E40.Release(); | 1469 stru_506E40.Release(); |
1479 break; | 1470 break; |
1480 } | 1471 } |
1481 } | 1472 } |
1482 goto LABEL_623; | 1473 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); |
1474 continue; | |
1483 case SCREEN_REST: | 1475 case SCREEN_REST: |
1484 if ( dword_506F14 ) | 1476 if ( dword_506F14 ) |
1485 { | 1477 { |
1486 Rest(_506F18_num_hours_to_sleep); | 1478 Rest(_506F18_num_hours_to_sleep); |
1487 pParty->pPlayers[3].pConditions[2] = 0i64; | 1479 pParty->pPlayers[3].pConditions[2] = 0i64; |
1724 ++pIcons_LOD->uTexturePacksCount; | 1716 ++pIcons_LOD->uTexturePacksCount; |
1725 pCurrentScreen = v0; | 1717 pCurrentScreen = v0; |
1726 if ( !pIcons_LOD->uNumPrevLoadedFiles ) | 1718 if ( !pIcons_LOD->uNumPrevLoadedFiles ) |
1727 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; | 1719 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; |
1728 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (enum WindowType)3, 0, 0); | 1720 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (enum WindowType)3, 0, 0); |
1729 uTextureID_507944 = pIcons_LOD->LoadTexture("options", TEXTURE_16BIT_PALETTE); | 1721 uTextureID_Options = pIcons_LOD->LoadTexture("options", TEXTURE_16BIT_PALETTE); |
1730 uTextureID_507940 = pIcons_LOD->LoadTexture("new1", TEXTURE_16BIT_PALETTE); | 1722 uTextureID_New1 = pIcons_LOD->LoadTexture("new1", TEXTURE_16BIT_PALETTE); |
1731 uTextureID_50793C = pIcons_LOD->LoadTexture("load1", TEXTURE_16BIT_PALETTE); | 1723 uTextureID_Load1 = pIcons_LOD->LoadTexture("load1", TEXTURE_16BIT_PALETTE); |
1732 uTextureID_507938 = pIcons_LOD->LoadTexture("save1", TEXTURE_16BIT_PALETTE); | 1724 uTextureID_Save1 = pIcons_LOD->LoadTexture("save1", TEXTURE_16BIT_PALETTE); |
1733 uTextureID_507934 = pIcons_LOD->LoadTexture("controls1", TEXTURE_16BIT_PALETTE); | 1725 uTextureID_Controls1 = pIcons_LOD->LoadTexture("controls1", TEXTURE_16BIT_PALETTE); |
1734 uTextureID_507930 = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); | 1726 uTextureID_Resume1 = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); |
1735 uTextureID_50792C = pIcons_LOD->LoadTexture("quit1", TEXTURE_16BIT_PALETTE); | 1727 uTextureID_Quit1 = pIcons_LOD->LoadTexture("quit1", TEXTURE_16BIT_PALETTE); |
1736 pBtn_NewGame = pGUIWindow_CurrentMenu->CreateButton(0x13u, 0x9Bu, 0xD6u, 0x28u, v0, 0, 0x7Cu, 0, 0x4Eu, | 1728 pBtn_NewGame = pGUIWindow_CurrentMenu->CreateButton(0x13u, 0x9Bu, 0xD6u, 0x28u, v0, 0, 0x7Cu, 0, 0x4Eu, |
1737 pGlobalTXT_LocalizationStrings[614],// "New Game" | 1729 pGlobalTXT_LocalizationStrings[614],// "New Game" |
1738 (Texture *)(uTextureID_507940 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507940] : 0), 0); | 1730 (Texture *)(uTextureID_New1 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_New1] : 0), 0); |
1739 pBtn_SaveGame = pGUIWindow_CurrentMenu->CreateButton(0x13u, 0xD1u, 0xD6u, 0x28u, v0, 0, 0x7Eu, 0, 0x53u, | 1731 pBtn_SaveGame = pGUIWindow_CurrentMenu->CreateButton(0x13u, 0xD1u, 0xD6u, 0x28u, v0, 0, 0x7Eu, 0, 0x53u, |
1740 pGlobalTXT_LocalizationStrings[615],// "Save Game" | 1732 pGlobalTXT_LocalizationStrings[615],// "Save Game" |
1741 (Texture *)(uTextureID_507938 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507938] : 0), 0); | 1733 (Texture *)(uTextureID_Save1 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Save1] : 0), 0); |
1742 pBtn_LoadGame = pGUIWindow_CurrentMenu->CreateButton(19, 263, 0xD6u, 0x28u, v0, 0, 0x7Du, 0, 0x4Cu, | 1734 pBtn_LoadGame = pGUIWindow_CurrentMenu->CreateButton(19, 263, 0xD6u, 0x28u, v0, 0, 0x7Du, 0, 0x4Cu, |
1743 pGlobalTXT_LocalizationStrings[616],// "Load Game" | 1735 pGlobalTXT_LocalizationStrings[616],// "Load Game" |
1744 (Texture *)(uTextureID_50793C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50793C] : 0), 0); | 1736 (Texture *)(uTextureID_Load1 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Load1] : 0), 0); |
1745 pBtn_GameControls = pGUIWindow_CurrentMenu->CreateButton(241, 155, 214, 40, v0, 0, 0x7Fu, 0, 0x43u, | 1737 pBtn_GameControls = pGUIWindow_CurrentMenu->CreateButton(241, 155, 214, 40, v0, 0, 0x7Fu, 0, 0x43u, |
1746 pGlobalTXT_LocalizationStrings[617],// ""Sound, Keyboard, Game Options:"" | 1738 pGlobalTXT_LocalizationStrings[617],// ""Sound, Keyboard, Game Options:"" |
1747 (Texture *)(uTextureID_507934 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507934] : 0), 0); | 1739 (Texture *)(uTextureID_Controls1 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Controls1] : 0), 0); |
1748 pBtn_QuitGame = pGUIWindow_CurrentMenu->CreateButton(241, 209, 214, 40, v0, 0, 0x84u, 0, 0x51u, | 1740 pBtn_QuitGame = pGUIWindow_CurrentMenu->CreateButton(241, 209, 214, 40, v0, 0, 0x84u, 0, 0x51u, |
1749 pGlobalTXT_LocalizationStrings[618],// "Quit" | 1741 pGlobalTXT_LocalizationStrings[618],// "Quit" |
1750 (Texture *)(uTextureID_50792C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50792C] : 0), 0); | 1742 (Texture *)(uTextureID_Quit1 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Quit1] : 0), 0); |
1751 pBtn_Resume = pGUIWindow_CurrentMenu->CreateButton(241, 263, 214, 40, v0, 0, 0x7Bu, 0, 0x52u, | 1743 pBtn_Resume = pGUIWindow_CurrentMenu->CreateButton(241, 263, 214, 40, v0, 0, 0x7Bu, 0, 0x52u, |
1752 pGlobalTXT_LocalizationStrings[619],// "Return to Game" | 1744 pGlobalTXT_LocalizationStrings[619],// "Return to Game" |
1753 (Texture *)(uTextureID_507930 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507930] : 0), 0); | 1745 (Texture *)(uTextureID_Resume1 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_Resume1] : 0), 0); |
1754 pGUIWindow_CurrentMenu->_41D08F(6, v0, 0, 0); | 1746 pGUIWindow_CurrentMenu->_41D08F(6, v0, 0, 0); |
1755 viewparams->field_48 = v0; | 1747 viewparams->field_48 = v0; |
1756 stru_506E40.Release(); | 1748 stru_506E40.Release(); |
1757 uNumSeconds = (unsigned int)MakeScreenshot(155, 117); | 1749 uNumSeconds = (unsigned int)MakeScreenshot(155, 117); |
1758 pRenderer->SavePCXImage("gamma.pcx", (char *)uNumSeconds, 155, 117); | 1750 pRenderer->SavePCXImage("gamma.pcx", (char *)uNumSeconds, 155, 117); |
2607 v1 = ""; | 2599 v1 = ""; |
2608 v0 = 1; | 2600 v0 = 1; |
2609 continue; | 2601 continue; |
2610 case UIMSG_19: | 2602 case UIMSG_19: |
2611 if ( bUnderwater == 1 ) | 2603 if ( bUnderwater == 1 ) |
2612 goto LABEL_682; | 2604 { |
2605 ShowStatusBarString(pGlobalTXT_LocalizationStrings[652], 2);// "You can not do that while you are underwater!" | |
2606 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | |
2607 continue; | |
2608 } | |
2613 if ( !uActiveCharacter || (pPlayer2 = pPlayers[uActiveCharacter], pPlayer2->uTimeToRecovery) ) | 2609 if ( !uActiveCharacter || (pPlayer2 = pPlayers[uActiveCharacter], pPlayer2->uTimeToRecovery) ) |
2614 //goto LABEL_90; | 2610 //goto LABEL_90; |
2615 { | 2611 { |
2616 v1 = ""; | 2612 v1 = ""; |
2617 v0 = 1; | 2613 v0 = 1; |
2618 continue; | 2614 continue; |
2619 } | 2615 } |
2620 v79 = pPlayer2->uQuickSpell; | 2616 _42777D_CastSpell_UseWand_ShootArrow(pPlayer2->uQuickSpell, uActiveCharacter - 1, 0, 0, uActiveCharacter); |
2621 v175 = uActiveCharacter; | |
2622 v159 = 0; | |
2623 v147 = 0; | |
2624 v80 = uActiveCharacter - 1; | |
2625 //goto LABEL_679; | |
2626 _42777D_CastSpell_UseWand_ShootArrow(v79, v80, v147, v159, v175); | |
2627 continue; | 2617 continue; |
2628 case UIMSG_46: | 2618 case UIMSG_46: |
2629 case UIMSG_8C: | 2619 case UIMSG_8C: |
2630 if ( pRenderer->pRenderD3D ) | 2620 if ( pRenderer->pRenderD3D ) |
2631 { | 2621 { |
2758 case UIMSG_Wait5Minutes: | 2748 case UIMSG_Wait5Minutes: |
2759 if ( dword_506F14 == 2 ) | 2749 if ( dword_506F14 == 2 ) |
2760 //goto LABEL_621; | 2750 //goto LABEL_621; |
2761 { | 2751 { |
2762 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" | 2752 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" |
2763 goto LABEL_622; | 2753 ShowStatusBarString(v96, 2); |
2754 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | |
2755 continue; | |
2764 } | 2756 } |
2765 GUIWindow::Create(pButton_RestUI_Wait5Minutes->uX, pButton_RestUI_Wait5Minutes->uY, 0, 0, (enum WindowType)90, | 2757 GUIWindow::Create(pButton_RestUI_Wait5Minutes->uX, pButton_RestUI_Wait5Minutes->uY, 0, 0, (enum WindowType)90, |
2766 (int)pButton_RestUI_Wait5Minutes, (int)pGlobalTXT_LocalizationStrings[238]);// "Wait 5 Minutes" | 2758 (int)pButton_RestUI_Wait5Minutes, (int)pGlobalTXT_LocalizationStrings[238]);// "Wait 5 Minutes" |
2767 dword_506F14 = v0; | 2759 dword_506F14 = v0; |
2768 _506F18_num_hours_to_sleep = 5; | 2760 _506F18_num_hours_to_sleep = 5; |
2770 case UIMSG_Wait1Hour: | 2762 case UIMSG_Wait1Hour: |
2771 if ( dword_506F14 == 2 ) | 2763 if ( dword_506F14 == 2 ) |
2772 //goto LABEL_621; | 2764 //goto LABEL_621; |
2773 { | 2765 { |
2774 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" | 2766 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" |
2775 goto LABEL_622; | 2767 ShowStatusBarString(v96, 2); |
2768 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | |
2769 continue; | |
2776 } | 2770 } |
2777 GUIWindow::Create(pButton_RestUI_Wait1Hour->uX, pButton_RestUI_Wait1Hour->uY, 0, 0, (enum WindowType)90, | 2771 GUIWindow::Create(pButton_RestUI_Wait1Hour->uX, pButton_RestUI_Wait1Hour->uY, 0, 0, (enum WindowType)90, |
2778 (int)pButton_RestUI_Wait1Hour, (int)pGlobalTXT_LocalizationStrings[239]);// "Wait 1 Hour" | 2772 (int)pButton_RestUI_Wait1Hour, (int)pGlobalTXT_LocalizationStrings[239]);// "Wait 1 Hour" |
2779 dword_506F14 = v0; | 2773 dword_506F14 = v0; |
2780 _506F18_num_hours_to_sleep = 60; | 2774 _506F18_num_hours_to_sleep = 60; |
2863 case UIMSG_61: | 2857 case UIMSG_61: |
2864 if ( dword_506F14 ) | 2858 if ( dword_506F14 ) |
2865 //goto LABEL_621; | 2859 //goto LABEL_621; |
2866 { | 2860 { |
2867 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" | 2861 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" |
2868 goto LABEL_622; | 2862 ShowStatusBarString(v96, 2); |
2863 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | |
2864 continue; | |
2869 } | 2865 } |
2870 if ( pParty->uNumFoodRations < uRestUI_FoodRequiredToRest ) | 2866 if ( pParty->uNumFoodRations < uRestUI_FoodRequiredToRest ) |
2871 { | 2867 { |
2872 ShowStatusBarString(pGlobalTXT_LocalizationStrings[482], 2u);// "You don't have enough food to rest" | 2868 ShowStatusBarString(pGlobalTXT_LocalizationStrings[482], 2u);// "You don't have enough food to rest" |
2873 if ( uActiveCharacter && pPlayers[uActiveCharacter]->CanAct() ) | 2869 if ( uActiveCharacter && pPlayers[uActiveCharacter]->CanAct() ) |
2943 case UIMSG_AlreadyResting: | 2939 case UIMSG_AlreadyResting: |
2944 if ( dword_506F14 == 2 ) | 2940 if ( dword_506F14 == 2 ) |
2945 { | 2941 { |
2946 //LABEL_621: | 2942 //LABEL_621: |
2947 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" | 2943 v96 = pGlobalTXT_LocalizationStrings[477];// "You are already resting!" |
2948 goto LABEL_622; | 2944 ShowStatusBarString(v96, 2); |
2945 pAudioPlayer->PlaySound((SoundID)27, 0, 0, -1, 0, 0, 0, 0); | |
2946 continue; | |
2949 } | 2947 } |
2950 GUIWindow::Create(pButton_RestUI_WaitUntilDawn->uX, pButton_RestUI_WaitUntilDawn->uY, 0, 0, (enum WindowType)90, | 2948 GUIWindow::Create(pButton_RestUI_WaitUntilDawn->uX, pButton_RestUI_WaitUntilDawn->uY, 0, 0, (enum WindowType)90, |
2951 (int)pButton_RestUI_WaitUntilDawn, (int)pGlobalTXT_LocalizationStrings[237]);// "Wait until Dawn" | 2949 (int)pButton_RestUI_WaitUntilDawn, (int)pGlobalTXT_LocalizationStrings[237]);// "Wait until Dawn" |
2952 v97 = sub_494820(pParty->uCurrentHour); | 2950 v97 = sub_494820(pParty->uCurrentHour); |
2953 dword_506F14 = v0; | 2951 dword_506F14 = v0; |
3153 case UIMSG_69: | 3151 case UIMSG_69: |
3154 if ( pTurnEngine->field_4 == 3 ) | 3152 if ( pTurnEngine->field_4 == 3 ) |
3155 continue; | 3153 continue; |
3156 if ( bUnderwater == 1 ) | 3154 if ( bUnderwater == 1 ) |
3157 { | 3155 { |
3158 LABEL_682: | 3156 ShowStatusBarString(pGlobalTXT_LocalizationStrings[652], 2);// "You can not do that while you are underwater!" |
3159 v96 = pGlobalTXT_LocalizationStrings[652];// "You can not do that while you are underwater!" | |
3160 LABEL_622: | |
3161 ShowStatusBarString(v96, 2u); | |
3162 LABEL_623: | |
3163 v165 = 0; | 3157 v165 = 0; |
3164 v151 = 0; | 3158 v151 = 0; |
3165 v144 = 0; | 3159 v144 = 0; |
3166 v139 = 0; | 3160 v139 = 0; |
3167 v135 = -1; | 3161 v135 = -1; |
14830 } | 14824 } |
14831 while ( v4 < 28 ); | 14825 while ( v4 < 28 ); |
14832 dword_506E68 = -1; | 14826 dword_506E68 = -1; |
14833 v3->field_40 = 0; | 14827 v3->field_40 = 0; |
14834 } | 14828 } |
14835 pRenderer->DrawTextureIndexed( | 14829 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_Optkb != -1 ? &pIcons_LOD->pTextures[uTextureID_Optkb] : 0)); |
14836 8u, | 14830 if ( KeyboardPageNum == 1 ) |
14837 8u, | 14831 { |
14838 (Texture *)(uTextureID_507BF4 != -1 ? &pIcons_LOD->pTextures[uTextureID_507BF4] : 0)); | 14832 pRenderer->DrawTextureIndexed(0x13, 0x12E, (Texture *)(uTextureID_Optkb_1 != -1 ? &pIcons_LOD->pTextures[uTextureID_Optkb_1] : 0)); |
14839 if ( dword_506F08 == 1 ) | |
14840 { | |
14841 pRenderer->DrawTextureIndexed( | |
14842 0x13u, | |
14843 0x12Eu, | |
14844 (Texture *)(uTextureID_507C00 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C00] : 0)); | |
14845 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 142, v0, ascii_4E2D5C, 0, 0, 0); | 14833 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 142, v0, ascii_4E2D5C, 0, 0, 0); |
14846 v6 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[0]); | 14834 v6 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[0]); |
14847 v7 = sub_414D24(0); | 14835 v7 = sub_414D24(0); |
14848 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 142, v7, v6, 0, 0, 0); | 14836 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 142, v7, v6, 0, 0, 0); |
14849 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 163, v0, ascii_4E2D50, 0, 0, 0); | 14837 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 163, v0, ascii_4E2D50, 0, 0, 0); |
14902 v62 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[13]); | 14890 v62 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[13]); |
14903 v61 = 13; | 14891 v61 = 13; |
14904 } | 14892 } |
14905 else | 14893 else |
14906 { | 14894 { |
14907 pRenderer->DrawTextureIndexed( | 14895 pRenderer->DrawTextureIndexed(0x7F, 0x12E, (Texture *)(uTextureID_Optkb_2 != -1 ? &pIcons_LOD->pTextures[uTextureID_Optkb_2] : 0)); |
14908 0x7Fu, | |
14909 0x12Eu, | |
14910 (Texture *)(uTextureID_507C04 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C04] : 0)); | |
14911 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 142, v0, ascii_4E2CDC, 0, 0, 0); | 14896 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 142, v0, ascii_4E2CDC, 0, 0, 0); |
14912 v33 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[14]); | 14897 v33 = pKeyActionMap->GetVKeyDisplayName(pPrevVirtualCidesMapping[14]); |
14913 v34 = sub_414D24(14); | 14898 v34 = sub_414D24(14); |
14914 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 142, v34, v33, 0, 0, 0); | 14899 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 127, 142, v34, v33, 0, 0, 0); |
14915 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 163, v0, ascii_4E2CD4, 0, 0, 0); | 14900 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 23, 163, v0, ascii_4E2CD4, 0, 0, 0); |
15064 } | 15049 } |
15065 | 15050 |
15066 | 15051 |
15067 | 15052 |
15068 //----- (00414F82) -------------------------------------------------------- | 15053 //----- (00414F82) -------------------------------------------------------- |
15069 void __cdecl sub_414F82_DrawGameOptions() | 15054 void __cdecl DrawGameOptions() |
15070 { | 15055 { |
15071 signed int v0; // eax@1 | 15056 signed int v0; // eax@1 |
15072 | 15057 |
15073 pRenderer->DrawTextureIndexed( | 15058 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_Options != -1 ? &pIcons_LOD->pTextures[uTextureID_Options] : 0)); |
15074 8u, | 15059 pRenderer->DrawTextureIndexed(8, 132, (Texture *)(uTextureID_ControlBG != -1 ? &pIcons_LOD->pTextures[uTextureID_ControlBG] : 0)); |
15075 8u, | |
15076 (Texture *)(uTextureID_507944 != -1 ? &pIcons_LOD->pTextures[uTextureID_507944] : 0)); | |
15077 pRenderer->DrawTextureIndexed( | |
15078 8u, | |
15079 0x84u, | |
15080 (Texture *)(uTextureID_507C60 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C60] : 0)); | |
15081 v0 = 0; | 15060 v0 = 0; |
15082 if ( uTurnSpeed == 128 ) | 15061 if ( uTurnSpeed == 128 ) |
15083 { | 15062 { |
15084 v0 = 2; | 15063 v0 = 2; |
15085 } | 15064 } |
15086 else | 15065 else |
15087 { | 15066 { |
15088 if ( uTurnSpeed == 64 ) | 15067 if ( uTurnSpeed == 64 ) |
15089 v0 = 1; | 15068 v0 = 1; |
15090 } | 15069 } |
15091 pRenderer->DrawTextureIndexed( | 15070 pRenderer->DrawTextureIndexed(BtnTurnCoord[v0], 270, (Texture *)(uTextureID_Con_Smoo[v0] != -1 ? &pIcons_LOD->pTextures[uTextureID_Con_Smoo[v0]] : 0)); |
15092 dword_4E2910[v0], | |
15093 0x10Eu, | |
15094 (Texture *)(uTextureID_507C64[v0] != -1 ? &pIcons_LOD->pTextures[uTextureID_507C64[v0]] : 0)); | |
15095 if ( bWalkSound ) | 15071 if ( bWalkSound ) |
15096 pRenderer->DrawTextureIndexed( | 15072 pRenderer->DrawTextureIndexed(20, 303, (Texture *)(uTextureID_Option01 != -1 ? &pIcons_LOD->pTextures[uTextureID_Option01] : 0)); |
15097 0x14u, | |
15098 0x12Fu, | |
15099 (Texture *)(uTextureID_507CB4 != -1 ? &pIcons_LOD->pTextures[uTextureID_507CB4] : 0)); | |
15100 if ( bShowDamage ) | 15073 if ( bShowDamage ) |
15101 pRenderer->DrawTextureIndexed( | 15074 pRenderer->DrawTextureIndexed(128, 303, (Texture *)(uTextureID_Option02 != -1 ? &pIcons_LOD->pTextures[uTextureID_Option02] : 0)); |
15102 0x80u, | |
15103 0x12Fu, | |
15104 (Texture *)(uTextureID_507CB8 != -1 ? &pIcons_LOD->pTextures[uTextureID_507CB8] : 0)); | |
15105 if ( bFlipOnExit ) | 15075 if ( bFlipOnExit ) |
15106 pRenderer->DrawTextureIndexed( | 15076 pRenderer->DrawTextureIndexed(128, 325, (Texture *)(uTextureID_Option04 != -1 ? &pIcons_LOD->pTextures[uTextureID_Option04] : 0)); |
15107 0x80u, | |
15108 0x145u, | |
15109 (Texture *)(uTextureID_507C84 != -1 ? &pIcons_LOD->pTextures[uTextureID_507C84] : 0)); | |
15110 if ( bAlwaysRun ) | 15077 if ( bAlwaysRun ) |
15111 pRenderer->DrawTextureIndexed( | 15078 pRenderer->DrawTextureIndexed(20, 325, (Texture *)(uTextureID_Option03 != -1 ? &pIcons_LOD->pTextures[uTextureID_Option03] : 0)); |
15112 0x14u, | 15079 pRenderer->DrawTextureIndexed(17 * (char)uSoundVolumeMultiplier + 265, 162, |
15113 0x145u, | |
15114 (Texture *)(uTextureID_507CB0 != -1 ? &pIcons_LOD->pTextures[uTextureID_507CB0] : 0)); | |
15115 pRenderer->DrawTextureIndexed( | |
15116 17 * (char)uSoundVolumeMultiplier + 265, | |
15117 0xA2u, | |
15118 (Texture *)(pTextureIDs_SoundLevels[(char)uSoundVolumeMultiplier] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_SoundLevels[(char)uSoundVolumeMultiplier]] : 0)); | 15080 (Texture *)(pTextureIDs_SoundLevels[(char)uSoundVolumeMultiplier] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_SoundLevels[(char)uSoundVolumeMultiplier]] : 0)); |
15119 pRenderer->DrawTextureIndexed( | 15081 pRenderer->DrawTextureIndexed(17 * (char)uMusicVolimeMultiplier + 265, 216, |
15120 17 * (char)uMusicVolimeMultiplier + 265, | |
15121 0xD8u, | |
15122 (Texture *)(pTextureIDs_SoundLevels[(char)uMusicVolimeMultiplier] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_SoundLevels[(char)uMusicVolimeMultiplier]] : 0)); | 15082 (Texture *)(pTextureIDs_SoundLevels[(char)uMusicVolimeMultiplier] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_SoundLevels[(char)uMusicVolimeMultiplier]] : 0)); |
15123 pRenderer->DrawTextureIndexed( | 15083 pRenderer->DrawTextureIndexed(17 * (char)uVoicesVolumeMultiplier + 265, 270, |
15124 17 * (char)uVoicesVolumeMultiplier + 265, | |
15125 0x10Eu, | |
15126 (Texture *)(pTextureIDs_SoundLevels[(char)uVoicesVolumeMultiplier] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_SoundLevels[(char)uVoicesVolumeMultiplier]] : 0)); | 15084 (Texture *)(pTextureIDs_SoundLevels[(char)uVoicesVolumeMultiplier] != -1 ? &pIcons_LOD->pTextures[pTextureIDs_SoundLevels[(char)uVoicesVolumeMultiplier]] : 0)); |
15127 } | 15085 } |
15128 | 15086 |
15129 | 15087 |
15130 | 15088 |
15857 if ( pWindowType == WINDOW_Book ) | 15815 if ( pWindowType == WINDOW_Book ) |
15858 SellectDrawBook((unsigned int)pWindow->ptr_1C); | 15816 SellectDrawBook((unsigned int)pWindow->ptr_1C); |
15859 } | 15817 } |
15860 else if (pWindowType == WINDOW_Options) | 15818 else if (pWindowType == WINDOW_Options) |
15861 { | 15819 { |
15862 sub_414F82_DrawGameOptions(); | 15820 DrawGameOptions(); |
15863 } | 15821 } |
15864 } | 15822 } |
15865 else if (pWindowType == WINDOW_CharacterRecord) | 15823 else if (pWindowType == WINDOW_CharacterRecord) |
15866 { | 15824 { |
15867 CharacterUI_CharacterScreen_Draw(uActiveCharacter); | 15825 CharacterUI_CharacterScreen_Draw(uActiveCharacter); |
15868 } | 15826 } |
15869 continue; | 15827 continue; |
15870 } | 15828 } |
15871 pTexture = (Texture *)(uTextureID_507944 != -1 ? &pIcons_LOD->pTextures[uTextureID_507944] : 0);//pWindowType == 3 (0x3) | 15829 pTexture = (Texture *)(uTextureID_Options != -1 ? &pIcons_LOD->pTextures[uTextureID_Options] : 0);//pWindowType == 3 (0x3) |
15872 pY = pViewport->uViewportY; | 15830 pY = pViewport->uViewportY; |
15873 pX = pViewport->uViewportX; | 15831 pX = pViewport->uViewportX; |
15874 //goto LABEL_18; | 15832 //goto LABEL_18; |
15875 pRenderer->DrawTextureIndexed(pX, pY, pTexture); | 15833 pRenderer->DrawTextureIndexed(pX, pY, pTexture); |
15876 viewparams->bRedrawGameUI = 1; | 15834 viewparams->bRedrawGameUI = 1; |