comparison UI/UiGame.cpp @ 2010:37f42cfc881d

m
author Ritor1
date Sun, 10 Nov 2013 21:13:29 +0600
parents 591024ad7269
children f39f27b08908
comparison
equal deleted inserted replaced
2008:591024ad7269 2010:37f42cfc881d
1400 { 1400 {
1401 for ( pButton = pWindow->pControlsHead; ; pButton = pButton->pNext ) 1401 for ( pButton = pWindow->pControlsHead; ; pButton = pButton->pNext )
1402 { 1402 {
1403 if ( !pButton ) 1403 if ( !pButton )
1404 break; 1404 break;
1405 if ( pButton->uButtonType == 1 ) 1405 if ( pButton->uButtonType == 1 )//for dialogue window
1406 { 1406 {
1407 if ( (signed int)pX >= (signed int)pButton->uX 1407 if ( (signed int)pX >= (signed int)pButton->uX
1408 && (signed int)pX <= (signed int)pButton->uZ 1408 && (signed int)pX <= (signed int)pButton->uZ
1409 && (signed int)pY >= (signed int)pButton->uY 1409 && (signed int)pY >= (signed int)pButton->uY
1410 && (signed int)pY <= (signed int)pButton->uW ) 1410 && (signed int)pY <= (signed int)pButton->uW )
1590 //{ 1590 //{
1591 pMessageType2 = (UIMessageType)pButton->field_1C; 1591 pMessageType2 = (UIMessageType)pButton->field_1C;
1592 if ( pMessageType2 != 0 ) 1592 if ( pMessageType2 != 0 )
1593 pMessageQueue_50CBD0->AddMessage(pMessageType2, pButton->msg_param, 0); 1593 pMessageQueue_50CBD0->AddMessage(pMessageType2, pButton->msg_param, 0);
1594 1594
1595 GameUI_SetFooterString(pButton->pButtonName); 1595 GameUI_SetFooterString(pButton->pButtonName); // for character name
1596 uLastPointedObjectID = 1; 1596 uLastPointedObjectID = 1;
1597 return; 1597 return;
1598 //} 1598 //}
1599 } 1599 }
1600 } 1600 }