Mercurial > mm7
comparison GUI/UI/UIPartyCreation.cpp @ 2527:8f12e6a1fcc2
Party creation arrow fix
author | a.parshin |
---|---|
date | Mon, 13 Oct 2014 14:58:54 +0300 |
parents | 4cc81f981afb |
children | 2baaac65d5bf |
comparison
equal
deleted
inserted
replaced
2526:b1c516bf1102 | 2527:8f12e6a1fcc2 |
---|---|
425 pTexture_PlayerFaceMask = pIcons_LOD->LoadTexturePtr("FACEMASK", TEXTURE_16BIT_PALETTE); | 425 pTexture_PlayerFaceMask = pIcons_LOD->LoadTexturePtr("FACEMASK", TEXTURE_16BIT_PALETTE); |
426 pTexture_buttminu = pIcons_LOD->LoadTexturePtr("buttminu", TEXTURE_16BIT_PALETTE); | 426 pTexture_buttminu = pIcons_LOD->LoadTexturePtr("buttminu", TEXTURE_16BIT_PALETTE); |
427 pTexture_buttplus = pIcons_LOD->LoadTexturePtr("buttplus", TEXTURE_16BIT_PALETTE); | 427 pTexture_buttplus = pIcons_LOD->LoadTexturePtr("buttplus", TEXTURE_16BIT_PALETTE); |
428 pTexture_pressrigh = pIcons_LOD->LoadTexturePtr("presrigh", TEXTURE_16BIT_PALETTE); | 428 pTexture_pressrigh = pIcons_LOD->LoadTexturePtr("presrigh", TEXTURE_16BIT_PALETTE); |
429 pTexture_presleft = pIcons_LOD->LoadTexturePtr("presleft", TEXTURE_16BIT_PALETTE); | 429 pTexture_presleft = pIcons_LOD->LoadTexturePtr("presleft", TEXTURE_16BIT_PALETTE); |
430 uControlParam = 0; | 430 |
431 do | 431 for (int i = 0; i < 20; ++i) |
432 { | 432 { |
433 sprintf(pTmpBuf.data(), "arrowl%d", uControlParam); | 433 sprintf(pTmpBuf.data(), "arrowl%d", i + 1); |
434 pTextures_arrowl[uControlParam] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); | 434 pTextures_arrowl[i] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); |
435 | 435 |
436 sprintf(pTmpBuf.data(), "arrowr%d", uControlParam); | 436 sprintf(pTmpBuf.data(), "arrowr%d", i + 1); |
437 pTextures_arrowr[uControlParam] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); | 437 pTextures_arrowr[i] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); |
438 } | 438 } |
439 while ( ++uControlParam < 20 ); | 439 |
440 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_MainMenu, 0, 0); | 440 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_MainMenu, 0, 0); |
441 uControlParam = 0; | 441 uControlParam = 0; |
442 uX = 8; | 442 uX = 8; |
443 do | 443 do |
444 { | 444 { |