Mercurial > mm7
changeset 2280:a5926b36a1b4
pMMT_MainMenu_BtnExit coordinates
author | Ritor1 |
---|---|
date | Fri, 14 Mar 2014 22:41:35 +0600 |
parents | a01d3cf9ff83 |
children | d8b4a36f54a4 |
files | mm7_2.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_2.cpp Fri Mar 14 22:26:52 2014 +0600 +++ b/mm7_2.cpp Fri Mar 14 22:41:35 2014 +0600 @@ -2386,7 +2386,7 @@ pMMT_MainMenu_BtnMM7 = pWindow_MMT_MainMenu->CreateButton(window->GetWidth() - (window->GetWidth() / 4), window->GetHeight() / 4, MMT_MM7->uTextureWidth, MMT_MM7->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_MM7, 1, 0, "", MMT_MM7, 0); pMMT_MainMenu_BtnMM8 = pWindow_MMT_MainMenu->CreateButton(window->GetWidth() - (window->GetWidth() / 4), window->GetHeight() - ((window->GetHeight() / 4) + 50), MMT_MM8->uTextureWidth, MMT_MM8->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_MM8, 2, 0, "", MMT_MM8, 0); pMMT_MainMenu_BtnContinue = pWindow_MMT_MainMenu->CreateButton((window->GetWidth() / 4) - 100, window->GetHeight() - ((window->GetHeight() / 4) + 50), MMT_Continue->uTextureWidth, MMT_Continue->uTextureHeight, 1, 0, UIMSG_MMT_MainMenu_Continue, 3, 0, "", MMT_Continue, 0); - pMMT_MainMenu_BtnExit = pWindow_MMT_MainMenu->CreateButton(495, 437, MMT_Exit->uTextureWidth, MMT_Exit->uTextureHeight, 1, 0, UIMSG_ExitToWindows, 4, 0, "", MMT_Exit, 0); + pMMT_MainMenu_BtnExit = pWindow_MMT_MainMenu->CreateButton(window->GetWidth() - 130, window->GetHeight() - 35, MMT_Exit->uTextureWidth, MMT_Exit->uTextureHeight, 1, 0, UIMSG_ExitToWindows, 4, 0, "", MMT_Exit, 0); pTexture_PCX.Release(); //pTexture_PCX.Load("MMTTITLE.pcx", 0); @@ -2455,8 +2455,8 @@ break; case 4: pTexture = MMT_Exit; - pX = 495; - pY = 437; + pX = window->GetWidth() - 130; + pY = window->GetHeight() - 35; break; } pRenderer->DrawTextureIndexed(pX, pY, pTexture); //подсветка кнопок