// // SetLevelOrderPopup::init from 0x140431030 to 0x14043131c (748 bytes) // // 2 xrefs: // > LevelListLayer::cellPerformedAction @ 0x14042ebc5 // > @ 0x140926ca8 // // 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 11:32:15 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall SetLevelOrderPopup::init(__int64 a1, int a2, int a3, int a4) { char result; // al __int64 v7; // rcx __int64 v8; // rax struct cocos2d::CCSprite *v9; // rbx cocos2d::CCObject *v10; // rbx __int64 v11; // rax struct cocos2d::CCSprite *v12; // rbx cocos2d::CCObject *v13; // rbx __int64 v14; // rax __int128 *v15; // [rsp+68h] [rbp-29h] BYREF float v16[2]; // [rsp+70h] [rbp-21h] BYREF _BYTE v17[8]; // [rsp+78h] [rbp-19h] BYREF _QWORD v18[4]; // [rsp+80h] [rbp-11h] BYREF _BYTE v19[8]; // [rsp+A0h] [rbp+Fh] BYREF _BYTE v20[8]; // [rsp+A8h] [rbp+17h] BYREF __int128 v21; // [rsp+B0h] [rbp+1Fh] BYREF __int64 v22; // [rsp+C0h] [rbp+2Fh] __int64 v23; // [rsp+C8h] [rbp+37h] v15 = &v21; v21 = 0; v22 = 2; v23 = 15; strcpy((char *)&v21, "OK"); HIDWORD(v18[1]) = 0; v18[2] = 11; v18[3] = 15; strcpy((char *)v18, "Level Order"); result = SetIDPopup::init(a1, a3, 1, a4, v18, &v21, 0, 0, 0.0, 1, 1); if ( result ) { *(_DWORD *)(a1 + 704) = a2; v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v16[0] * 0.5, (float)(v16[1] * 0.5) + 5.0); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v17, v19); v9 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn2_001.png"); (**((void (__fastcall ***)(__int64, void *))v9 + 40))((__int64)v9 + 320, &unk_140703BB4); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 160LL))(v9); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 352LL))(v9); v10 = CCMenuItemSpriteExtra::create((int)v9, 0, a1, (__int64)SetLevelOrderPopup::onOrderButton); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v10); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v10 + 64LL))(v10, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, -85.0, 0.0); cocos2d::CCPoint::operator+(v17, &v15, v11); (*(void (__fastcall **)(cocos2d::CCObject *, __int128 **))(*(_QWORD *)v10 + 184LL))(v10, &v15); *((_DWORD *)v10 + 93) = 1068708659; v12 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn2_001.png"); (**((void (__fastcall ***)(__int64, void *))v12 + 40))((__int64)v12 + 320, &unk_140703BAC); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 352LL))(v12); v13 = CCMenuItemSpriteExtra::create((int)v12, 0, a1, (__int64)SetLevelOrderPopup::onOrderButton); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 64LL))(v13, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 85.0, 0.0); cocos2d::CCPoint::operator+(v17, &v15, v14); (*(void (__fastcall **)(cocos2d::CCObject *, __int128 **))(*(_QWORD *)v13 + 184LL))(v13, &v15); *((_DWORD *)v13 + 93) = 1068708659; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source