Mercurial > might-and-magic-trilogy
changeset 62:1520e3385fed
Party creation ui: clouds animation speed fix (bound to time, not framerate)
author | Nomad |
---|---|
date | Fri, 26 Oct 2012 03:34:54 +0200 |
parents | 05e4b4bd4d64 |
children | 427b6c3b4e0f |
files | mm7_4.cpp |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_4.cpp Fri Oct 26 03:27:59 2012 +0200 +++ b/mm7_4.cpp Fri Oct 26 03:34:54 2012 +0200 @@ -5404,11 +5404,14 @@ uColorWhite = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); pRenderer->BeginScene(); pRenderer->DrawTextureRGB(0, 0, &pTexture_PCX); + + uPlayerCreationUI_SkySliderPos = (GetTickCount() % 12800) / 20; pRenderer->DrawTextureIndexed(uPlayerCreationUI_SkySliderPos, 2, pTexture_MAKESKY); - pRenderer->DrawTextureIndexed(uPlayerCreationUI_SkySliderPos++ - 640, 2, pTexture_MAKESKY); - if ( (signed int)uPlayerCreationUI_SkySliderPos > 640 ) - uPlayerCreationUI_SkySliderPos = 0; + pRenderer->DrawTextureIndexed(uPlayerCreationUI_SkySliderPos - 640, 2, pTexture_MAKESKY); + //if (uPlayerCreationUI_SkySliderPos > 640) + //uPlayerCreationUI_SkySliderPos = 0; pRenderer->DrawTextureTransparent(0, 0, pTexture_MAKETOP); + uTitleText = pGlobalTXT_LocalizationStrings[51]; uPlayerCreationUI_SelectedCharacter = (pGUIWindow_CurrentMenu->pCurrentPosActiveItem - pGUIWindow_CurrentMenu->pStartingPosActiveItem) / 7; v2 = pFontCChar->AlignText_Center(640, pGlobalTXT_LocalizationStrings[51]);