diff GUI/UI/Books/LloydsBook.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
line wrap: on
line diff
--- a/GUI/UI/Books/LloydsBook.cpp	Sat Mar 05 01:51:54 2016 +0200
+++ b/GUI/UI/Books/LloydsBook.cpp	Sat Mar 05 16:25:53 2016 +0200
@@ -65,7 +65,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);
 //     DrawLloydBeaconsScreen();
 
 // ----- (00410DEC) --------------------------------------------------------
@@ -85,7 +85,7 @@
     int uNumMaxBeacons; // [sp+84h] [bp-4h]@6
 
     pPlayer = &pParty->pPlayers[_506348_current_lloyd_playerid];
-    pRenderer->DrawTextureIndexed(8, 8, pTexture_LloydBeacons[(unsigned __int8)bRecallingBeacon]);
+    pRenderer->DrawTextureTransparentColorKey(8, 8, pTexture_LloydBeacons[(unsigned __int8)bRecallingBeacon]);
     pText = pGlobalTXT_LocalizationStrings[523];     // Recall Beacon
     pWindow.uFrameX = game_viewport_x;
     pWindow.uFrameY = game_viewport_y;