diff Engine/SaveLoad.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/Engine/SaveLoad.cpp	Sat Mar 05 01:51:54 2016 +0200
+++ b/Engine/SaveLoad.cpp	Sat Mar 05 16:25:53 2016 +0200
@@ -24,6 +24,7 @@
 
 #include "GUI/GUIWindow.h"
 #include "GUI/GUIFont.h"
+#include "GUI/UI/UISaveLoad.h"
 
 #include "Media/Audio/AudioPlayer.h"
 
@@ -307,8 +308,8 @@
 
     if (current_screen_type == SCREEN_SAVEGAME)
     {
-        pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_loadsave));
-        pRenderer->DrawTextureIndexed(18, 141, pIcons_LOD->GetTexture(uTextureID_save_up));
+        pRenderer->DrawTextureAlphaNew(8/640.0f, 8/480.0f, img_loadsave);
+        pRenderer->DrawTextureAlphaNew(18/640.0f, 141/480.0f, img_loadsave);
         text_pos = pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[190]);
         pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, text_pos + 25, 219, 0, pGlobalTXT_LocalizationStrings[190], 0, 0, 0); //Сохранение
         text_pos = pFontSmallnum->AlignText_Center(186, pSavegameHeader[uLoadGameUI_SelectedSlot].pName);