comparison GUI/UI/UiGame.cpp @ 2524:c7264ab7132f

Main menu rendered using d3d11
author a.parshin
date Fri, 10 Oct 2014 17:42:05 +0300
parents 56b6d74ce716
children a902abdfc7f2
comparison
equal deleted inserted replaced
2523:c532d5242055 2524:c7264ab7132f
380 pNPC = GetNPCData(sDialogue_SpeakingActorNPC_ID); 380 pNPC = GetNPCData(sDialogue_SpeakingActorNPC_ID);
381 pGreetType = GetGreetType(sDialogue_SpeakingActorNPC_ID); 381 pGreetType = GetGreetType(sDialogue_SpeakingActorNPC_ID);
382 window.uFrameWidth -= 10; 382 window.uFrameWidth -= 10;
383 window.uFrameZ -= 10; 383 window.uFrameZ -= 10;
384 pRenderer->DrawTextureIndexed(477, 0, pTexture_Dialogue_Background); 384 pRenderer->DrawTextureIndexed(477, 0, pTexture_Dialogue_Background);
385 pRenderer->DrawTextureTransparent(468, 0, (Texture *)(uTextureID_right_panel_loop != -1 ? &pIcons_LOD->pTextures[uTextureID_right_panel_loop] : 0)); 385 pRenderer->DrawTextureIndexedAlpha(468, 0, (Texture *)(uTextureID_right_panel_loop != -1 ? &pIcons_LOD->pTextures[uTextureID_right_panel_loop] : 0));
386 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, (Texture *)(uTextureID_50795C != -1 ? &pIcons_LOD->pTextures[uTextureID_50795C] : 0)); 386 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, (Texture *)(uTextureID_50795C != -1 ? &pIcons_LOD->pTextures[uTextureID_50795C] : 0));
387 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[0]); 387 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[0]);
388 388
389 if (pNPC->uProfession) 389 if (pNPC->uProfession)
390 { 390 {
797 v15 = pPlayerFrameTable->GetFrameBy_x(uFramesetID, pMiscTimer->Time()); 797 v15 = pPlayerFrameTable->GetFrameBy_x(uFramesetID, pMiscTimer->Time());
798 player->field_1AA2 = v15->uTextureID - 1; 798 player->field_1AA2 = v15->uTextureID - 1;
799 v13 = pTextures_PlayerFaces[(unsigned int)window->ptr_1C][v15->uTextureID - 1]; 799 v13 = pTextures_PlayerFaces[(unsigned int)window->ptr_1C][v15->uTextureID - 1];
800 } 800 }
801 801
802 pRenderer->DrawTextureTransparent(window->uFrameX + 24, window->uFrameY + 24, v13); 802 pRenderer->DrawTextureIndexedAlpha(window->uFrameX + 24, window->uFrameY + 24, v13);
803 803
804 sprintfex(pTmpBuf.data(), "\f%05d", ui_character_header_text_color); 804 sprintfex(pTmpBuf.data(), "\f%05d", ui_character_header_text_color);
805 sprintfex(pTmpBuf2.data(), pGlobalTXT_LocalizationStrings[429], player->pName, pClassNames[player->classType]); // "%s the %s" 805 sprintfex(pTmpBuf2.data(), pGlobalTXT_LocalizationStrings[429], player->pName, pClassNames[player->classType]); // "%s the %s"
806 strcat(pTmpBuf.data(), pTmpBuf2.data()); 806 strcat(pTmpBuf.data(), pTmpBuf2.data());
807 strcat(pTmpBuf.data(), "\f00000\n"); 807 strcat(pTmpBuf.data(), "\f00000\n");
974 974
975 static bool byte_50697C = false; // 50697C 975 static bool byte_50697C = false; // 50697C
976 byte_50697C = !byte_50697C; 976 byte_50697C = !byte_50697C;
977 if ( byte_50697C && pCurrentScreen != SCREEN_REST ) 977 if ( byte_50697C && pCurrentScreen != SCREEN_REST )
978 { 978 {
979 if (bFlashQuestBook) pRenderer->DrawTextureTransparent(493, 355, pIcons_LOD->GetTexture(uTextureID_ib_td1_A)); 979 if (bFlashQuestBook) pRenderer->DrawTextureIndexedAlpha(493, 355, pIcons_LOD->GetTexture(uTextureID_ib_td1_A));
980 if (bFlashAutonotesBook) pRenderer->DrawTextureTransparent(527, 353, pIcons_LOD->GetTexture(uTextureID_ib_td2_A)); 980 if (bFlashAutonotesBook) pRenderer->DrawTextureIndexedAlpha(527, 353, pIcons_LOD->GetTexture(uTextureID_ib_td2_A));
981 if (bFlashHistoryBook) pRenderer->DrawTextureTransparent(600, 361, pIcons_LOD->GetTexture(uTextureID_ib_td5_A)); 981 if (bFlashHistoryBook) pRenderer->DrawTextureIndexedAlpha(600, 361, pIcons_LOD->GetTexture(uTextureID_ib_td5_A));
982 } 982 }
983 else 983 else
984 { 984 {
985 pRenderer->DrawTextureRGB(468, 0, pTexture_RightFrame); 985 pRenderer->DrawTextureRGB(468, 0, pTexture_RightFrame);
986 GameUI_DrawHiredNPCs(); 986 GameUI_DrawHiredNPCs();
1030 pTextureHealth = pIcons_LOD->GetTexture(uTextureID_BarYellow); 1030 pTextureHealth = pIcons_LOD->GetTexture(uTextureID_BarYellow);
1031 else if ( v3 > 0.0 ) 1031 else if ( v3 > 0.0 )
1032 pTextureHealth = pIcons_LOD->GetTexture(uTextureID_BarRed); 1032 pTextureHealth = pIcons_LOD->GetTexture(uTextureID_BarRed);
1033 if( v3 > 0.0 ) 1033 if( v3 > 0.0 )
1034 { 1034 {
1035 pRenderer->SetTextureClipRect(v17 + pHealthBarPos[i], (signed __int64)((1.0 - v3) * pTextureHealth->uTextureHeight) + 402, 1035 pRenderer->SetUIClipRect(v17 + pHealthBarPos[i], (signed __int64)((1.0 - v3) * pTextureHealth->uTextureHeight) + 402,
1036 v17 + pHealthBarPos[i] + pTextureHealth->uTextureWidth, pTextureHealth->uTextureHeight + 402); 1036 v17 + pHealthBarPos[i] + pTextureHealth->uTextureWidth, pTextureHealth->uTextureHeight + 402);
1037 pRenderer->DrawTextureIndexed(v17 + pHealthBarPos[i], 402, pTextureHealth); 1037 pRenderer->DrawTextureIndexed(v17 + pHealthBarPos[i], 402, pTextureHealth);
1038 pRenderer->ResetTextureClipRect(); 1038 pRenderer->ResetUIClipRect();
1039 } 1039 }
1040 } 1040 }
1041 if (pParty->pPlayers[i].sMana > 0) 1041 if (pParty->pPlayers[i].sMana > 0)
1042 { 1042 {
1043 v7 = pParty->pPlayers[i].sMana / (double)pParty->pPlayers[i].GetMaxMana(); 1043 v7 = pParty->pPlayers[i].sMana / (double)pParty->pPlayers[i].GetMaxMana();
1044 if ( v7 > 1.0 ) 1044 if ( v7 > 1.0 )
1045 v7 = 1.0; 1045 v7 = 1.0;
1046 int v17 = 0; 1046 int v17 = 0;
1047 if (i == 2) 1047 if (i == 2)
1048 v17 = 1; 1048 v17 = 1;
1049 pRenderer->SetTextureClipRect(v17 + pManaBarPos[i], (signed __int64)((1.0 - v7) * pTextureMana->uTextureHeight) + 402, 1049 pRenderer->SetUIClipRect(v17 + pManaBarPos[i], (signed __int64)((1.0 - v7) * pTextureMana->uTextureHeight) + 402,
1050 v17 + pManaBarPos[i] + pTextureMana->uTextureWidth, pTextureMana->uTextureHeight + 402); 1050 v17 + pManaBarPos[i] + pTextureMana->uTextureWidth, pTextureMana->uTextureHeight + 402);
1051 pRenderer->DrawTextureIndexed(v17 + pManaBarPos[i], 402, pTextureMana); 1051 pRenderer->DrawTextureIndexed(v17 + pManaBarPos[i], 402, pTextureMana);
1052 pRenderer->ResetTextureClipRect(); 1052 pRenderer->ResetUIClipRect();
1053 } 1053 }
1054 } 1054 }
1055 } 1055 }
1056 1056
1057 //----- (0041B3B6) -------------------------------------------------------- 1057 //----- (0041B3B6) --------------------------------------------------------
1058 void GameUI_DrawRightPanel() 1058 void GameUI_DrawRightPanel()
1059 { 1059 {
1060 pRenderer->DrawTextureTransparent(pViewport->uViewportBR_X, 0, pIcons_LOD->GetTexture(uTextureID_right_panel)); 1060 pRenderer->DrawTextureIndexedAlpha(pViewport->uViewportBR_X, 0, pIcons_LOD->GetTexture(uTextureID_right_panel));
1061 } 1061 }
1062 1062
1063 //----- (0041B3E2) -------------------------------------------------------- 1063 //----- (0041B3E2) --------------------------------------------------------
1064 void GameUI_DrawRightPanelFrames() 1064 void GameUI_DrawRightPanelFrames()
1065 { 1065 {
1512 1512
1513 //----- (0044158F) -------------------------------------------------------- 1513 //----- (0044158F) --------------------------------------------------------
1514 void GameUI_DrawCharacterSelectionFrame() 1514 void GameUI_DrawCharacterSelectionFrame()
1515 { 1515 {
1516 if ( uActiveCharacter ) 1516 if ( uActiveCharacter )
1517 pRenderer->DrawTextureTransparent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[uActiveCharacter - 1] - 9, 380, 1517 pRenderer->DrawTextureIndexedAlpha(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[uActiveCharacter - 1] - 9, 380,
1518 pIcons_LOD->GetTexture(uTextureID_GameUI_CharSelectionFrame)); 1518 pIcons_LOD->GetTexture(uTextureID_GameUI_CharSelectionFrame));
1519 } 1519 }
1520 1520
1521 //----- (0044162D) -------------------------------------------------------- 1521 //----- (0044162D) --------------------------------------------------------
1522 void GameUI_DrawPartySpells() 1522 void GameUI_DrawPartySpells()
1550 else 1550 else
1551 spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_FlySpell, 0)->uTextureID); 1551 spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_FlySpell, 0)->uTextureID);
1552 //if ( pRenderer->pRenderD3D ) 1552 //if ( pRenderer->pRenderD3D )
1553 pRenderer->DrawTextureIndexed(8, 8, spell_texture); 1553 pRenderer->DrawTextureIndexed(8, 8, spell_texture);
1554 /*else 1554 /*else
1555 pRenderer->DrawTextureTransparent(8, 8, v7);*/ 1555 pRenderer->DrawTextureIndexedAlpha(8, 8, v7);*/
1556 } 1556 }
1557 if ( pParty->WaterWalkActive() ) 1557 if ( pParty->WaterWalkActive() )
1558 { 1558 {
1559 if ( pParty->uFlags & PARTY_FLAGS_1_STANDING_ON_WATER ) 1559 if ( pParty->uFlags & PARTY_FLAGS_1_STANDING_ON_WATER )
1560 spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, v0)->uTextureID); 1560 spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, v0)->uTextureID);
1561 else 1561 else
1562 spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, 0)->uTextureID); 1562 spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, 0)->uTextureID);
1563 //if ( pRenderer->pRenderD3D ) 1563 //if ( pRenderer->pRenderD3D )
1564 pRenderer->DrawTextureIndexed(396, 8, spell_texture); 1564 pRenderer->DrawTextureIndexed(396, 8, spell_texture);
1565 /*else 1565 /*else
1566 pRenderer->DrawTextureTransparent(396, 8, v9);*/ 1566 pRenderer->DrawTextureIndexedAlpha(396, 8, v9);*/
1567 } 1567 }
1568 } 1568 }
1569 for (uint i = 0; i < 4; ++i) 1569 for (uint i = 0; i < 4; ++i)
1570 { 1570 {
1571 if ( pParty->pPlayers[i].pPlayerBuffs[PLAYER_BUFF_HAMMERHANDS].uExpireTime ) 1571 if ( pParty->pPlayers[i].pPlayerBuffs[PLAYER_BUFF_HAMMERHANDS].uExpireTime )
1605 { 1605 {
1606 pPortrait = pTexture_PlayerFaceEradicated; 1606 pPortrait = pTexture_PlayerFaceEradicated;
1607 if ( pParty->pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime ) 1607 if ( pParty->pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime )
1608 pRenderer->DrawTranslucent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i], 388, pPortrait); 1608 pRenderer->DrawTranslucent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i], 388, pPortrait);
1609 else 1609 else
1610 pRenderer->DrawTextureTransparent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] + 1, 388, pPortrait); 1610 pRenderer->DrawTextureIndexedAlpha(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] + 1, 388, pPortrait);
1611 if ( pPlayer->pPlayerBuffs[PLAYER_BUFF_BLESS].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_HASTE].uExpireTime 1611 if ( pPlayer->pPlayerBuffs[PLAYER_BUFF_BLESS].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_HASTE].uExpireTime
1612 | pPlayer->pPlayerBuffs[PLAYER_BUFF_HEROISM].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_SHIELD].uExpireTime 1612 | pPlayer->pPlayerBuffs[PLAYER_BUFF_HEROISM].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_SHIELD].uExpireTime
1613 | pPlayer->pPlayerBuffs[PLAYER_BUFF_STONESKIN].uExpireTime ) 1613 | pPlayer->pPlayerBuffs[PLAYER_BUFF_STONESKIN].uExpireTime )
1614 sub_441A4E(i); 1614 sub_441A4E(i);
1615 continue; 1615 continue;
1618 { 1618 {
1619 pPortrait = pTexture_PlayerFaceDead; 1619 pPortrait = pTexture_PlayerFaceDead;
1620 if ( pParty->pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime ) 1620 if ( pParty->pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime )
1621 pRenderer->DrawTranslucent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i], 388, pPortrait); 1621 pRenderer->DrawTranslucent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i], 388, pPortrait);
1622 else 1622 else
1623 pRenderer->DrawTextureTransparent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] + 1, 388, pPortrait); 1623 pRenderer->DrawTextureIndexedAlpha(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] + 1, 388, pPortrait);
1624 if ( pPlayer->pPlayerBuffs[PLAYER_BUFF_BLESS].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_HASTE].uExpireTime 1624 if ( pPlayer->pPlayerBuffs[PLAYER_BUFF_BLESS].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_HASTE].uExpireTime
1625 | pPlayer->pPlayerBuffs[PLAYER_BUFF_HEROISM].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_SHIELD].uExpireTime 1625 | pPlayer->pPlayerBuffs[PLAYER_BUFF_HEROISM].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_SHIELD].uExpireTime
1626 | pPlayer->pPlayerBuffs[PLAYER_BUFF_STONESKIN].uExpireTime ) 1626 | pPlayer->pPlayerBuffs[PLAYER_BUFF_STONESKIN].uExpireTime )
1627 sub_441A4E(i); 1627 sub_441A4E(i);
1628 continue; 1628 continue;
1645 pPlayer->field_1AA2 = pFrame->uTextureID - 1; 1645 pPlayer->field_1AA2 = pFrame->uTextureID - 1;
1646 pPortrait = (Texture *)pTextures_PlayerFaces[i][pPlayer->field_1AA2];//pFace = (Texture *)pTextures_PlayerFaces[i][pFrame->uTextureID]; 1646 pPortrait = (Texture *)pTextures_PlayerFaces[i][pPlayer->field_1AA2];//pFace = (Texture *)pTextures_PlayerFaces[i][pFrame->uTextureID];
1647 if ( pParty->pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime ) 1647 if ( pParty->pPartyBuffs[PARTY_BUFF_INVISIBILITY].uExpireTime )
1648 pRenderer->DrawTranslucent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i], 388, pPortrait); 1648 pRenderer->DrawTranslucent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i], 388, pPortrait);
1649 else 1649 else
1650 pRenderer->DrawTextureTransparent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] + 1, 388, pPortrait); 1650 pRenderer->DrawTextureIndexedAlpha(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] + 1, 388, pPortrait);
1651 if ( pPlayer->pPlayerBuffs[PLAYER_BUFF_BLESS].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_HASTE].uExpireTime 1651 if ( pPlayer->pPlayerBuffs[PLAYER_BUFF_BLESS].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_HASTE].uExpireTime
1652 | pPlayer->pPlayerBuffs[PLAYER_BUFF_HEROISM].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_SHIELD].uExpireTime 1652 | pPlayer->pPlayerBuffs[PLAYER_BUFF_HEROISM].uExpireTime | pPlayer->pPlayerBuffs[PLAYER_BUFF_SHIELD].uExpireTime
1653 | pPlayer->pPlayerBuffs[PLAYER_BUFF_STONESKIN].uExpireTime ) 1653 | pPlayer->pPlayerBuffs[PLAYER_BUFF_STONESKIN].uExpireTime )
1654 sub_441A4E(i); 1654 sub_441A4E(i);
1655 continue; 1655 continue;
1673 else 1673 else
1674 { 1674 {
1675 if ( pParty->uFlags & 0x20 ) 1675 if ( pParty->uFlags & 0x20 )
1676 pTextureID = dword_5079C8; 1676 pTextureID = dword_5079C8;
1677 } 1677 }
1678 pRenderer->DrawTextureTransparent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[PID_ID(pTurnEngine->pQueue[i].uPackedID)] - 4, 385, pIcons_LOD->GetTexture(pTextureID)); 1678 pRenderer->DrawTextureIndexedAlpha(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[PID_ID(pTurnEngine->pQueue[i].uPackedID)] - 4, 385, pIcons_LOD->GetTexture(pTextureID));
1679 } 1679 }
1680 } 1680 }
1681 } 1681 }
1682 } 1682 }
1683 } 1683 }
1693 else 1693 else
1694 { 1694 {
1695 if ( pParty->uFlags & 0x20 ) 1695 if ( pParty->uFlags & 0x20 )
1696 pTextureID = dword_5079C8; 1696 pTextureID = dword_5079C8;
1697 } 1697 }
1698 pRenderer->DrawTextureTransparent(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] - 4, 385, pIcons_LOD->GetTexture(pTextureID)); 1698 pRenderer->DrawTextureIndexedAlpha(pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing[i] - 4, 385, pIcons_LOD->GetTexture(pTextureID));
1699 } 1699 }
1700 } 1700 }
1701 } 1701 }
1702 } 1702 }
1703 1703
1923 arrow_idx = 1; 1923 arrow_idx = 1;
1924 if ( (signed int)rotate <= 384 ) 1924 if ( (signed int)rotate <= 384 )
1925 arrow_idx = 0; 1925 arrow_idx = 0;
1926 if ( (signed int)rotate < 128 || (signed int)rotate > 1920 ) 1926 if ( (signed int)rotate < 128 || (signed int)rotate > 1920 )
1927 arrow_idx = 7; 1927 arrow_idx = 7;
1928 pRenderer->DrawTextureTransparent(uCenterX - 3, uCenterY - 3, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[arrow_idx]));//стрелка 1928 pRenderer->DrawTextureIndexedAlpha(uCenterX - 3, uCenterY - 3, pIcons_LOD->GetTexture(pTextureIDs_pMapDirs[arrow_idx]));//стрелка
1929 1929
1930 //draw objects on the minimap 1930 //draw objects on the minimap
1931 if ( bWizardEyeActive ) 1931 if ( bWizardEyeActive )
1932 { 1932 {
1933 if ( uWizardEyeSkillLevel >= 2 ) 1933 if ( uWizardEyeSkillLevel >= 2 )
2012 pRenderer->RasterLine2D(pPoint_X, pPoint_Y, pPoint_X, pPoint_Y, ui_game_minimap_decoration_color_1); 2012 pRenderer->RasterLine2D(pPoint_X, pPoint_Y, pPoint_X, pPoint_Y, ui_game_minimap_decoration_color_1);
2013 } 2013 }
2014 } 2014 }
2015 } 2015 }
2016 } 2016 }
2017 pRenderer->DrawTextureTransparent(468, 0, pIcons_LOD->GetTexture(uTextureID_Minimap_Loop));//draw minimap_loop 2017 pRenderer->DrawTextureIndexedAlpha(468, 0, pIcons_LOD->GetTexture(uTextureID_Minimap_Loop));//draw minimap_loop
2018 pRenderer->SetTextureClipRect(541, 0, 567, 480); 2018 pRenderer->SetUIClipRect(541, 0, 567, 480);
2019 pRenderer->DrawTextureIndexed(floorf(((double)pParty->sRotationY * 0.1171875) + 0.5f) + 285, 136, pIcons_LOD->GetTexture(uTextureID_Compas));//draw compas 2019 pRenderer->DrawTextureIndexed(floorf(((double)pParty->sRotationY * 0.1171875) + 0.5f) + 285, 136, pIcons_LOD->GetTexture(uTextureID_Compas));//draw compas
2020 pRenderer->ResetTextureClipRect(); 2020 pRenderer->ResetUIClipRect();
2021 } 2021 }
2022 2022
2023 //----- (00441498) -------------------------------------------------------- 2023 //----- (00441498) --------------------------------------------------------
2024 void GameUI_DrawTorchlightAndWizardEye() 2024 void GameUI_DrawTorchlightAndWizardEye()
2025 { 2025 {
2036 || pCurrentScreen == SCREEN_BRANCHLESS_NPC_DIALOG ) 2036 || pCurrentScreen == SCREEN_BRANCHLESS_NPC_DIALOG )
2037 { 2037 {
2038 if (pParty->TorchlightActive()) 2038 if (pParty->TorchlightActive())
2039 { 2039 {
2040 IconFrame* icon = pIconsFrameTable->GetFrame((signed __int16)pUIAnum_Torchlight->uIconID, pEventTimer->Time()); 2040 IconFrame* icon = pIconsFrameTable->GetFrame((signed __int16)pUIAnum_Torchlight->uIconID, pEventTimer->Time());
2041 pRenderer->DrawTextureTransparent(pUIAnum_Torchlight->x, pUIAnum_Torchlight->y, pIcons_LOD->GetTexture(icon->uTextureID)); 2041 pRenderer->DrawTextureIndexedAlpha(pUIAnum_Torchlight->x, pUIAnum_Torchlight->y, pIcons_LOD->GetTexture(icon->uTextureID));
2042 } 2042 }
2043 if (pParty->WizardEyeActive()) 2043 if (pParty->WizardEyeActive())
2044 { 2044 {
2045 IconFrame* icon = pIconsFrameTable->GetFrame((signed __int16)pUIAnim_WizardEye->uIconID, pEventTimer->Time()); 2045 IconFrame* icon = pIconsFrameTable->GetFrame((signed __int16)pUIAnim_WizardEye->uIconID, pEventTimer->Time());
2046 pRenderer->DrawTextureTransparent(pUIAnim_WizardEye->x, pUIAnim_WizardEye->y, pIcons_LOD->GetTexture(icon->uTextureID)); 2046 pRenderer->DrawTextureIndexedAlpha(pUIAnim_WizardEye->x, pUIAnim_WizardEye->y, pIcons_LOD->GetTexture(icon->uTextureID));
2047 } 2047 }
2048 } 2048 }
2049 } 2049 }
2050 // 4E28F8: using guessed type int pCurrentScreen; 2050 // 4E28F8: using guessed type int pCurrentScreen;
2051 2051
2103 { 2103 {
2104 if ( !_stricmp("spell96", pIconsFrameTable->pIcons[v13].pAnimationName) ) 2104 if ( !_stricmp("spell96", pIconsFrameTable->pIcons[v13].pAnimationName) )
2105 break; 2105 break;
2106 } 2106 }
2107 } 2107 }
2108 pRenderer->DrawTextureTransparent(pHiredNPCsIconsOffsetsX[pNPC_limit_ID], pHiredNPCsIconsOffsetsY[pNPC_limit_ID], 2108 pRenderer->DrawTextureIndexedAlpha(pHiredNPCsIconsOffsetsX[pNPC_limit_ID], pHiredNPCsIconsOffsetsY[pNPC_limit_ID],
2109 &pIcons_LOD->pTextures[pIconsFrameTable->GetFrame(v13, uFrameID)->uTextureID]); 2109 &pIcons_LOD->pTextures[pIconsFrameTable->GetFrame(v13, uFrameID)->uTextureID]);
2110 } 2110 }
2111 } 2111 }
2112 ++pNPC_limit_ID; 2112 ++pNPC_limit_ID;
2113 } 2113 }