// // EditorUI::createDpadMoveMenu from 0xbe07f4 to 0xbe10ac (2232 bytes) // // 2 xrefs: // > EditorUI::createMoveMenu @ 0xbe1880 // > @ 0x86d88 // // 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:03:46 +0000 // __int64 __fastcall EditorUI::createDpadMoveMenu(EditorUI *this, cocos2d::CCArray *a2) { __int64 v4; // x0 cocos2d::CCArray *v5; // x0 cocos2d::CCObject *v6; // x0 cocos2d::CCArray *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v12; // s0 float v13; // s12 cocos2d::CCDirector *v14; // x0 cocos2d::CCDirector *ScreenBottom; // x0 float v16; // s0 float v17; // s8 float v18; // s0 float v19; // s11 float v20; // s10 float v21; // s9 _BYTE *v22; // d3 __int64 v23; // x25 __int64 (__fastcall *v24)(__int64, __int64 *); // x21 GameManager *v25; // x0 float v26; // s11 float v27; // s13 GameManager *v28; // x0 char GameVariable; // w0 const char *v30; // x1 float v31; // s12 float v32; // s15 float v33; // s10 float v34; // s0 float v35; // s14 __int64 v36; // x25 char *v37; // x22 __int64 v38; // x23 float v39; // s0 void (__fastcall *v40)(__int64, __int64 *); // x26 __int64 v41; // x21 cocos2d::CCObject *v42; // x23 const char *v43; // x1 cocos2d::CCSprite *v44; // x25 float v45; // s13 __int64 v46; // x25 signed int v47; // w27 __int64 v48; // x23 cocos2d::CCSprite **v49; // x28 void (__fastcall *v50)(__int64, __int64 *); // x26 cocos2d::CCMenu *v51; // x0 __int64 v52; // x23 const char *v53; // x1 cocos2d::CCSprite *v54; // x0 ButtonSprite *v55; // x26 float *SpriteButton; // x22 void (__fastcall *v57)(ButtonSprite *, __int64 *); // x21 int v58; // w0 void (__fastcall *v59)(float *, __int64 *); // x26 int v60; // w3 int v61; // w1 signed int i; // w21 _DWORD *v63; // x22 int v64; // w1 int v65; // w2 void (__fastcall *v66)(_DWORD *, __int64 *); // x25 cocos2d::CCSprite *v68; // [xsp+A0h] [xbp+A0h] _DWORD *v69; // [xsp+A8h] [xbp+A8h] _BYTE *v70; // [xsp+B0h] [xbp+B0h] float v71; // [xsp+C0h] [xbp+C0h] void (__fastcall *v72)(cocos2d::CCObject *, __int64 *); // [xsp+C0h] [xbp+C0h] float v73[2]; // [xsp+D8h] [xbp+D8h] float v74; // [xsp+E0h] [xbp+E0h] BYREF float v75; // [xsp+E4h] [xbp+E4h] _BYTE v76[8]; // [xsp+E8h] [xbp+E8h] BYREF _BYTE v77[8]; // [xsp+F0h] [xbp+F0h] BYREF __int64 v78; // [xsp+F8h] [xbp+F8h] BYREF _DWORD v79[4]; // [xsp+100h] [xbp+100h] BYREF float v80[6]; // [xsp+110h] [xbp+110h] BYREF _BYTE v81[8]; // [xsp+128h] [xbp+128h] BYREF __int64 v82; // [xsp+130h] [xbp+130h] BYREF __int64 v83; // [xsp+138h] [xbp+138h] BYREF __int64 v84; // [xsp+140h] [xbp+140h] BYREF v4 = cocos2d::CCNode::create(_stack_chk_guard); *((_QWORD *)this + 199) = v4; v5 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(EditorUI *, __int64, __int64))(*(_QWORD *)this + 464LL))( this, v4, 10); v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5); *((_QWORD *)this + 201) = v6; v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v6); v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *((_QWORD *)this + 202) = v8; v9 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v10); v13 = (float)(v12 + 96.0) + 0.0; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); ScreenBottom = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenBottom(v14); v17 = v16 + (float)(*((float *)this + 214) * 0.5); v18 = sub_BDDAD0(ScreenBottom); sub_BDDA04(v80, v18); v19 = v80[0]; v20 = v80[3]; v21 = v80[4]; *(float *)&v22 = v80[1]; v70 = v22; v71 = v80[2]; (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 199) + 160LL))(*((_QWORD *)this + 199), v80[0]); v23 = *((_QWORD *)this + 199); v24 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (float)(1.0 - v19) * v13, v17 * (float)(1.0 - v19)); v25 = (GameManager *)v24(v23, &v78); v26 = v21 + v20; v27 = (float)(v20 + v20) + (float)(v21 * 3.0); v28 = (GameManager *)GameManager::sharedState(v25); GameVariable = GameManager::getGameVariable(v28, "0247"); *((_BYTE *)this + 1604) = GameVariable; if ( GameVariable ) { v31 = v13 + *(float *)&v70; v32 = 49.5; v33 = (float)(v31 + (float)((float)(v21 * 4.0) + (float)(v20 * 3.0))) + v71; v34 = (float)(v33 + v27) + v71; v35 = v34 + 49.5; } else { v32 = 49.5; v35 = (float)(v13 + *(float *)&v70) + 49.5; v33 = (float)((float)(v13 + *(float *)&v70) + 99.0) + v71; v34 = (float)(v33 + v27) + v71; v31 = v34; } v36 = 0; v37 = "edit_vLine_001.png"; v73[0] = v33 - (float)(v71 * 0.5); v73[1] = v34 - (float)(v71 * 0.5); do { v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_vLine_001.png", v30); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 912LL))(v38, 50); v39 = v73[v36++]; v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, v39, v17); v40(v38, &v78); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 199) + 456LL))(*((_QWORD *)this + 199), v38); } while ( v36 != 2 ); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v74, 49.5, 40.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v35, v17); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v77, v74 + 3.0, v75 + 3.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v78, 10.0, 7.0); v41 = operator new(0x200u); memset((void *)v41, 0, 0x200u); cocos2d::CCLayerRGBA::CCLayerRGBA((cocos2d::CCLayerRGBA *)v41); *(_QWORD *)(v41 + 432) = 0; *(_BYTE *)(v41 + 448) = 0; v42 = (cocos2d::CCObject *)(v41 + 488); *(_DWORD *)(v41 + 440) = 0; *(_DWORD *)(v41 + 444) = 0; *(_QWORD *)v41 = &off_14E2A30; *(_QWORD *)(v41 + 320) = off_14E2F40; *(_QWORD *)(v41 + 328) = &off_14E2FB0; *(_QWORD *)(v41 + 336) = off_14E2FC8; *(_QWORD *)(v41 + 344) = off_14E2FE8; *(_QWORD *)(v41 + 352) = off_14E3010; *(_QWORD *)(v41 + 408) = &off_14E3040; *(_QWORD *)(v41 + 456) = 0; *(_QWORD *)(v41 + 464) = 0; *(_QWORD *)(v41 + 472) = 0; *(_QWORD *)(v41 + 480) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v41 + 488)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v41 + 496)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v41 + 504)); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v41 + 80LL))(v41) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v41 + 16LL))(v41); __break(0x3E8u); goto LABEL_19; } v70 = v81; v37 = nullptr; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v41); v69 = v79; cocos2d::CCPoint::operator=(v41 + 488, v76); cocos2d::CCSize::operator=(v41 + 496, v77); cocos2d::CCSize::operator=(v41 + 504, &v78); CCMenuExtra::enableRepeatPress((CCMenuExtra *)v41); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v41 + 184LL))(v41, &unk_155EAB0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 199) + 456LL))(*((_QWORD *)this + 199), v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, -1.0, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, 1.0, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 0.0, 1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, 0.0, -1.0); v68 = (cocos2d::CCSprite *)"GJ_editorArrow_001.png"; v32 = 0.85366; v79[2] = 1119092736; v79[0] = 0; v79[1] = 0; v79[3] = -1028390912; do { v44 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v68, v43); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v44 + 160LL))(v44, v32); v42 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v44, 0, (__int64)this, (__int64)EditorUI::moveObjectCall, 0); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v44 + 360LL))(v44, *(float *)&v69[(_QWORD)v37]); cocos2d::CCSprite::setFlipX(v44, (_DWORD)v37 == 1); cocos2d::CCSprite::setFlipY(v44, (_DWORD)v37 == 2); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v41 + 456LL))(v41, v42); if ( (unsigned __int64)v37 <= 1 ) LABEL_19: v45 = v74 - 14.085; else v45 = v75 - 14.085; v46 = 8LL * (_QWORD)v37++; v72 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v42 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v35, v17); cocos2d::CCPoint::operator*(&v70[v46], v45); cocos2d::CCPoint::operator+(&v78, v76); v72(v42, &v78); *(_QWORD *)(v41 + v46 + 456) = v42; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 201), v42); } while ( v37 != byte_4 ); v47 = 0; v48 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", (const char *)&dword_155E000); *((_QWORD *)this + 203) = v48; v49 = (cocos2d::CCSprite **)&off_13FAFA0; v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, v35, v17 + 1.0); v50(v48, &v78); v51 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 199) + 464LL))( *((_QWORD *)this + 199), *((_QWORD *)this + 203), 1); v52 = cocos2d::CCMenu::create(v51); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v52 + 184LL))(v52, &unk_155EAB0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 199) + 456LL))(*((_QWORD *)this + 199), v52); do { v54 = *v49; v49 += 4; v55 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v54, v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (const cocos2d::CCPoint *)&unk_155EAB0); SpriteButton = EditorUI::getSpriteButton( (__int64)this, v55, (__int64)EditorUI::onDpadStep, 0, v52, 4, (const cocos2d::CCPoint *)&v78, 0.575, v21 / 0.575); (*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)SpriteButton + 72LL))(SpriteButton, (unsigned int)v47); (*(void (__fastcall **)(ButtonSprite *, float))(*(_QWORD *)v55 + 160LL))(v55, *((float *)v49 - 6) * 1.32); v57 = *(void (__fastcall **)(ButtonSprite *, __int64 *))(*(_QWORD *)v55 + 960LL); v58 = sub_BDDBD0(*((_DWORD *)v49 - 5)); LOWORD(v78) = v58; BYTE2(v78) = BYTE2(v58); v57(v55, &v78); v59 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)SpriteButton + 184LL); v60 = v47 / -3 + 1; v61 = v47 % 3; ++v47; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v78, (float)((float)(v21 * 0.5) + v33) + (float)((float)v61 * v26), v17 + (float)((float)v60 * 28.0)); v59(SpriteButton, &v78); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 202), (cocos2d::CCObject *)SpriteButton); } while ( v47 != 9 ); for ( i = 0; i < (int)cocos2d::CCArray::count(a2); ++i ) { v63 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a2, i); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v63 + 160LL))(v63, 0.575); v63[101] = 1058222899; (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v52 + 456LL))(v52, v63); v64 = i + 3; if ( i >= 0 ) v64 = i; v65 = i % 4; v66 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v63 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v78, (float)((float)(v21 * 0.5) + v31) + (float)((float)v65 * v26), v17 + (float)((float)(1 - (v64 >> 2)) * 28.0)); v66(v63, &v78); } EditorUI::setDpadStep((__int64)this, *((_DWORD *)this + 400)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source