diff GUI/UI/Books/QuestBook.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/QuestBook.cpp	Sat Mar 05 01:51:54 2016 +0200
+++ b/GUI/UI/Books/QuestBook.cpp	Sat Mar 05 16:25:53 2016 +0200
@@ -72,7 +72,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_Questbook_Draw();
 
 // ----- (00413126) --------------------------------------------------------
@@ -81,7 +81,7 @@
     int pTextHeight; // eax@19
     GUIWindow questbook_window; // [sp+Ch] [bp-54h]@9
 
-    pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pTexture_CurrentBook);
+    pRenderer->DrawTextureTransparentColorKey(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pTexture_CurrentBook);
     if (BtnUp_flag || !books_primary_item_per_page)//Bookmark Up(Закладка вверх)
         pRenderer->DrawTextureIndexedAlpha(pViewport->uViewportTL_X + 407, pViewport->uViewportTL_Y + 2, pTex_book_button1_off);
     else