// // TextAlertPopup::init from 0x10029c160 to 0x10029c475 (789 bytes) // // 1 xrefs: // > TextAlertPopup::create @ 0x10029c06d // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:27:53 +0000 // char __fastcall TextAlertPopup::init(__int64 a1, __int64 a2, int a3, std::string *a4, float a5, float a6) { char result; // al unsigned int v10; // eax __int64 v11; // r12 std::string::pointer data; // r15 __int64 v13; // rax int v14; // r15d int v15; // r12d int v16; // r13d int v17; // eax int v18; // r9d __int64 v19; // rsi __int64 v20; // rdi __int64 v21; // rax __int64 v22; // r15 int v23; // r14d int v24; // eax int v25; // r8d int v26; // r9d __int64 v27; // rax __int64 v28; // rax float v29[2]; // [rsp+4h] [rbp-4Ch] BYREF float v30[4]; // [rsp+Ch] [rbp-44h] BYREF float v31; // [rsp+1Ch] [rbp-34h] float v32; // [rsp+20h] [rbp-30h] char v33; // [rsp+27h] [rbp-29h] v32 = a6; v31 = a5; result = cocos2d::CCNode::init(); if ( !result ) return result; v33 = result; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 320LL))(a1, &unk_100BE24D8); v10 = (unsigned int)a4->__r_.__value_.__l.0; if ( (v10 & 1) != 0 ) { if ( !a4->__r_.__value_.__l.__size_ ) goto LABEL_9; LABEL_6: if ( (*(_BYTE *)a2 & 1) != 0 ) goto LABEL_10; goto LABEL_7; } if ( v10 >> 1 ) goto LABEL_6; LABEL_9: std::string::assign(a4, "bigFont.fnt"); if ( (*(_BYTE *)a2 & 1) != 0 ) { LABEL_10: v11 = *(_QWORD *)(a2 + 16); if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_11; goto LABEL_8; } LABEL_7: v11 = a2 + 1; if ( (*(_BYTE *)&a4->__r_.__value_.__s.0 & 1) == 0 ) { LABEL_11: data = a4->__r_.__value_.__s.__data_; goto LABEL_12; } LABEL_8: data = a4->__r_.__value_.__l.__data_; LABEL_12: v13 = cocos2d::CCLabelBMFont::create_3(v11, data); *(_QWORD *)(a1 + 328) = v13; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, v32); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 328), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 328) + 1024LL))(*(_QWORD *)(a1 + 328), 0); v14 = cocos2d::CCFadeTo::create(255, 0.1); v15 = cocos2d::CCDelayTime::create(v31); v16 = cocos2d::CCFadeOut::create(0.2); v17 = cocos2d::CCCallFunc::create(a1, 537, 0); v19 = sub_10039EB60(v14, v15, v16, v17, 0, v18); cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 328), v19); *(float *)(a1 + 316) = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 328LL))(*(_QWORD *)(a1 + 328)) * v32; v20 = *(_QWORD *)(a1 + 328); *(float *)(a1 + 320) = v32 * *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 328LL))(v20) + 4); if ( a3 > 0 ) { sub_100278270((__int64)v30, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u); v21 = cocos2d::extension::CCScale9Sprite::create_2("square02b_small.png", v30); *(_QWORD *)(a1 + 336) = v21; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v21 + 960LL))(v21, &unk_100A073CC); v22 = *(_QWORD *)(a1 + 336); sub_100278260( v30, (float)(*(float *)(a1 + 316) + 20.0) + (float)(*(float *)(a1 + 316) + 20.0), (float)(*(float *)(a1 + 320) + 10.0) + (float)(*(float *)(a1 + 320) + 10.0)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v22 + 320LL))(v22, v30); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 336) + 160LL))(*(_QWORD *)(a1 + 336), 0.5); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 336), 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 336) + 912LL))(*(_QWORD *)(a1 + 336), 0); v23 = cocos2d::CCFadeTo::create((unsigned __int8)a3, 0.1); LODWORD(v22) = cocos2d::CCDelayTime::create(v31); v24 = cocos2d::CCFadeTo::create(0, 0.2); v27 = sub_10039EB60(v23, v22, v24, 0, v25, v26); v20 = *(_QWORD *)(a1 + 336); v19 = v27; cocos2d::CCNode::runAction(v20, v27); } v28 = cocos2d::CCDirector::sharedDirector(v20, v19); cocos2d::CCDirector::getWinSize(v30, v28); sub_100278250(v29, v30[0] * 0.5, 0.5 * v30[1]); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 184LL))(a1, v29); return v33; }
GD Web Decomp Icon

GD Web Decomp

Raw Source