diff GUI/UI/Books/TownPortalBook.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 87e5590d034b
children dd36326a9994
line wrap: on
line diff
--- a/GUI/UI/Books/TownPortalBook.cpp	Sat Mar 05 01:51:54 2016 +0200
+++ b/GUI/UI/Books/TownPortalBook.cpp	Sat Mar 05 16:25:53 2016 +0200
@@ -53,7 +53,7 @@
 // ----- (00413CC6) --------------------------------------------------------
 // void BookUI_Draw(WindowType book) --- part
 // {
-    pRenderer->DrawTextureIndexed(471, 445, pIcons_LOD->GetTexture(uExitCancelTextureId));
+    pRenderer->DrawTextureAlphaNew(471/640.0f, 445/480.0f, ui_exit_cancel_button_background);
 //     BookUI_DrawTownPortalMap();
 
 // ----- (00411150) --------------------------------------------------------
@@ -65,7 +65,7 @@
 
     pRenderer->ClearZBuffer(0, 479);
     pRenderer->DrawTextureIndexedAlpha(8, 8, pTexture_CurrentBook);
-    pRenderer->DrawTextureIndexedAlpha(471, 445, pIcons_LOD->GetTexture(uExitCancelTextureId));
+    pRenderer->DrawTextureAlphaNew(471/640.0f, 445/480.0f, ui_exit_cancel_button_background);
 
     TownPortalWindow.uFrameX = game_viewport_x;
     TownPortalWindow.uFrameY = game_viewport_y;
@@ -100,7 +100,7 @@
     if (v3)
     {
         if (_449B57_test_bit(pParty->_quest_bits, fountain_bits_lut[v3 - 1]))
-            pRenderer->DrawTextureIndexed(pTownPortalBook_xs[v3 - 1], pTownPortalBook_ys[v3 - 1], pTexture_TownPortalIcons[v3 - 1]);
+            pRenderer->DrawTextureTransparentColorKey(pTownPortalBook_xs[v3 - 1], pTownPortalBook_ys[v3 - 1], pTexture_TownPortalIcons[v3 - 1]);
     }
     TownPortalWindow.DrawTitleText(pBook2Font, 0, 22, 0, pGlobalTXT_LocalizationStrings[10], 3);
 }
\ No newline at end of file