// // TextAlertPopup::init from 0x14029dc30 to 0x14029df85 (853 bytes) // // 2 xrefs: // > TextAlertPopup::create @ 0x14029dbc0 // > @ 0x1406d1ebc // // 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 // // Hidden C++ exception states: #wind=2 char __fastcall TextAlertPopup::init(cocos2d::CCNode *a1, const char *a2, float a3, float a4, int a5, void **a6) { const char *v9; // rdx const char *v10; // rcx struct cocos2d::CCLabelBMFont *v11; // rax struct cocos2d::CCFadeIn *v12; // rsi struct cocos2d::CCDelayTime *v13; // rdi struct cocos2d::CCFadeOut *v14; // rbx __int64 v15; // rax struct cocos2d::CCSequence *v16; // rax cocos2d::ccColor3B *v17; // r8 float v18; // xmm0_4 __int64 v19; // rcx struct cocos2d::CCRect *v20; // rax CCLightFlash *v21; // rsi CCLightFlash_vtbl *v22; // rbx const cocos2d::CCSize *v23; // rax struct cocos2d::CCFadeTo *v24; // rdi struct cocos2d::CCDelayTime *v25; // rbx struct cocos2d::CCFadeTo *v26; // rax struct cocos2d::CCSequence *v27; // rax cocos2d::ccColor3B *v28; // r8 cocos2d::CCDirector *v29; // rax cocos2d::CCNode_vtbl *v30; // rbx const cocos2d::CCPoint *v31; // rax float v32; // [rsp+20h] [rbp-A8h] float v33; // [rsp+30h] [rbp-98h] cocos2d::CCSize v34; // [rsp+38h] [rbp-90h] BYREF cocos2d::CCRect v35; // [rsp+40h] [rbp-88h] BYREF const char *v36; // [rsp+50h] [rbp-78h] void **v37; // [rsp+58h] [rbp-70h] v36 = a2; v37 = a6; if ( cocos2d::CCNode::init(a1) ) { a1->setContentSize(a1, &stru_1406C1F20); if ( !a6[2] ) sub_14003CCE0(a6, &qword_14052A4D8, 0xBu); v9 = (const char *)a6; if ( (unsigned __int64)a6[3] > 0xF ) v9 = (const char *)*a6; v10 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v10 = *(const char **)a2; v11 = cocos2d::CCLabelBMFont::create(v10, v9); *(_QWORD *)&a1[1].m_uID = v11; ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v11->setScale_0)(v11); a1->addChild_0(a1, *(cocos2d::CCNode **)&a1[1].m_uID, 2); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1[1].m_uID + 368LL) + 40LL))( *(_QWORD *)&a1[1].m_uID + 368LL, 0); v12 = cocos2d::CCFadeIn::create(0.1); v13 = cocos2d::CCDelayTime::create(a3); v14 = cocos2d::CCFadeOut::create(0.2); v15 = cocos2d::CCCallFunc::create(a1, sub_14003BE70); v16 = cocos2d::CCSequence::create(v12, v13, v14, v15); cocos2d::CCNode::runAction(*(CCLightFlash **)&a1[1].m_uID, (cocos2d::CCPoint)v16, v17, a4, 0.0); v18 = a4 * *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 304LL))(*(_QWORD *)&a1[1].m_uID); *(float *)&a1[1].__vftable = v18; *((float *)&a1[1].__vftable + 1) = a4 * *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1[1].m_uID + 304LL))(*(_QWORD *)&a1[1].m_uID) + 4); if ( a5 > 0 ) { cocos2d::CCRect::CCRect(&v35, 0.0, 0.0, 40.0, 40.0); v21 = (CCLightFlash *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v20); ((void (__fastcall *)(cocos2d::CCArray **, cocos2d::ccColor3B *))v21->m_lightStripArray->__vftable)( &v21->m_lightStripArray, &stru_140529AD4); v22 = v21->__vftable; cocos2d::CCSize::CCSize( &v34, (float)(*(float *)&a1[1].__vftable + 20.0) + (float)(*(float *)&a1[1].__vftable + 20.0), (float)(*((float *)&a1[1].__vftable + 1) + 10.0) + (float)(*((float *)&a1[1].__vftable + 1) + 10.0)); v22->setContentSize(v21, v23); ((void (__fastcall *)(CCLightFlash *))v21->setScale_0)(v21); a1->addChild_0(a1, v21, -1); (*(void (__fastcall **)(cocos2d::CCArray **, _QWORD))&v21->m_lightStripArray->m_unknown2)( &v21->m_lightStripArray, 0); v24 = cocos2d::CCFadeTo::create(0.1, a5); v25 = cocos2d::CCDelayTime::create(a3); v18 = 0.2; v26 = cocos2d::CCFadeTo::create(0.2, 0); v27 = cocos2d::CCSequence::create(v24, v25, v26, 0); cocos2d::CCNode::runAction(v21, (cocos2d::CCPoint)v27, v28, 40.0, v32); } v29 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19); cocos2d::CCDirector::getWinSize(v29); v30 = a1->__vftable; cocos2d::CCPoint::CCPoint(v18, v33 * 0.5); v30->setPosition_0(a1, v31); sub_14003A830((__int64)a2); sub_14003A830((__int64)a6); return 1; } else { sub_14003A830((__int64)a2); sub_14003A830((__int64)a6); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source