Mercurial > mm7
comparison GUI/GUIWindow.cpp @ 2573:0c67be4ec900
DrawTextureIndexed renamed to DrawTextureTransparentColorKey
Changing more class Texture to class Image.
author | a.parshin |
---|---|
date | Sat, 05 Mar 2016 16:25:53 +0200 |
parents | d87bfbd3bb3b |
children | dd36326a9994 |
comparison
equal
deleted
inserted
replaced
2572:d87bfbd3bb3b | 2573:0c67be4ec900 |
---|---|
24 #include "Engine/Objects/Chest.h" | 24 #include "Engine/Objects/Chest.h" |
25 #include "Engine/Graphics/Outdoor.h" | 25 #include "Engine/Graphics/Outdoor.h" |
26 #include "Engine/Tables/IconFrameTable.h" | 26 #include "Engine/Tables/IconFrameTable.h" |
27 #include "Engine/Objects/Actor.h" | 27 #include "Engine/Objects/Actor.h" |
28 #include "Engine/AssetsManager.h" | 28 #include "Engine/AssetsManager.h" |
29 | 29 #include "Engine/Events.h" |
30 #include "GUI\UI\UIArena.h" | 30 #include "Engine/Graphics/Level\Decoration.h" |
31 | |
32 #include "GUI/UI/UIArena.h" | |
31 #include "GUI/UI/UIPopup.h" | 33 #include "GUI/UI/UIPopup.h" |
32 #include "GUI/UI/UIGame.h" | 34 #include "GUI/UI/UIGame.h" |
33 #include "Engine/Events.h" | 35 #include "GUI/UI/UICharacter.h" |
34 #include "Engine/Graphics/Level\Decoration.h" | |
35 | 36 |
36 typedef struct _RGBColor | 37 typedef struct _RGBColor |
37 { | 38 { |
38 unsigned char R; | 39 unsigned char R; |
39 unsigned char B; | 40 unsigned char B; |
71 | 72 |
72 struct GUIMessageQueue *pMessageQueue_50CBD0 = new GUIMessageQueue; | 73 struct GUIMessageQueue *pMessageQueue_50CBD0 = new GUIMessageQueue; |
73 struct GUIMessageQueue *pMessageQueue_50C9E8 = new GUIMessageQueue; | 74 struct GUIMessageQueue *pMessageQueue_50C9E8 = new GUIMessageQueue; |
74 | 75 |
75 | 76 |
77 Image *ui_exit_cancel_button_background = nullptr; | |
78 Image *game_ui_right_panel_frame = nullptr; | |
79 unsigned int uExitCancelTextureId; | |
76 | 80 |
77 | 81 |
78 | 82 |
79 | 83 |
80 GUIWindow_Inventory_CastSpell::GUIWindow_Inventory_CastSpell(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | 84 GUIWindow_Inventory_CastSpell::GUIWindow_Inventory_CastSpell(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : |
636 memcpy(&pWindow, this, sizeof(pWindow)); | 640 memcpy(&pWindow, this, sizeof(pWindow)); |
637 pWindow.uFrameWidth -= 18; | 641 pWindow.uFrameWidth -= 18; |
638 pWindow.uFrameZ -= 18; | 642 pWindow.uFrameZ -= 18; |
639 pWhiteColor = Color16(0xFFu, 0xFFu, 0xFFu); | 643 pWhiteColor = Color16(0xFFu, 0xFFu, 0xFFu); |
640 pColor2 = Color16(0x15u, 0x99u, 0xE9u); | 644 pColor2 = Color16(0x15u, 0x99u, 0xE9u); |
641 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); | 645 pRenderer->DrawTextureTransparentColorKey(0x1DDu, 0, pTexture_Dialogue_Background); |
642 pRenderer->DrawTextureIndexedAlpha(0x1D4u, 0, right_panel_loop); | 646 pRenderer->DrawTextureAlphaNew(468, 0, game_ui_right_panel_frame); |
643 if ( pDialogueNPCCount != uNumDialogueNPCPortraits || !uHouse_ExitPic ) | 647 if ( pDialogueNPCCount != uNumDialogueNPCPortraits || !uHouse_ExitPic ) |
644 { | 648 { |
645 pDialogWindow.uFrameWidth = 130; | 649 pDialogWindow.uFrameWidth = 130; |
646 pDialogWindow.uFrameHeight = 2 * LOBYTE(pFontCreate->uFontHeight); | 650 pDialogWindow.uFrameHeight = 2 * LOBYTE(pFontCreate->uFontHeight); |
647 pHouseName = p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pName; | 651 pHouseName = p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pName; |
662 if ( in_current_building_type == BuildingType_Jail ) | 666 if ( in_current_building_type == BuildingType_Jail ) |
663 { | 667 { |
664 JailDialog(); | 668 JailDialog(); |
665 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 669 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
666 { | 670 { |
667 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); | 671 pRenderer->DrawTextureTransparentColorKey(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); |
668 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); | 672 pRenderer->DrawTextureTransparentColorKey(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); |
669 } | 673 } |
670 else | 674 else |
671 pRenderer->DrawTextureIndexed(471, 445, &pIcons_LOD->pTextures[uExitCancelTextureId]); | 675 pRenderer->DrawTextureAlphaNew(471/640.0f, 445/480.0f, ui_exit_cancel_button_background); |
672 return; | 676 return; |
673 } | 677 } |
674 if ( current_npc_text ) | 678 if ( current_npc_text ) |
675 { | 679 { |
676 pDialogWindow.uFrameWidth = 458; | 680 pDialogWindow.uFrameWidth = 458; |
677 pDialogWindow.uFrameZ = 457; | 681 pDialogWindow.uFrameZ = 457; |
678 pTextHeight = pFontArrus->CalcTextHeight(current_npc_text, &pDialogWindow, 13, 0); | 682 pTextHeight = pFontArrus->CalcTextHeight(current_npc_text, &pDialogWindow, 13, 0); |
679 v6 = pTextHeight + 7; | 683 v6 = pTextHeight + 7; |
680 pRenderer->GetLeather(8, 352 - (pTextHeight + 7), &pIcons_LOD->pTextures[uTextureID_Leather], | 684 pRenderer->GetLeather(8, 352 - (pTextHeight + 7), &pIcons_LOD->pTextures[uTextureID_Leather], |
681 pIcons_LOD->pTextures[uTextureID_Leather].uTextureHeight - (pTextHeight + 7)); | 685 pIcons_LOD->pTextures[uTextureID_Leather].uTextureHeight - (pTextHeight + 7)); |
682 pRenderer->DrawTextureIndexed(8, 347 - v6, pTexture_591428); | 686 pRenderer->DrawTextureAlphaNew(8/640.0f, (347 - v6)/480.0f, _591428_endcap); |
683 v7 = FitTextInAWindow(current_npc_text, pFontArrus, &pDialogWindow, 0xDu, 0); | 687 v7 = FitTextInAWindow(current_npc_text, pFontArrus, &pDialogWindow, 0xDu, 0); |
684 window_SpeakInHouse->DrawText(pFontArrus, 13, 354 - v6, 0, v7, 0, 0, 0); | 688 window_SpeakInHouse->DrawText(pFontArrus, 13, 354 - v6, 0, v7, 0, 0, 0); |
685 } | 689 } |
686 if ( uNumDialogueNPCPortraits <= 0 ) | 690 if ( uNumDialogueNPCPortraits <= 0 ) |
687 { | 691 { |
688 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 692 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
689 { | 693 { |
690 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); | 694 pRenderer->DrawTextureTransparentColorKey(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); |
691 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); | 695 pRenderer->DrawTextureTransparentColorKey(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); |
692 } | 696 } |
693 else | 697 else |
694 pRenderer->DrawTextureIndexed(471, 445, &pIcons_LOD->pTextures[uExitCancelTextureId]); | 698 pRenderer->DrawTextureAlphaNew(471 / 640.0f, 445 / 480.0f, ui_exit_cancel_button_background); |
695 return; | 699 return; |
696 } | 700 } |
697 for ( v8 = 0; v8 < uNumDialogueNPCPortraits; ++v8 ) | 701 for ( v8 = 0; v8 < uNumDialogueNPCPortraits; ++v8 ) |
698 { | 702 { |
699 pRenderer->DrawTextureIndexed(pNPCPortraits_x[uNumDialogueNPCPortraits - 1][v8] - 4, | 703 pRenderer->DrawTextureTransparentColorKey(pNPCPortraits_x[uNumDialogueNPCPortraits - 1][v8] - 4, |
700 pNPCPortraits_y[uNumDialogueNPCPortraits - 1][v8] - 4, &pIcons_LOD->pTextures[uTextureID_50795C]); | 704 pNPCPortraits_y[uNumDialogueNPCPortraits - 1][v8] - 4, &pIcons_LOD->pTextures[uTextureID_50795C]); |
701 pRenderer->DrawTextureIndexed(pNPCPortraits_x[uNumDialogueNPCPortraits - 1][v8], | 705 pRenderer->DrawTextureTransparentColorKey(pNPCPortraits_x[uNumDialogueNPCPortraits - 1][v8], |
702 pNPCPortraits_y[uNumDialogueNPCPortraits - 1][v8], pDialogueNPCPortraits[v8]); | 706 pNPCPortraits_y[uNumDialogueNPCPortraits - 1][v8], pDialogueNPCPortraits[v8]); |
703 if ( uNumDialogueNPCPortraits < 4 ) | 707 if ( uNumDialogueNPCPortraits < 4 ) |
704 { | 708 { |
705 if ( v8 + 1 == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 709 if ( v8 + 1 == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
706 { | 710 { |
722 pWindow.DrawTitleText(pFontCreate, 483, v10, pColor2, pTitleText, 3); | 726 pWindow.DrawTitleText(pFontCreate, 483, v10, pColor2, pTitleText, 3); |
723 } | 727 } |
724 } | 728 } |
725 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 729 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
726 { | 730 { |
727 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); | 731 pRenderer->DrawTextureTransparentColorKey(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); |
728 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); | 732 pRenderer->DrawTextureTransparentColorKey(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); |
729 } | 733 } |
730 else | 734 else |
731 pRenderer->DrawTextureIndexed(471, 445, &pIcons_LOD->pTextures[uExitCancelTextureId]); | 735 pRenderer->DrawTextureAlphaNew(471 / 640.0f, 445 / 480.0f, ui_exit_cancel_button_background); |
732 return; | 736 return; |
733 } | 737 } |
734 v4 = (char *)pDialogueNPCCount - 1; | 738 v4 = (char *)pDialogueNPCCount - 1; |
735 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, &pIcons_LOD->pTextures[uTextureID_50795C]); | 739 pRenderer->DrawTextureTransparentColorKey(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, &pIcons_LOD->pTextures[uTextureID_50795C]); |
736 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[(signed int)v4]); | 740 pRenderer->DrawTextureTransparentColorKey(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[(signed int)v4]); |
737 if ( current_screen_type == SCREEN_E ) | 741 if ( current_screen_type == SCREEN_E ) |
738 { | 742 { |
739 CharacterUI_InventoryTab_Draw(pPlayers[uActiveCharacter], true); | 743 CharacterUI_InventoryTab_Draw(pPlayers[uActiveCharacter], true); |
740 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 744 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
741 { | 745 { |
742 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); | 746 pRenderer->DrawTextureTransparentColorKey(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); |
743 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); | 747 pRenderer->DrawTextureTransparentColorKey(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); |
744 } | 748 } |
745 else | 749 else |
746 pRenderer->DrawTextureIndexed(471, 445, &pIcons_LOD->pTextures[uExitCancelTextureId]); | 750 pRenderer->DrawTextureAlphaNew(471 / 640.0f, 445 / 480.0f, ui_exit_cancel_button_background); |
747 return; | 751 return; |
748 } | 752 } |
749 if ( v4 || !dword_591080 )//на изумрудном острове заходит на корабле пока не выполнены квесты | 753 if ( v4 || !dword_591080 )//на изумрудном острове заходит на корабле пока не выполнены квесты |
750 SimpleHouseDialog(); | 754 SimpleHouseDialog(); |
751 else | 755 else |
810 break; | 814 break; |
811 } | 815 } |
812 } | 816 } |
813 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 817 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
814 { | 818 { |
815 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); | 819 pRenderer->DrawTextureTransparentColorKey(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); |
816 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); | 820 pRenderer->DrawTextureTransparentColorKey(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); |
817 } | 821 } |
818 else | 822 else |
819 pRenderer->DrawTextureIndexed(471, 445, &pIcons_LOD->pTextures[uExitCancelTextureId]); | 823 pRenderer->DrawTextureAlphaNew(471 / 640.0f, 445 / 480.0f, ui_exit_cancel_button_background); |
820 } | 824 } |
821 | 825 |
822 //----- (004B1854) -------------------------------------------------------- | 826 //----- (004B1854) -------------------------------------------------------- |
823 void GUIWindow::DrawShops_next_generation_time_string( __int64 next_generation_time ) | 827 void GUIWindow::DrawShops_next_generation_time_string( __int64 next_generation_time ) |
824 { | 828 { |
1322 void GUIWindow_BooksButtonOverlay::Update() | 1326 void GUIWindow_BooksButtonOverlay::Update() |
1323 { | 1327 { |
1324 // ----------------------------------- | 1328 // ----------------------------------- |
1325 // 004156F0 GUI_UpdateWindows --- part | 1329 // 004156F0 GUI_UpdateWindows --- part |
1326 auto pButton = (GUIButton *)ptr_1C; | 1330 auto pButton = (GUIButton *)ptr_1C; |
1327 pRenderer->DrawTextureIndexed(uFrameY, uFrameX, pButton->pTextures[0]); | 1331 pRenderer->DrawTextureTransparentColorKey(uFrameY, uFrameX, pButton->pTextures[0]); |
1328 viewparams->bRedrawGameUI = true; | 1332 viewparams->bRedrawGameUI = true; |
1329 } | 1333 } |
1330 | 1334 |
1331 void GUIWindow_Dialogue::Update() | 1335 void GUIWindow_Dialogue::Update() |
1332 { | 1336 { |
1422 GUIButton *pButton = (GUIButton *)ptr_1C; | 1426 GUIButton *pButton = (GUIButton *)ptr_1C; |
1423 if (pButton->uX >= 0 && pButton->uX <= window->GetWidth()) | 1427 if (pButton->uX >= 0 && pButton->uX <= window->GetWidth()) |
1424 { | 1428 { |
1425 if (pButton->uY >= 0 && pButton->uY <= window->GetHeight()) | 1429 if (pButton->uY >= 0 && pButton->uY <= window->GetHeight()) |
1426 { | 1430 { |
1427 pRenderer->DrawTextureIndexed(uFrameX, uFrameY, pButton->pTextures[0]); | 1431 pRenderer->DrawTextureTransparentColorKey(uFrameX, uFrameY, pButton->pTextures[0]); |
1428 viewparams->bRedrawGameUI = true; | 1432 viewparams->bRedrawGameUI = true; |
1429 if (Hint && Hint != (char *)1) | 1433 if (Hint && Hint != (char *)1) |
1430 pButton->DrawLabel(Hint, pFontCreate, 0, 0); | 1434 pButton->DrawLabel(Hint, pFontCreate, 0, 0); |
1431 Release(); | 1435 Release(); |
1432 return; | 1436 return; |
1443 // ----------------------------------- | 1447 // ----------------------------------- |
1444 // 004156F0 GUI_UpdateWindows --- part | 1448 // 004156F0 GUI_UpdateWindows --- part |
1445 if (Hint != (char *)1) | 1449 if (Hint != (char *)1) |
1446 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); | 1450 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); |
1447 auto pButton = (GUIButton *)ptr_1C; | 1451 auto pButton = (GUIButton *)ptr_1C; |
1448 pRenderer->DrawTextureIndexed(uFrameX, uFrameY, pButton->pTextures[1]); | 1452 pRenderer->DrawTextureTransparentColorKey(uFrameX, uFrameY, pButton->pTextures[1]); |
1449 viewparams->bRedrawGameUI = 1; | 1453 viewparams->bRedrawGameUI = 1; |
1450 if (Hint && Hint != (char *)1) | 1454 if (Hint && Hint != (char *)1) |
1451 pButton->DrawLabel(Hint, pFontCreate, 0, 0); | 1455 pButton->DrawLabel(Hint, pFontCreate, 0, 0); |
1452 Release(); | 1456 Release(); |
1453 } | 1457 } |
1470 // ----------------------------------- | 1474 // ----------------------------------- |
1471 // 004156F0 GUI_UpdateWindows --- part | 1475 // 004156F0 GUI_UpdateWindows --- part |
1472 if (Hint != (char *)1) | 1476 if (Hint != (char *)1) |
1473 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); | 1477 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); |
1474 auto pButton = (GUIButton *)ptr_1C; | 1478 auto pButton = (GUIButton *)ptr_1C; |
1475 pRenderer->DrawTextureIndexed(uFrameX, uFrameY, pButton->pTextures[0]); | 1479 pRenderer->DrawTextureTransparentColorKey(uFrameX, uFrameY, pButton->pTextures[0]); |
1476 viewparams->bRedrawGameUI = true; | 1480 viewparams->bRedrawGameUI = true; |
1477 if (Hint && Hint != (char *)1) | 1481 if (Hint && Hint != (char *)1) |
1478 pButton->DrawLabel(Hint, pFontCreate, 0, 0); | 1482 pButton->DrawLabel(Hint, pFontCreate, 0, 0); |
1479 Release(); | 1483 Release(); |
1480 | 1484 |
1489 // ----------------------------------- | 1493 // ----------------------------------- |
1490 // 004156F0 GUI_UpdateWindows --- part | 1494 // 004156F0 GUI_UpdateWindows --- part |
1491 if (Hint != (char *)1) | 1495 if (Hint != (char *)1) |
1492 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); | 1496 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); |
1493 auto pGUIButton = (GUIButton *)ptr_1C; | 1497 auto pGUIButton = (GUIButton *)ptr_1C; |
1494 pRenderer->DrawTextureIndexed(uFrameX, uFrameY, pGUIButton->pTextures[0]); | 1498 pRenderer->DrawTextureTransparentColorKey(uFrameX, uFrameY, pGUIButton->pTextures[0]); |
1495 viewparams->bRedrawGameUI = true; | 1499 viewparams->bRedrawGameUI = true; |
1496 if (Hint && Hint != (char *)1) | 1500 if (Hint && Hint != (char *)1) |
1497 pGUIButton->DrawLabel(Hint, pFontCreate, 0, 0); | 1501 pGUIButton->DrawLabel(Hint, pFontCreate, 0, 0); |
1498 Release(); | 1502 Release(); |
1499 | 1503 |
1505 // ----------------------------------- | 1509 // ----------------------------------- |
1506 // 004156F0 GUI_UpdateWindows --- part | 1510 // 004156F0 GUI_UpdateWindows --- part |
1507 if (Hint != (char *)1) | 1511 if (Hint != (char *)1) |
1508 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); | 1512 pAudioPlayer->PlaySound(SOUND_StartMainChoice02, 0, 0, -1, 0, 0, 0, 0); |
1509 auto pButton = (GUIButton *)ptr_1C; | 1513 auto pButton = (GUIButton *)ptr_1C; |
1510 pRenderer->DrawTextureIndexed(uFrameX, uFrameY, pButton->pTextures[1]); | 1514 pRenderer->DrawTextureTransparentColorKey(uFrameX, uFrameY, pButton->pTextures[1]); |
1511 viewparams->bRedrawGameUI = true; | 1515 viewparams->bRedrawGameUI = true; |
1512 if (Hint && Hint != (char *)1) | 1516 if (Hint && Hint != (char *)1) |
1513 pButton->DrawLabel(Hint, pFontCreate, 0, 0); | 1517 pButton->DrawLabel(Hint, pFontCreate, 0, 0); |
1514 Release(); | 1518 Release(); |
1515 | 1519 |
1725 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-C.pcx"); | 1729 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-C.pcx"); |
1726 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-C.pcx"); | 1730 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-C.pcx"); |
1727 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-C.pcx"); | 1731 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-C.pcx"); |
1728 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-c.pcx"); | 1732 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-c.pcx"); |
1729 | 1733 |
1730 right_panel = assets->GetTexture("ib-mb-C"); | 1734 game_ui_right_panel_frame = assets->GetImage_16BitAlpha(L"ib-mb-C"); |
1731 minimap_loop = assets->GetTexture("ib-autmask-c"); | 1735 minimap_loop = assets->GetTexture("ib-autmask-c"); |
1732 _5079B4_compass = assets->GetTexture("IB-COMP-C"); | 1736 _5079B4_compass = assets->GetTexture("IB-COMP-C"); |
1733 _5079D0_init_g = assets->GetTexture("IB-InitG-c"); | 1737 _5079D0_init_g = assets->GetTexture("IB-InitG-c"); |
1734 _5079C8_init_y = assets->GetTexture("IB-InitY-c"); | 1738 _5079C8_init_y = assets->GetTexture("IB-InitY-c"); |
1735 _5079CC_init_r = assets->GetTexture("IB-InitR-c"); | 1739 _5079CC_init_r = assets->GetTexture("IB-InitR-c"); |
1752 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); | 1756 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); |
1753 pIconsFrameTable->InitializeAnimation(pUIAnim_WizardEye->uIconID); | 1757 pIconsFrameTable->InitializeAnimation(pUIAnim_WizardEye->uIconID); |
1754 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); | 1758 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); |
1755 pIconsFrameTable->InitializeAnimation(pUIAnum_Torchlight->uIconID); | 1759 pIconsFrameTable->InitializeAnimation(pUIAnum_Torchlight->uIconID); |
1756 | 1760 |
1757 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-c", 2); | 1761 ui_exit_cancel_button_background = assets->GetImage_16BitColorKey(L"ib-bcu-c", 0x7FF); |
1762 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-c", TEXTURE_16BIT_PALETTE); | |
1758 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-c", 2); | 1763 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-c", 2); |
1759 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven-c", 2); | 1764 ui_character_inventory_background = assets->GetImage_16BitColorKey(L"fr_inven-c", 0x7FF); |
1760 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll-c"); | 1765 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll-c"); |
1761 messagebox_corner_w = assets->GetImage_16BitAlpha(L"cornr_lr-c"); | 1766 messagebox_corner_w = assets->GetImage_16BitAlpha(L"cornr_lr-c"); |
1762 messagebox_corner_x = assets->GetImage_16BitAlpha(L"cornr_ul-c"); | 1767 messagebox_corner_x = assets->GetImage_16BitAlpha(L"cornr_ul-c"); |
1763 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur-c"); | 1768 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur-c"); |
1764 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm-c"); | 1769 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm-c"); |
1765 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf-c"); | 1770 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf-c"); |
1766 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt-c"); | 1771 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt-c"); |
1767 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top-c"); | 1772 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top-c"); |
1768 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap-c", 2); | 1773 _591428_endcap = assets->GetImage_16BitColorKey(L"endcap-c", 0x7FF); |
1769 } | 1774 } |
1770 else | 1775 else |
1771 { | 1776 { |
1772 game_ui_rightframe = assets->GetImage_PCXFromIconsLOD(L"ib-r-C.pcx"); | 1777 game_ui_rightframe = assets->GetImage_PCXFromIconsLOD(L"ib-r-C.pcx"); |
1773 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-c.pcx"); | 1778 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-c.pcx"); |
1774 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-C.pcx"); | 1779 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-C.pcx"); |
1775 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-C.pcx"); | 1780 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-C.pcx"); |
1776 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-c.pcx"); | 1781 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-c.pcx"); |
1777 | 1782 |
1778 right_panel = assets->GetTexture("ib-mb-C"); | 1783 game_ui_right_panel_frame = assets->GetImage_16BitAlpha(L"ib-mb-C"); |
1779 minimap_loop = assets->GetTexture("ib-autmask-c"); | 1784 minimap_loop = assets->GetTexture("ib-autmask-c"); |
1780 _5079B4_compass = assets->GetTexture("IB-COMP-C"); | 1785 _5079B4_compass = assets->GetTexture("IB-COMP-C"); |
1781 _5079D0_init_g = assets->GetTexture("IB-InitG-c"); | 1786 _5079D0_init_g = assets->GetTexture("IB-InitG-c"); |
1782 _5079C8_init_y = assets->GetTexture("IB-InitY-c"); | 1787 _5079C8_init_y = assets->GetTexture("IB-InitY-c"); |
1783 _5079CC_init_r = assets->GetTexture("IB-InitR-c"); | 1788 _5079CC_init_r = assets->GetTexture("IB-InitR-c"); |
1789 uTextureID_GameUI_CharSelectionFrame = pIcons_LOD->LoadTexture("IB-selec-C", TEXTURE_16BIT_PALETTE); | 1794 uTextureID_GameUI_CharSelectionFrame = pIcons_LOD->LoadTexture("IB-selec-C", TEXTURE_16BIT_PALETTE); |
1790 uTextureID_Btn_CastSpell = pIcons_LOD->LoadTexture("ib-m1d-c", TEXTURE_16BIT_PALETTE); | 1795 uTextureID_Btn_CastSpell = pIcons_LOD->LoadTexture("ib-m1d-c", TEXTURE_16BIT_PALETTE); |
1791 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-c", TEXTURE_16BIT_PALETTE); | 1796 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-c", TEXTURE_16BIT_PALETTE); |
1792 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-c", TEXTURE_16BIT_PALETTE); | 1797 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-c", TEXTURE_16BIT_PALETTE); |
1793 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-c", TEXTURE_16BIT_PALETTE); | 1798 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-c", TEXTURE_16BIT_PALETTE); |
1799 ui_exit_cancel_button_background = assets->GetImage_16BitColorKey(L"ib-bcu-c", 0x7FF); | |
1794 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-c", TEXTURE_16BIT_PALETTE); | 1800 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-c", TEXTURE_16BIT_PALETTE); |
1795 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-c", TEXTURE_16BIT_PALETTE); | 1801 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-c", TEXTURE_16BIT_PALETTE); |
1796 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-c", TEXTURE_16BIT_PALETTE); | 1802 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-c", TEXTURE_16BIT_PALETTE); |
1797 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-c", TEXTURE_16BIT_PALETTE); | 1803 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-c", TEXTURE_16BIT_PALETTE); |
1798 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-c", TEXTURE_16BIT_PALETTE); | 1804 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-c", TEXTURE_16BIT_PALETTE); |
1799 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc-c", TEXTURE_16BIT_PALETTE); | 1805 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc-c", TEXTURE_16BIT_PALETTE); |
1800 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); | 1806 ui_character_inventory_background = assets->GetImage_16BitColorKey(L"fr_inven", 0x7FF); |
1801 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); | 1807 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); |
1802 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 1808 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
1803 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); | 1809 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); |
1804 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 1810 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
1805 } | 1811 } |
1814 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-a.pcx"); | 1820 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-a.pcx"); |
1815 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-a.pcx"); | 1821 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-a.pcx"); |
1816 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-a.pcx"); | 1822 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-a.pcx"); |
1817 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-a.pcx"); | 1823 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-a.pcx"); |
1818 | 1824 |
1819 right_panel = assets->GetTexture("ib-mb-a"); | 1825 game_ui_right_panel_frame = assets->GetImage_16BitAlpha(L"ib-mb-a"); |
1820 minimap_loop = assets->GetTexture("ib-autmask-a"); | 1826 minimap_loop = assets->GetTexture("ib-autmask-a"); |
1821 _5079B4_compass = assets->GetTexture("IB-COMP-a"); | 1827 _5079B4_compass = assets->GetTexture("IB-COMP-a"); |
1822 _5079D0_init_g = assets->GetTexture("IB-InitG-a"); | 1828 _5079D0_init_g = assets->GetTexture("IB-InitG-a"); |
1823 _5079C8_init_y = assets->GetTexture("IB-InitY-a"); | 1829 _5079C8_init_y = assets->GetTexture("IB-InitY-a"); |
1824 _5079CC_init_r = assets->GetTexture("IB-InitR-a"); | 1830 _5079CC_init_r = assets->GetTexture("IB-InitR-a"); |
1838 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-a", 2); | 1844 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-a", 2); |
1839 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); | 1845 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); |
1840 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 1846 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
1841 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); | 1847 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); |
1842 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 1848 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
1843 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-a", 2); | 1849 ui_exit_cancel_button_background = assets->GetImage_16BitColorKey(L"ib-bcu-a", 0x7FF); |
1850 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-a", TEXTURE_16BIT_PALETTE); | |
1844 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc", 2); | 1851 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc", 2); |
1845 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven", 2); | 1852 ui_character_inventory_background = assets->GetImage_16BitColorKey(L"fr_inven", 0x7FF); |
1846 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll"); | 1853 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll"); |
1847 messagebox_corner_w = assets->GetImage_16BitAlpha(L"cornr_lr"); | 1854 messagebox_corner_w = assets->GetImage_16BitAlpha(L"cornr_lr"); |
1848 messagebox_corner_x = assets->GetImage_16BitAlpha(L"cornr_ul"); | 1855 messagebox_corner_x = assets->GetImage_16BitAlpha(L"cornr_ul"); |
1849 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur"); | 1856 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur"); |
1850 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm"); | 1857 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm"); |
1851 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf"); | 1858 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf"); |
1852 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt"); | 1859 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt"); |
1853 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top"); | 1860 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top"); |
1854 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap", 2); | 1861 _591428_endcap = assets->GetImage_16BitColorKey(L"endcap", 0x7FF); |
1855 } | 1862 } |
1856 else | 1863 else |
1857 { | 1864 { |
1858 game_ui_rightframe = assets->GetImage_PCXFromIconsLOD(L"ib-r-A.pcx"); | 1865 game_ui_rightframe = assets->GetImage_PCXFromIconsLOD(L"ib-r-A.pcx"); |
1859 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-A.pcx"); | 1866 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-A.pcx"); |
1860 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-A.pcx"); | 1867 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-A.pcx"); |
1861 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-A.pcx"); | 1868 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-A.pcx"); |
1862 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-a.pcx"); | 1869 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-a.pcx"); |
1863 | 1870 |
1864 right_panel = assets->GetTexture("ib-mb-A"); | 1871 game_ui_right_panel_frame = assets->GetImage_16BitAlpha(L"ib-mb-A"); |
1865 minimap_loop = assets->GetTexture("ib-autmask-a"); | 1872 minimap_loop = assets->GetTexture("ib-autmask-a"); |
1866 _5079B4_compass = assets->GetTexture("IB-COMP-A"); | 1873 _5079B4_compass = assets->GetTexture("IB-COMP-A"); |
1867 _5079D0_init_g = assets->GetTexture("IB-InitG-a"); | 1874 _5079D0_init_g = assets->GetTexture("IB-InitG-a"); |
1868 _5079C8_init_y = assets->GetTexture("IB-InitY-a"); | 1875 _5079C8_init_y = assets->GetTexture("IB-InitY-a"); |
1869 _5079CC_init_r = assets->GetTexture("IB-InitR-a"); | 1876 _5079CC_init_r = assets->GetTexture("IB-InitR-a"); |
1875 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-a", TEXTURE_16BIT_PALETTE); | 1882 uTextureID_Btn_Rest = pIcons_LOD->LoadTexture("ib-m2d-a", TEXTURE_16BIT_PALETTE); |
1876 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-a", TEXTURE_16BIT_PALETTE); | 1883 uTextureID_Btn_QuickReference = pIcons_LOD->LoadTexture("ib-m3d-a", TEXTURE_16BIT_PALETTE); |
1877 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-a", TEXTURE_16BIT_PALETTE); | 1884 uTextureID_Btn_GameSettings = pIcons_LOD->LoadTexture("ib-m4d-a", TEXTURE_16BIT_PALETTE); |
1878 uTextureID_Btn_ZoomIn = pIcons_LOD->LoadTexture("ib-autout-a", TEXTURE_16BIT_PALETTE); | 1885 uTextureID_Btn_ZoomIn = pIcons_LOD->LoadTexture("ib-autout-a", TEXTURE_16BIT_PALETTE); |
1879 uTextureID_Btn_ZoomOut = pIcons_LOD->LoadTexture("ib-autin-a", TEXTURE_16BIT_PALETTE); | 1886 uTextureID_Btn_ZoomOut = pIcons_LOD->LoadTexture("ib-autin-a", TEXTURE_16BIT_PALETTE); |
1887 ui_exit_cancel_button_background = assets->GetImage_16BitColorKey(L"ib-bcu-a", 0x7FF); | |
1880 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-a", TEXTURE_16BIT_PALETTE); | 1888 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-a", TEXTURE_16BIT_PALETTE); |
1881 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-a", TEXTURE_16BIT_PALETTE); | 1889 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-a", TEXTURE_16BIT_PALETTE); |
1882 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-a", TEXTURE_16BIT_PALETTE); | 1890 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-a", TEXTURE_16BIT_PALETTE); |
1883 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-a", TEXTURE_16BIT_PALETTE); | 1891 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-a", TEXTURE_16BIT_PALETTE); |
1884 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-a", TEXTURE_16BIT_PALETTE); | 1892 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-a", TEXTURE_16BIT_PALETTE); |
1885 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc", TEXTURE_16BIT_PALETTE); | 1893 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc", TEXTURE_16BIT_PALETTE); |
1886 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); | 1894 ui_character_inventory_background = assets->GetImage_16BitColorKey(L"fr_inven", 0x7FF); |
1887 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); | 1895 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); |
1888 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 1896 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
1889 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); | 1897 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); |
1890 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 1898 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
1891 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll"); | 1899 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll"); |
1894 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur"); | 1902 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur"); |
1895 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm"); | 1903 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm"); |
1896 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf"); | 1904 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf"); |
1897 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt"); | 1905 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt"); |
1898 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top"); | 1906 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top"); |
1899 pTexture_591428 = pIcons_LOD->LoadTexturePtr("endcap", TEXTURE_16BIT_PALETTE); | 1907 _591428_endcap = assets->GetImage_16BitColorKey(L"endcap", 0x7FF); |
1900 } | 1908 } |
1901 uGameUIFontMain = Color16(0xAu, 0, 0); | 1909 uGameUIFontMain = Color16(0xAu, 0, 0); |
1902 uGameUIFontShadow = Color16(230, 214, 193); | 1910 uGameUIFontShadow = Color16(230, 214, 193); |
1903 } | 1911 } |
1904 else if (align == PartyAlignment_Good) | 1912 else if (align == PartyAlignment_Good) |
1909 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-B.pcx"); | 1917 game_ui_bottomframe = assets->GetImage_PCXFromIconsLOD(L"ib-b-B.pcx"); |
1910 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-B.pcx"); | 1918 game_ui_topframe = assets->GetImage_PCXFromIconsLOD(L"ib-t-B.pcx"); |
1911 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-B.pcx"); | 1919 game_ui_leftframe = assets->GetImage_PCXFromIconsLOD(L"ib-l-B.pcx"); |
1912 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-b.pcx"); | 1920 game_ui_statusbar = assets->GetImage_PCXFromIconsLOD(L"IB-Foot-b.pcx"); |
1913 | 1921 |
1914 right_panel = assets->GetTexture("ib-mb-B"); | 1922 game_ui_right_panel_frame = assets->GetImage_16BitAlpha(L"ib-mb-B"); |
1915 minimap_loop = assets->GetTexture("ib-autmask-b"); | 1923 minimap_loop = assets->GetTexture("ib-autmask-b"); |
1916 _5079B4_compass = assets->GetTexture("IB-COMP-B"); | 1924 _5079B4_compass = assets->GetTexture("IB-COMP-B"); |
1917 _5079D0_init_g = assets->GetTexture("IB-InitG-b"); | 1925 _5079D0_init_g = assets->GetTexture("IB-InitG-b"); |
1918 _5079C8_init_y = assets->GetTexture("IB-InitY-b"); | 1926 _5079C8_init_y = assets->GetTexture("IB-InitY-b"); |
1919 _5079CC_init_r = assets->GetTexture("IB-InitR-b"); | 1927 _5079CC_init_r = assets->GetTexture("IB-InitR-b"); |
1933 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-b", 2); | 1941 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_PlayerBuff_PainReflection], "isg-04-b", 2); |
1934 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeB"); | 1942 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeB"); |
1935 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); | 1943 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); |
1936 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchB"); | 1944 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchB"); |
1937 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); | 1945 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); |
1938 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-b", 2); | 1946 ui_exit_cancel_button_background = assets->GetImage_16BitColorKey(L"ib-bcu-b", 0x7FF); |
1947 uExitCancelTextureId = pIcons_LOD->LoadTexture("ib-bcu-b", TEXTURE_16BIT_PALETTE); | |
1939 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-b", 2); | 1948 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-b", 2); |
1940 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven-b", 2); | 1949 ui_character_inventory_background = assets->GetImage_16BitColorKey(L"fr_inven-b", 0x7FF); |
1941 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll-b"); | 1950 messagebox_corner_y = assets->GetImage_16BitAlpha(L"cornr_ll-b"); |
1942 messagebox_corner_w = assets->GetImage_16BitAlpha(L"cornr_lr-b"); | 1951 messagebox_corner_w = assets->GetImage_16BitAlpha(L"cornr_lr-b"); |
1943 messagebox_corner_x = assets->GetImage_16BitAlpha(L"cornr_ul-b"); | 1952 messagebox_corner_x = assets->GetImage_16BitAlpha(L"cornr_ul-b"); |
1944 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur-b"); | 1953 messagebox_corner_z = assets->GetImage_16BitAlpha(L"cornr_ur-b"); |
1945 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm-b"); | 1954 messagebox_border_bottom = assets->GetImage_16BitAlpha(L"edge_btm-b"); |
1946 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf-b"); | 1955 messagebox_border_left = assets->GetImage_16BitAlpha(L"edge_lf-b"); |
1947 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt-b"); | 1956 messagebox_border_right = assets->GetImage_16BitAlpha(L"edge_rt-b"); |
1948 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top-b"); | 1957 messagebox_border_top = assets->GetImage_16BitAlpha(L"edge_top-b"); |
1949 pIcons_LOD->ReloadTexture(pTexture_591428, "endcap-b", 2); | 1958 _591428_endcap = assets->GetImage_16BitColorKey(L"endcap-b", 0x7FF); |
1950 } | 1959 } |
1951 uGameUIFontMain = Color16(0, 0, 0xC8u); | 1960 uGameUIFontMain = Color16(0, 0, 0xC8u); |
1952 uGameUIFontShadow = Color16(255, 255, 255); | 1961 uGameUIFontShadow = Color16(255, 255, 255); |
1953 } | 1962 } |
1954 else Error("Invalid alignment type: %u", align); | 1963 else Error("Invalid alignment type: %u", align); |