// // SetLevelOrderPopup::init from 0xbaa49c to 0xbaa81c (896 bytes) // // 2 xrefs: // > SetLevelOrderPopup::create @ 0xbaa998 // > @ 0x8ae80 // // This function is hookable on this platform (idp: arm, 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 13:02:51 +0000 // __int64 __fastcall SetLevelOrderPopup::init(SetLevelOrderPopup *this, int a2, int a3, int a4) { unsigned int v8; // w22 unsigned int v9; // w21 cocos2d::CCDirector *v10; // x0 cocos2d::CCDirector *v11; // x0 const char *v12; // x1 __int64 v13; // x22 __int64 v14; // x22 void (__fastcall *v15)(__int64, __int64 *); // x28 const char *v16; // x1 __int64 v17; // x22 __int64 v18; // x22 void (__fastcall *v19)(__int64, __int64 *); // x20 char *v21; // [xsp+0h] [xbp-10h] __int64 v22; // [xsp+A0h] [xbp+90h] BYREF _BYTE v23[8]; // [xsp+A8h] [xbp+98h] BYREF __int64 v24; // [xsp+B0h] [xbp+A0h] BYREF _BYTE v25[8]; // [xsp+B8h] [xbp+A8h] BYREF __int64 v26; // [xsp+C0h] [xbp+B0h] BYREF cocos2d::CCDirector *v27[2]; // [xsp+C8h] [xbp+B8h] BYREF void *v28; // [xsp+D8h] [xbp+C8h] __int64 v29[2]; // [xsp+E0h] [xbp+D0h] BYREF void *v30; // [xsp+F0h] [xbp+E0h] v27[0] = nullptr; v27[1] = nullptr; v28 = nullptr; std::string::__init((__int64 *)v27, "Level Order", 0xBu); v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "OK", 2u); LOBYTE(v21) = (unsigned __int8)&dword_0 + 1; v8 = (unsigned __int8)SetIDPopup::init( (__int64)this, a3, 1, a4, (__int64)v27, (__int64)v29, 0, 0, 0.0, v21, (char)&dword_0 + 1); v9 = v8; if ( (v29[0] & 1) != 0 ) operator delete(v30); v10 = (cocos2d::CCDirector *)LOBYTE(v27[0]); if ( ((__int64)v27[0] & 1) != 0 ) operator delete(v28); if ( v8 ) { *((_DWORD *)this + 176) = a2; v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(&v22, v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, *(float *)&v22 * 0.5, (float)(*((float *)&v22 + 1) * 0.5) + 5.0); cocos2d::CCNode::convertToNodeSpace(&v24, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v23); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn2_001.png", v12); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v13 + 960LL))(v13, &unk_11963E8); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 1.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 360LL))(v13, 90.0); v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, (__int64)SetLevelOrderPopup::onOrderButton, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v14); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 72LL))(v14, 0); v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, -85.0, 0.0); cocos2d::CCPoint::operator+(&v26, &v24); v15(v14, &v26); CCMenuItemSpriteExtra::setSizeMult(v14, 1.4); v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn2_001.png", v16); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v17 + 960LL))(v17, &unk_11963F0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 1.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 360LL))(v17, 90.0); v18 = CCMenuItemSpriteExtra::create(v17, 0, (__int64)this, (__int64)SetLevelOrderPopup::onOrderButton, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 72LL))(v18, 1); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 85.0, 0.0); cocos2d::CCPoint::operator+(&v26, &v24); v19(v18, &v26); CCMenuItemSpriteExtra::setSizeMult(v18, 1.4); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source