Mercurial > mm7
comparison UI/UIPopup.cpp @ 1802:633f81bb3ae7
HWND -> class OSWindow
author | Nomad |
---|---|
date | Mon, 07 Oct 2013 11:52:33 +0200 |
parents | 421c29d4ab3e |
children | 303a56458f7b 211dfe2d8db1 |
comparison
equal
deleted
inserted
replaced
1760:a2ea57410b15 | 1802:633f81bb3ae7 |
---|---|
1282 dword_507B00_spell_info_to_draw_in_popup = 0; | 1282 dword_507B00_spell_info_to_draw_in_popup = 0; |
1283 } | 1283 } |
1284 // 507B00: using guessed type int dword_507B00_spell_info_to_draw_in_popup; | 1284 // 507B00: using guessed type int dword_507B00_spell_info_to_draw_in_popup; |
1285 | 1285 |
1286 //----- (00416D62) -------------------------------------------------------- | 1286 //----- (00416D62) -------------------------------------------------------- |
1287 void sub_416D62_ShowPopupWindow_MonsterRecord_ItemInfo_etcsub_416D62(Vec2_int_ *_this) | 1287 void UI_OnMouseRightClick(Vec2_int_ *_this) |
1288 { | 1288 { |
1289 int v5; // esi@62 | 1289 int v5; // esi@62 |
1290 GUIButton *pButton; // esi@84 | 1290 GUIButton *pButton; // esi@84 |
1291 char *pStr; // edi@85 | 1291 char *pStr; // edi@85 |
1292 char *pHint; // edx@113 | 1292 char *pHint; // edx@113 |
1307 pMouse->GetClickPos(&pX, &pY); | 1307 pMouse->GetClickPos(&pX, &pY); |
1308 } | 1308 } |
1309 if ( pRenderer->bWindowMode ) | 1309 if ( pRenderer->bWindowMode ) |
1310 { | 1310 { |
1311 GetCursorPos(&Point); | 1311 GetCursorPos(&Point); |
1312 ScreenToClient(hWnd, &Point); | 1312 ScreenToClient(window->GetApiHandle(), &Point); |
1313 if ( Point.x < 1 || Point.y < 1 || Point.x > 638 || Point.y > 478 ) | 1313 if ( Point.x < 1 || Point.y < 1 || Point.x > 638 || Point.y > 478 ) |
1314 { | 1314 { |
1315 back_to_game(); | 1315 back_to_game(); |
1316 return; | 1316 return; |
1317 } | 1317 } |