// // TextAlertPopup::setAlertPosition from 0x1002e0590 to 0x1002e0644 (180 bytes) // // 1 xrefs: // > EditorUI::keyDown @ 0x1003fa588 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall TextAlertPopup::setAlertPosition(TextAlertPopup *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3) { float *v3; // x1 float *v4; // x2 float *v5; // x20 float *v6; // x21 cocos2d::CCDirector *v8; // x0 __n128 v9; // q0 __n128 v10; // q1 _DWORD v11[4]; // [xsp+0h] [xbp-30h] BYREF if ( a1->m_label ) { v5 = v4; v6 = v3; v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v8); v9.n128_f64[0] = (float)(*v6 * *(float *)&v11[2]) + a1->m_width * 0.5 + *v5; v9.n128_f32[0] = v9.n128_f64[0]; v10.n128_f64[0] = (float)(v6[1] * *(float *)&v11[3]) + a1->m_height * 0.5 + v5[1]; v10.n128_f32[0] = v10.n128_f64[0]; sub_100022980(v9, v10, v11); ((void (__fastcall *)(TextAlertPopup *, _DWORD *))a1->setPosition)(a1, v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source