comparison 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
comparison
equal deleted inserted replaced
2572:d87bfbd3bb3b 2573:0c67be4ec900
22 #include "Engine/Objects/SpriteObject.h" 22 #include "Engine/Objects/SpriteObject.h"
23 #include "Engine/Serialization/LegacyImages.h" 23 #include "Engine/Serialization/LegacyImages.h"
24 24
25 #include "GUI/GUIWindow.h" 25 #include "GUI/GUIWindow.h"
26 #include "GUI/GUIFont.h" 26 #include "GUI/GUIFont.h"
27 #include "GUI/UI/UISaveLoad.h"
27 28
28 #include "Media/Audio/AudioPlayer.h" 29 #include "Media/Audio/AudioPlayer.h"
29 30
30 #include "MMT.h" 31 #include "MMT.h"
31 32
305 pRenderer->PackScreenshot(150, 112, uncompressed_buff, 1000000, &pLodDirectory.uDataSize);//создание скриншота 306 pRenderer->PackScreenshot(150, 112, uncompressed_buff, 1000000, &pLodDirectory.uDataSize);//создание скриншота
306 strcpy(pLodDirectory.pFilename, "image.pcx"); 307 strcpy(pLodDirectory.pFilename, "image.pcx");
307 308
308 if (current_screen_type == SCREEN_SAVEGAME) 309 if (current_screen_type == SCREEN_SAVEGAME)
309 { 310 {
310 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_loadsave)); 311 pRenderer->DrawTextureAlphaNew(8/640.0f, 8/480.0f, img_loadsave);
311 pRenderer->DrawTextureIndexed(18, 141, pIcons_LOD->GetTexture(uTextureID_save_up)); 312 pRenderer->DrawTextureAlphaNew(18/640.0f, 141/480.0f, img_loadsave);
312 text_pos = pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[190]); 313 text_pos = pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[190]);
313 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, text_pos + 25, 219, 0, pGlobalTXT_LocalizationStrings[190], 0, 0, 0); //Сохранение 314 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, text_pos + 25, 219, 0, pGlobalTXT_LocalizationStrings[190], 0, 0, 0); //Сохранение
314 text_pos = pFontSmallnum->AlignText_Center(186, pSavegameHeader[uLoadGameUI_SelectedSlot].pName); 315 text_pos = pFontSmallnum->AlignText_Center(186, pSavegameHeader[uLoadGameUI_SelectedSlot].pName);
315 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, text_pos + 25, 259, 0, pSavegameHeader[uLoadGameUI_SelectedSlot].pName, 185, 0); 316 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, text_pos + 25, 259, 0, pSavegameHeader[uLoadGameUI_SelectedSlot].pName, 185, 0);
316 text_pos = pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[165]); 317 text_pos = pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[165]);