Mercurial > mm7
comparison GUI/UI/UIQuickReference.cpp @ 2575:a76d408c5132 tip
DrawTranslucent -> DrawTextureGrayShade
Removed old texture drawing stuff
author | a.parshin |
---|---|
date | Wed, 09 Mar 2016 01:39:52 +0200 |
parents | dd36326a9994 |
children |
comparison
equal
deleted
inserted
replaced
2574:dd36326a9994 | 2575:a76d408c5132 |
---|---|
10 #include "GUI/UI/UIQuickReference.h" | 10 #include "GUI/UI/UIQuickReference.h" |
11 #include "GUI/UI/UICharacter.h" | 11 #include "GUI/UI/UICharacter.h" |
12 | 12 |
13 #include "Media/Audio/AudioPlayer.h" | 13 #include "Media/Audio/AudioPlayer.h" |
14 | 14 |
15 | |
16 Image *ui_game_quickref_background = nullptr; | |
17 | |
15 GUIWindow_QuickReference::GUIWindow_QuickReference() : | 18 GUIWindow_QuickReference::GUIWindow_QuickReference() : |
16 GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 5, 0) | 19 GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 5, 0) |
17 { | 20 { |
18 // 004304E7 Game_EventLoop --- part | 21 // 004304E7 Game_EventLoop --- part |
19 pEventTimer->Pause(); | 22 pEventTimer->Pause(); |
20 pAudioPlayer->StopChannels(-1, -1); | 23 pAudioPlayer->StopChannels(-1, -1); |
21 current_screen_type = SCREEN_QUICK_REFERENCE; | 24 current_screen_type = SCREEN_QUICK_REFERENCE; |
22 | 25 |
23 //paperdoll_dbrds[2] = assets->GetImage_16BitAlpha(L"BUTTEXI1"); | 26 //paperdoll_dbrds[2] = assets->GetImage_16BitAlpha(L"BUTTEXI1"); |
27 | |
28 if (!ui_game_quickref_background) | |
29 ui_game_quickref_background = assets->GetImage_16BitColorKey("quikref", 0x7FF); | |
24 | 30 |
25 pBtn_ExitCancel = CreateButton( | 31 pBtn_ExitCancel = CreateButton( |
26 0x187u, 0x13Cu, 0x4Bu, 0x21u, 1, 0, UIMSG_Escape, 0, 0, | 32 0x187u, 0x13Cu, 0x4Bu, 0x21u, 1, 0, UIMSG_Escape, 0, 0, |
27 pGlobalTXT_LocalizationStrings[79],// "Exit" | 33 pGlobalTXT_LocalizationStrings[79],// "Exit" |
28 ui_buttdesc2, | 34 ui_buttdesc2, |
46 unsigned int pY; // edi@9 | 52 unsigned int pY; // edi@9 |
47 int pSkillsCount; // ecx@27 | 53 int pSkillsCount; // ecx@27 |
48 const char *pText; // eax@38 | 54 const char *pText; // eax@38 |
49 int pFontHeight; // [sp+18h] [bp-14h]@1 | 55 int pFontHeight; // [sp+18h] [bp-14h]@1 |
50 | 56 |
51 pRenderer->DrawTextureTransparentColorKey(8, 8, pIcons_LOD->LoadTexturePtr("quikref", TEXTURE_16BIT_PALETTE)); | 57 pRenderer->DrawTextureAlphaNew(8/640.0f, 8/480.0f, ui_game_quickref_background); |
58 | |
52 pFontHeight = LOBYTE(pFontArrus->uFontHeight) + 1; | 59 pFontHeight = LOBYTE(pFontArrus->uFontHeight) + 1; |
53 for (uint i = 0; i < 4; ++i) | 60 for (uint i = 0; i < 4; ++i) |
54 { | 61 { |
55 Player* player = &pParty->pPlayers[i]; | 62 Player* player = &pParty->pPlayers[i]; |
56 pX = 94 * i + 89; | 63 pX = 94 * i + 89; |