Mercurial > mm7
comparison mm7_1.cpp @ 14:0ea5768a2f0d
GameUI_WritePointedObjectStatusString() run
author | Ritor1 |
---|---|
date | Wed, 16 Jan 2013 23:48:55 +0600 |
parents | 66319a734368 |
children | fe0d9a98213f |
comparison
equal
deleted
inserted
replaced
13:c941f63cdbfc | 14:0ea5768a2f0d |
---|---|
5005 char *v28; // esi@82 | 5005 char *v28; // esi@82 |
5006 int v29; // eax@82 | 5006 int v29; // eax@82 |
5007 signed int v30; // ecx@88 | 5007 signed int v30; // ecx@88 |
5008 const char *v31; // eax@91 | 5008 const char *v31; // eax@91 |
5009 __int16 v32; // fps@109 | 5009 __int16 v32; // fps@109 |
5010 unsigned __int8 v33; // c0@109 | 5010 //unsigned __int8 v33; // c0@109 |
5011 unsigned __int8 v34; // c3@109 | 5011 //unsigned __int8 v34; // c3@109 |
5012 enum UIMessageType pMessageType2; // esi@110 | 5012 enum UIMessageType pMessageType2; // esi@110 |
5013 int v36; // edx@111 | 5013 int v36; // edx@111 |
5014 enum UIMessageType pMessageType3; // edx@117 | 5014 enum UIMessageType pMessageType3; // edx@117 |
5015 int v38; // ecx@118 | 5015 int v38; // ecx@118 |
5016 const char *v39; // [sp-8h] [bp-E8h]@20 | 5016 const char *v39; // [sp-8h] [bp-E8h]@20 |
5023 | 5023 |
5024 v13 = nullptr; | 5024 v13 = nullptr; |
5025 | 5025 |
5026 pMouse->uPointingObjectID = 0; | 5026 pMouse->uPointingObjectID = 0; |
5027 pMouse->GetClickPos(&pX, &pY); | 5027 pMouse->GetClickPos(&pX, &pY); |
5028 if ( pX || (signed int)pX > 639 || pY || (signed int)pY > 479 )//( (pX & 0x80000000u) != 0 || (signed int)pX > 639 || (pY & 0x80000000u) != 0 || (signed int)pY > 479 ) | 5028 if ( pX < 0 || (signed int)pX > 639 || pY < 0 || (signed int)pY > 479 )//( (pX & 0x80000000u) != 0 || (signed int)pX > 639 || (pY & 0x80000000u) != 0 || (signed int)pY > 479 ) |
5029 return; | 5029 return; |
5030 if ( !pCurrentScreen ) | 5030 if ( !pCurrentScreen ) |
5031 { | 5031 { |
5032 if ( (signed int)pX > 467 || (signed int)pY > 351 ) | 5032 if ( (signed int)pX > 467 || (signed int)pY > 351 ) |
5033 goto _click_on_game_ui; | 5033 goto _click_on_game_ui; |
5444 if ( (double)(signed int)pButton->uWidth != 0.0 ) | 5444 if ( (double)(signed int)pButton->uWidth != 0.0 ) |
5445 { | 5445 { |
5446 if ( (double)(signed int)pButton->uHeight != 0.0 ) | 5446 if ( (double)(signed int)pButton->uHeight != 0.0 ) |
5447 { | 5447 { |
5448 //UNDEF(v32); | 5448 //UNDEF(v32); |
5449 if ( v33 | v34 ) | 5449 //if ( v33 | v34 ) |
5450 { | 5450 //{ |
5451 pMessageType2 = (UIMessageType)pButton->field_1C; | 5451 pMessageType2 = (UIMessageType)pButton->field_1C; |
5452 if ( pMessageType2 != 0 ) | 5452 if ( pMessageType2 != 0 ) |
5453 { | 5453 { |
5454 v36 = pButton->uControlParam; | 5454 v36 = pButton->uControlParam; |
5455 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) | 5455 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) |
5468 //goto LABEL_28; | 5468 //goto LABEL_28; |
5469 v13 = pButton->pButtonName; | 5469 v13 = pButton->pButtonName; |
5470 sub_41C0B8_set_status_string(v13); | 5470 sub_41C0B8_set_status_string(v13); |
5471 uLastPointedObjectID = 1; | 5471 uLastPointedObjectID = 1; |
5472 return; | 5472 return; |
5473 } | 5473 //} |
5474 } | 5474 } |
5475 } | 5475 } |
5476 } | 5476 } |
5477 else | 5477 else |
5478 { | 5478 { |
5572 if ( (double)(signed int)pButton->uWidth != 0.0 ) | 5572 if ( (double)(signed int)pButton->uWidth != 0.0 ) |
5573 { | 5573 { |
5574 if ( (double)(signed int)pButton->uHeight != 0.0 ) | 5574 if ( (double)(signed int)pButton->uHeight != 0.0 ) |
5575 { | 5575 { |
5576 //UNDEF(v8); | 5576 //UNDEF(v8); |
5577 if ( v9 | v10 ) | 5577 //if ( v9 | v10 ) |
5578 //goto LABEL_24; | 5578 //goto LABEL_24; |
5579 { | 5579 //{ |
5580 pMessageType1 = (UIMessageType)pButton->field_1C; | 5580 pMessageType1 = (UIMessageType)pButton->field_1C; |
5581 if ( pMessageType1 ) | 5581 if ( pMessageType1 ) |
5582 { | 5582 { |
5583 v12 = pButton->uControlParam; | 5583 v12 = pButton->uControlParam; |
5584 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) | 5584 if ( (signed int)pMessageQueue_50CBD0->uNumMessages < 40 ) |
5591 } | 5591 } |
5592 v13 = pButton->pButtonName; | 5592 v13 = pButton->pButtonName; |
5593 sub_41C0B8_set_status_string(v13); | 5593 sub_41C0B8_set_status_string(v13); |
5594 uLastPointedObjectID = 1; | 5594 uLastPointedObjectID = 1; |
5595 return; | 5595 return; |
5596 } | 5596 //} |
5597 } | 5597 } |
5598 } | 5598 } |
5599 } | 5599 } |
5600 else // click on skill | 5600 else // click on skill |
5601 { | 5601 { |