// // EditorUI::createDpadMoveMenu from 0x6f6e48 to 0x6f7408 (1472 bytes) // // 1 xrefs: // > EditorUI::createMoveMenu @ 0x6f7e62 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:40 +0000 // int __fastcall EditorUI::createDpadMoveMenu(EditorUI *this, cocos2d::CCArray *a2) { int v3; // r0 int v4; // r3 cocos2d::CCArray *v5; // r0 cocos2d::CCObject *v6; // r0 cocos2d::CCArray *v7; // r0 cocos2d::CCObject *v8; // r0 cocos2d::CCDirector *v9; // r0 cocos2d::CCDirector *v10; // r0 float v11; // r0 float v12; // s16 cocos2d::CCDirector *v13; // r0 float v14; // r0 float v15; // s17 float v16; // s18 float v17; // s26 float v18; // s21 float v19; // s27 float v20; // s24 int v21; // r7 int (__fastcall *v22)(int, _DWORD); // r8 GameManager *v23; // r0 GameManager *v24; // r0 int GameVariable; // r0 const char *v26; // r1 float v27; // s20 float v28; // s25 float v29; // s15 float v30; // s22 float v31; // s16 int v32; // r5 float v33; // s24 float v34; // s25 int v35; // r7 void (__fastcall *v36)(int, _DWORD (**)(EditorUI *__hidden, cocos2d::CCObject *)); // r10 float *v37; // r3 int v38; // r7 int v39; // r9 const char *v40; // r1 int v41; // r5 cocos2d::CCSprite *v42; // r8 cocos2d::CCObject *v43; // r6 float v44; // s18 _BYTE *v45; // r1 const char *v46; // r2 int v47; // r0 int v48; // r5 void (__fastcall *v49)(int, _DWORD (**)(EditorUI *__hidden, cocos2d::CCObject *)); // r6 int v50; // r5 cocos2d::CCMenu *v51; // r0 int v52; // r8 char **v53; // r6 const char *v54; // r1 ButtonSprite *v55; // r0 ButtonSprite *v56; // r10 cocos2d::CCObject *SpriteButton; // r9 char v58; // r1 void (__fastcall *v59)(ButtonSprite *, _BYTE *); // r2 char *v60; // r3 bool v61; // zf char v62; // r3 void (__fastcall *v63)(cocos2d::CCObject *, _BYTE *); // r10 int v64; // r1 int v65; // r3 signed int i; // r6 int v67; // r7 signed int v68; // r5 _DWORD *v69; // r11 void (__fastcall *v70)(_DWORD *, _BYTE *); // r10 void (__fastcall *v73)(cocos2d::CCObject *, _DWORD (**)(EditorUI *__hidden, cocos2d::CCObject *)); // [sp+2Ch] [bp-80h] float v74[2]; // [sp+30h] [bp-7Ch] BYREF float v75; // [sp+38h] [bp-74h] BYREF float v76; // [sp+3Ch] [bp-70h] _BYTE v77[8]; // [sp+40h] [bp-6Ch] BYREF _BYTE v78[8]; // [sp+48h] [bp-64h] BYREF _DWORD v79[2]; // [sp+50h] [bp-5Ch] BYREF _DWORD (*v80)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+58h] [bp-54h] BYREF int v81; // [sp+5Ch] [bp-50h] _DWORD v82[4]; // [sp+60h] [bp-4Ch] float v83[5]; // [sp+70h] [bp-3Ch] BYREF _BYTE v84[8]; // [sp+84h] [bp-28h] BYREF _BYTE v85[8]; // [sp+8Ch] [bp-20h] BYREF _BYTE v86[8]; // [sp+94h] [bp-18h] BYREF _BYTE v87[8]; // [sp+9Ch] [bp-10h] BYREF v3 = cocos2d::CCNode::create(this); v4 = *(_DWORD *)this; *((_DWORD *)this + 264) = v3; v5 = (cocos2d::CCArray *)(*(int (__fastcall **)(EditorUI *, int, int))(v4 + 232))(this, v3, 10); v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5); *((_DWORD *)this + 267) = v6; v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v6); v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *((_DWORD *)this + 268) = v8; v9 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); v11 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v10)); v12 = (float)(v11 + 96.0) + 0.0; v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v11)); v14 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v13)); v15 = v14 + (float)(*((float *)this + 158) * 0.5); sub_6F4ED0((cocos2d::CCDirector *)LODWORD(v14)); sub_6F4E24(v83); v16 = v83[0]; v17 = v83[3]; v18 = v83[4]; v19 = v83[1]; v20 = v83[2]; (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 264) + 80))(*((_DWORD *)this + 264), LODWORD(v83[0])); v21 = *((_DWORD *)this + 264); v22 = *(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, v12 * (float)(1.0 - v16), v15 * (float)(1.0 - v16)); v23 = (GameManager *)v22(v21, &v80); v24 = (GameManager *)GameManager::sharedState(v23); GameVariable = GameManager::getGameVariable(v24, "0247"); v27 = v18 + v17; v28 = (float)(v17 + v17) + (float)(v18 * 3.0); *((_BYTE *)this + 1064) = GameVariable; v29 = v12 + v19; if ( GameVariable ) { v30 = v12 + v19; v31 = (float)(v29 + (float)((float)(v17 * 3.0) + (float)(v18 * 4.0))) + v20; v29 = (float)(v31 + v28) + v20; } else { v31 = (float)(v29 + 99.0) + v20; v30 = (float)(v31 + v28) + v20; } v32 = 0; v33 = v20 * 0.5; v34 = v29 + 49.5; if ( !GameVariable ) v29 = v30; v74[0] = v31 - v33; v74[1] = v29 - v33; do { v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_vLine_001.png", v26); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 456))(v35, 50); v36 = *(void (__fastcall **)(int, _DWORD (**)(EditorUI *__hidden, cocos2d::CCObject *)))(*(_DWORD *)v35 + 92); v37 = &v74[v32++]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, *v37, v15); v36(v35, &v80); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 264) + 228))(*((_DWORD *)this + 264), v35); } while ( v32 != 2 ); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v75, 49.5, 40.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v34, v15); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v79, v75 + 3.0, v76 + 3.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v80, 10.0, 7.0); v38 = DpadMenu::create((int)v78, (int)v79, (int)&v80); v39 = v38 + 348; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v38 + 92))(v38, &unk_D2DBB0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 264) + 228))(*((_DWORD *)this + 264), v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, -1.0, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, 1.0, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v86, 0.0, 1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v87, 0.0, -1.0); v40 = nullptr; v82[0] = 0; v82[1] = 0; v82[2] = 1119092736; v82[3] = -1028390912; v41 = 0; do { v42 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_editorArrow_001.png", v40); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v42 + 80))(v42, 1062898014); v79[0] = EditorUI::moveObjectCall; v79[1] = 0; v43 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v42, 0, (int)this, (int)EditorUI::moveObjectCall, 0); (*(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(*(_DWORD *)v42 + 180))(v42, v82[v41]); cocos2d::CCSprite::setFlipX(v42, v41 == 1); cocos2d::CCSprite::setFlipY(v42, v41 == 2); (*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v38 + 228))(v38, v43); if ( v41 > 1 ) v44 = v76; else v44 = v75; v73 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD (**)(EditorUI *__hidden, cocos2d::CCObject *)))(*(_DWORD *)v43 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v77, v34, v15); v45 = &v84[8 * v41++]; cocos2d::CCPoint::operator*(v78, v45, v44 - 14.085); cocos2d::CCPoint::operator+(&v80, v77, v78); v73(v43, &v80); *(_DWORD *)(v39 + 4) = v43; v39 += 4; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 267), v43); } while ( v41 != 4 ); v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v46); *((_DWORD *)this + 269) = v47; v48 = v47; v49 = *(void (__fastcall **)(int, _DWORD (**)(EditorUI *__hidden, cocos2d::CCObject *)))(*(_DWORD *)v47 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, v34, v15 + 1.0); v49(v48, &v80); v50 = 0; v51 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 264) + 232))( *((_DWORD *)this + 264), *((_DWORD *)this + 269), 1); v52 = cocos2d::CCMenu::create(v51); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v52 + 92))(v52, &unk_D2DBB0); v53 = &off_C749E8; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 264) + 228))(*((_DWORD *)this + 264), v52); do { v55 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)*v53, v54); v80 = EditorUI::onDpadStep; v81 = 0; v56 = v55; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, (const cocos2d::CCPoint *)&unk_D2DBB0); SpriteButton = (cocos2d::CCObject *)EditorUI::getSpriteButton( (int)this, v56, (int)v80, v81, v52, 1058222899, 4, (const cocos2d::CCPoint *)v78, v18 / 0.575); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)SpriteButton + 36))(SpriteButton, v50); (*(void (__fastcall **)(ButtonSprite *, _DWORD))(*(_DWORD *)v56 + 80))(v56, *((float *)v53 + 1) * 1.32); v59 = *(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_DWORD *)v56 + 480); v60 = v53[2]; if ( v60 == (_BYTE *)&dword_0 + 1 ) { v62 = 74; v58 = -30; } else { v61 = v60 == (_BYTE *)&dword_0 + 2; if ( v60 == (_BYTE *)&dword_0 + 2 ) { v62 = -36; v58 = -126; } else { v62 = -1; } if ( !v61 ) v58 = v62; } v78[1] = v58; v78[0] = -1; v78[2] = v62; v59(v56, v78); v53 += 5; v63 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)SpriteButton + 92); v64 = v50 % 3; v65 = v50 / -3; ++v50; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v78, (float)(v31 + (float)(v18 * 0.5)) + (float)((float)v64 * v27), v15 + (float)((float)(v65 + 1) * 28.0)); v63(SpriteButton, v78); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 268), SpriteButton); } while ( v50 != 9 ); for ( i = 0; i < cocos2d::CCArray::count(a2); ++i ) { v67 = i; v68 = i & 0x80000003; v69 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a2, i); (*(void (__fastcall **)(_DWORD *, int))(*v69 + 80))(v69, 1058222899); v69[79] = 1058222899; (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v52 + 228))(v52, v69); if ( i < 0 ) { v68 = (((_BYTE)v68 - 1) | 0xFFFFFFFC) + 1; v67 = i + 3; } v70 = *(void (__fastcall **)(_DWORD *, _BYTE *))(*v69 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v78, (float)(v30 + (float)(v18 * 0.5)) + (float)((float)v68 * v27), v15 + (float)((float)(1 - (v67 >> 2)) * 28.0)); v70(v69, v78); } return EditorUI::setDpadStep((int)this, *((_DWORD *)this + 265)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source