Mercurial > mm7
diff 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 |
line wrap: on
line diff
--- a/GUI/UI/UIQuickReference.cpp Mon Mar 07 03:48:40 2016 +0200 +++ b/GUI/UI/UIQuickReference.cpp Wed Mar 09 01:39:52 2016 +0200 @@ -12,6 +12,9 @@ #include "Media/Audio/AudioPlayer.h" + +Image *ui_game_quickref_background = nullptr; + GUIWindow_QuickReference::GUIWindow_QuickReference() : GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 5, 0) { @@ -22,6 +25,9 @@ //paperdoll_dbrds[2] = assets->GetImage_16BitAlpha(L"BUTTEXI1"); + if (!ui_game_quickref_background) + ui_game_quickref_background = assets->GetImage_16BitColorKey("quikref", 0x7FF); + pBtn_ExitCancel = CreateButton( 0x187u, 0x13Cu, 0x4Bu, 0x21u, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79],// "Exit" @@ -48,7 +54,8 @@ const char *pText; // eax@38 int pFontHeight; // [sp+18h] [bp-14h]@1 - pRenderer->DrawTextureTransparentColorKey(8, 8, pIcons_LOD->LoadTexturePtr("quikref", TEXTURE_16BIT_PALETTE)); + pRenderer->DrawTextureAlphaNew(8/640.0f, 8/480.0f, ui_game_quickref_background); + pFontHeight = LOBYTE(pFontArrus->uFontHeight) + 1; for (uint i = 0; i < 4; ++i) {