Mercurial > mm7
comparison UI/UICharacter.cpp @ 2215:e9625ad08541
fog fix and change 640,480 - window->GetWidth(), window->GetHeight()
author | Ritor1 |
---|---|
date | Fri, 14 Feb 2014 18:08:30 +0600 |
parents | e18200fcfb50 |
children | aff7a7b072b7 |
comparison
equal
deleted
inserted
replaced
2214:20995bb8895a | 2215:e9625ad08541 |
---|---|
392 pAudioPlayer->StopChannels(-1, -1); | 392 pAudioPlayer->StopChannels(-1, -1); |
393 bRingsShownInCharScreen = false; | 393 bRingsShownInCharScreen = false; |
394 CharacterUI_LoadPaperdollTextures(); | 394 CharacterUI_LoadPaperdollTextures(); |
395 pCurrentScreen = _this; | 395 pCurrentScreen = _this; |
396 | 396 |
397 pWindow = GUIWindow::Create(0, 0, 640, 480, WINDOW_CharacterRecord, uActiveCharacter, 0); | 397 pWindow = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_CharacterRecord, uActiveCharacter, 0); |
398 pCharacterScreen_StatsBtn = pWindow->CreateButton(pViewport->uViewportTL_X + 12, pViewport->uViewportTL_Y + 308, | 398 pCharacterScreen_StatsBtn = pWindow->CreateButton(pViewport->uViewportTL_X + 12, pViewport->uViewportTL_Y + 308, |
399 pIcons_LOD->GetTexture(papredoll_dbrds[9])->uTextureWidth, | 399 pIcons_LOD->GetTexture(papredoll_dbrds[9])->uTextureWidth, |
400 pIcons_LOD->GetTexture(papredoll_dbrds[9])->uTextureHeight, | 400 pIcons_LOD->GetTexture(papredoll_dbrds[9])->uTextureHeight, |
401 1, 0, UIMSG_ClickStatsBtn, 0, 'S', pGlobalTXT_LocalizationStrings[216],// Stats | 401 1, 0, UIMSG_ClickStatsBtn, 0, 'S', pGlobalTXT_LocalizationStrings[216],// Stats |
402 pIcons_LOD->GetTexture(papredoll_dbrds[10]), | 402 pIcons_LOD->GetTexture(papredoll_dbrds[10]), |
423 pIcons_LOD->GetTexture(papredoll_dbrds[1])->uTextureWidth, | 423 pIcons_LOD->GetTexture(papredoll_dbrds[1])->uTextureWidth, |
424 pIcons_LOD->GetTexture(papredoll_dbrds[1])->uTextureHeight, | 424 pIcons_LOD->GetTexture(papredoll_dbrds[1])->uTextureHeight, |
425 1, 0, UIMSG_ClickExitCharacterWindowBtn, 0, 0, pGlobalTXT_LocalizationStrings[79],//Exit | 425 1, 0, UIMSG_ClickExitCharacterWindowBtn, 0, 0, pGlobalTXT_LocalizationStrings[79],//Exit |
426 pIcons_LOD->GetTexture(papredoll_dbrds[2]), | 426 pIcons_LOD->GetTexture(papredoll_dbrds[2]), |
427 pIcons_LOD->GetTexture(papredoll_dbrds[1]), 0); | 427 pIcons_LOD->GetTexture(papredoll_dbrds[1]), 0); |
428 pWindow->CreateButton(0, 0, 0x1DCu, 0x159u, 1, 122, UIMSG_InventoryLeftClick, 0, 0, "", 0); | 428 pWindow->CreateButton(0, 0, 476, 345, 1, 122, UIMSG_InventoryLeftClick, 0, 0, "", 0); |
429 pCharacterScreen_DetalizBtn = pWindow->CreateButton(0x258u, 0x12Cu, 30, 30, 1, 0, UIMSG_ChangeDetaliz, 0, 0, pGlobalTXT_LocalizationStrings[64], 0); | 429 pCharacterScreen_DetalizBtn = pWindow->CreateButton(600, 300, 30, 30, 1, 0, UIMSG_ChangeDetaliz, 0, 0, pGlobalTXT_LocalizationStrings[64], 0); |
430 pCharacterScreen_DollBtn = pWindow->CreateButton(0x1DCu, 0, 0xA4u, 0x159u, 1, 0, UIMSG_ClickPaperdoll, 0, 0, "", 0); | 430 pCharacterScreen_DollBtn = pWindow->CreateButton(476, 0, 164, 345, 1, 0, UIMSG_ClickPaperdoll, 0, 0, "", 0); |
431 | 431 |
432 pWindow->CreateButton( 61, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 1, '1', "", 0); | 432 pWindow->CreateButton( 61, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 1, '1', "", 0); |
433 pWindow->CreateButton(177, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 2, '2', "", 0); | 433 pWindow->CreateButton(177, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 2, '2', "", 0); |
434 pWindow->CreateButton(292, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 3, '3', "", 0); | 434 pWindow->CreateButton(292, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 3, '3', "", 0); |
435 pWindow->CreateButton(407, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 4, '4', "", 0); | 435 pWindow->CreateButton(407, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 4, '4', "", 0); |
447 pEventTimer->Pause(); | 447 pEventTimer->Pause(); |
448 pAudioPlayer->StopChannels(-1, -1); | 448 pAudioPlayer->StopChannels(-1, -1); |
449 bRingsShownInCharScreen = 0; | 449 bRingsShownInCharScreen = 0; |
450 CharacterUI_LoadPaperdollTextures(); | 450 CharacterUI_LoadPaperdollTextures(); |
451 pCurrentScreen = SCREEN_CASTING; | 451 pCurrentScreen = SCREEN_CASTING; |
452 CS_inventory_window = GUIWindow::Create(0, 0, 640, 480, WINDOW_CastSpell_InInventory, (int)this, 0); | 452 CS_inventory_window = GUIWindow::Create(0, 0, window->GetWidth(), window->GetHeight(), WINDOW_CastSpell_InInventory, (int)this, 0); |
453 pCharacterScreen_ExitBtn = CS_inventory_window->CreateButton(394, 318, 75, 33, 1, 0, UIMSG_ClickExitCharacterWindowBtn, 0, 0, | 453 pCharacterScreen_ExitBtn = CS_inventory_window->CreateButton(394, 318, 75, 33, 1, 0, UIMSG_ClickExitCharacterWindowBtn, 0, 0, |
454 pGlobalTXT_LocalizationStrings[79], // Close | 454 pGlobalTXT_LocalizationStrings[79], // Close |
455 pIcons_LOD->GetTexture(papredoll_dbrds[2]), | 455 pIcons_LOD->GetTexture(papredoll_dbrds[2]), |
456 pIcons_LOD->GetTexture(papredoll_dbrds[1]), 0); | 456 pIcons_LOD->GetTexture(papredoll_dbrds[1]), 0); |
457 CS_inventory_window->CreateButton(0, 0, 0x1DCu, 0x159u, 1, 122, UIMSG_InventoryLeftClick, 0, 0, "", 0); | 457 CS_inventory_window->CreateButton(0, 0, 0x1DCu, 0x159u, 1, 122, UIMSG_InventoryLeftClick, 0, 0, "", 0); |