// // SetupAnimationPopup::init from 0x624690 to 0x624e1a (1930 bytes) // // 1 xrefs: // > SetupAnimationPopup::create @ 0x625020 // // 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:55:08 +0000 // int __fastcall SetupAnimationPopup::init(SetupAnimationPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 const char *v5; // r2 int v6; // r5 void (__fastcall *v7)(int, _DWORD *); // r9 ButtonSprite *v8; // r0 int v9; // r0 char *v10; // r6 const char *v11; // r8 int v12; // r3 char *v13; // r2 cocos2d::CCString *v14; // r0 char *CString; // r0 int v16; // r11 const char *v17; // r8 int v18; // r3 char *v19; // r2 cocos2d::CCString *v20; // r0 char *v21; // r0 int v22; // r11 const char *v23; // r8 int v24; // r3 char *v25; // r2 cocos2d::CCString *v26; // r0 char *v27; // r0 int v28; // r11 size_t v29; // r0 int v30; // r6 const cocos2d::CCPoint *v31; // r10 void (__fastcall *v32)(int, _DWORD *); // r8 int v33; // r7 float v34; // s15 const char *v35; // r2 int v36; // r8 void (__fastcall *v37)(int, _DWORD *); // r10 int v38; // r8 void (__fastcall *v39)(int, _DWORD *); // r2 void (__fastcall *v40)(int, _DWORD *); // r9 int *v41; // r0 int v42; // r9 const char *v43; // r1 int v44; // r8 int v45; // r8 void (__fastcall *v46)(int, _DWORD *); // r11 const char *v47; // r1 int v48; // r6 int v49; // r6 void (__fastcall *v50)(int, _BYTE *); // r8 char *v52; // [sp+8h] [bp-B4h] int v53; // [sp+10h] [bp-ACh] int v54; // [sp+20h] [bp-9Ch] int v55; // [sp+2Ch] [bp-90h] float v56; // [sp+30h] [bp-8Ch] BYREF float v57; // [sp+34h] [bp-88h] _BYTE v58[8]; // [sp+38h] [bp-84h] BYREF _BYTE v59[8]; // [sp+40h] [bp-7Ch] BYREF _BYTE v60[8]; // [sp+48h] [bp-74h] BYREF _BYTE v61[8]; // [sp+50h] [bp-6Ch] BYREF int v62; // [sp+58h] [bp-64h] int v63; // [sp+5Ch] [bp-60h] _DWORD v64[2]; // [sp+60h] [bp-5Ch] BYREF int v65[2]; // [sp+68h] [bp-54h] BYREF char *v66; // [sp+70h] [bp-4Ch] int v67[3]; // [sp+74h] [bp-48h] BYREF int v68[3]; // [sp+80h] [bp-3Ch] BYREF int v69[3]; // [sp+8Ch] [bp-30h] BYREF int v70; // [sp+98h] [bp-24h] BYREF int v71; // [sp+9Ch] [bp-20h] char *v72; // [sp+A0h] [bp-1Ch] _DWORD v73[4]; // [sp+A4h] [bp-18h] BYREF v54 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0); if ( v54 ) { v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SetupAnimationPopup *))(*(_DWORD *)this + 680))(this); cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v56); v6 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup Animation", "goldFont.fnt", v5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v6); (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 80))(v6, 1060320051); v7 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v73, v56 * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v57 * 0.5)) - 18.0); v7(v6, v73); v8 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, *(float *)&v53); v62 = 684; v63 = 1; v9 = CCMenuItemSpriteExtra::create((int)v8, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v9); v65[0] = 0; v65[1] = 0; v66 = nullptr; std::string::__init( v65, "Animates certain objects. Can also be used to activate animate on trigger objects.\n" "The Animation ID specifies the animation:", 0x8Cu); std::string::append(v65, "\nBig Beast: "); v10 = (char *)&v70; v11 = nullptr; do { AnimatedGameObject::animationForID((AnimatedGameObject *)&v70, (int)v11, 918); if ( (v70 & 1) != 0 ) v12 = v71; else v12 = (int)(unsigned __int8)v70 >> 1; if ( v12 ) { if ( v11 ) std::string::append(v65, ", "); if ( (v70 & 1) != 0 ) v13 = v72; else v13 = (char *)&v70 + 1; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i: %s", v11, v13); CString = (char *)cocos2d::CCString::getCString(v14); std::string::append(v65, CString); ++v11; v16 = 1; } else { v16 = 0; } std::string::~string((int)&v70); } while ( v16 ); std::string::append(v65, "\n\nBat: "); v17 = nullptr; do { AnimatedGameObject::animationForID((AnimatedGameObject *)&v70, (int)v17, 1584); if ( (v70 & 1) != 0 ) v18 = v71; else v18 = (int)(unsigned __int8)v70 >> 1; if ( v18 ) { if ( v17 ) std::string::append(v65, ", "); if ( (v70 & 1) != 0 ) v19 = v72; else v19 = (char *)&v70 + 1; v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i: %s", v17, v19); v21 = (char *)cocos2d::CCString::getCString(v20); std::string::append(v65, v21); ++v17; v22 = 1; } else { v22 = 0; } std::string::~string((int)&v70); } while ( v22 ); std::string::append(v65, "\n\nSpikeball: "); v23 = nullptr; do { AnimatedGameObject::animationForID((AnimatedGameObject *)&v70, (int)v23, 2012); if ( (v70 & 1) != 0 ) v24 = v71; else v24 = (int)(unsigned __int8)v70 >> 1; if ( v24 ) { if ( v23 ) std::string::append(v65, ", "); if ( (v70 & 1) != 0 ) v25 = v72; else v25 = (char *)&v70 + 1; v26 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i: %s", v23, v25); v27 = (char *)cocos2d::CCString::getCString(v26); std::string::append(v65, v27); ++v23; v28 = 1; } else { v28 = 0; } std::string::~string((int)&v70); } while ( v28 ); memset(v67, 0, sizeof(v67)); std::string::__init(v67, "Help", 4u); if ( (v65[0] & 1) == 0 ) v10 = (char *)v65 + 1; v68[0] = 0; if ( (v65[0] & 1) != 0 ) v10 = v66; v68[1] = 0; v68[2] = 0; v29 = strlen(v10); std::string::__init(v68, v10, v29); v30 = InfoAlertButton::create((char *)v67, (int)v68, 1065353216); std::string::~string((int)v68); std::string::~string((int)v67); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v30); v31 = *((const cocos2d::CCPoint **)this + 111); v32 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v64, (float)((float)(v56 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v57 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v73, v31); v32(v30, v73); memset(v69, 0, sizeof(v69)); std::string::__init(v69, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, v56 * 0.5, (float)(v57 * 0.5) + 40.0); v33 = IDNameInput::create((int)this, (int)this + 440, 1, 0, (int)v69, (int)v73, 1.0, 6, 0, 0, 0); std::string::~string((int)v69); if ( v33 ) v33 = *(_DWORD *)(v33 + 300); v34 = v56; *((_DWORD *)this + 178) = v33; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v34 * 0.5, (float)(v57 * 0.5) - 25.0); v36 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Animation ID", "goldFont.fnt", v35); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v36); (*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 80))(v36, 1059481190); v37 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, 0.0, 30.0); cocos2d::CCPoint::operator+(v73, v58, v64); v37(v36, v73); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v73, 0.0, 0.0, 40.0, 40.0); v38 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v73); (*(void (__fastcall **)(int, int))(*(_DWORD *)v38 + 456))(v38, 100); v39 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v38 + 480); LOWORD(v73[0]) = 0; BYTE2(v73[0]) = 0; v39(v38, v73); v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v38 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, 50.0, 30.0); v40(v38, v73); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v38, -1); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v38 + 92))(v38, v58); v41 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, "Num", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v52); *((_DWORD *)this + 179) = v41; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v41, 20); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 179) + 92))(*((_DWORD *)this + 179), v58); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 179), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 179), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 179) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 179) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 179) + 424) = 6; v42 = *((_DWORD *)this + 179); v70 = 0; v71 = 0; v72 = nullptr; std::string::__init(&v70, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v42, (unsigned __int8 *)&v70); std::string::~string((int)&v70); LOWORD(v55) = -21896; BYTE2(v55) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 179), v55); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 179), 0.5); *(_DWORD *)(*((_DWORD *)this + 179) + 420) = (char *)this + 440; *(_BYTE *)(*((_DWORD *)this + 179) + 324) = 1; (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 179) + 36))(*((_DWORD *)this + 179)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v59, *((const cocos2d::CCPoint **)this + 111)); v44 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v43); (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 80))(v44, 1066192077); v64[0] = SetupAnimationPopup::onAnimationIDArrow; v64[1] = 0; v45 = CCMenuItemSpriteExtra::create(v44, 0, (int)this, (int)SetupAnimationPopup::onAnimationIDArrow, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v45); (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 36))(v45, 1); v46 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v45 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, -50.0, 0.0); cocos2d::CCPoint::operator+(v73, v59, v61); v46(v45, v73); CCMenuItemSpriteExtra::setSizeMult(v45, 2.0); v48 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v47); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 80))(v48, 1066192077); v73[0] = SetupAnimationPopup::onAnimationIDArrow; v73[1] = 0; v49 = CCMenuItemSpriteExtra::create(v48, 0, (int)this, (int)SetupAnimationPopup::onAnimationIDArrow, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v49); (*(void (__fastcall **)(int, int))(*(_DWORD *)v49 + 36))(v49, 2); v50 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v49 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, 50.0, 0.0); cocos2d::CCPoint::operator+(v61, v59, v60); v50(v49, v61); CCMenuItemSpriteExtra::setSizeMult(v49, 2.0); SetupAnimationPopup::updateTextInputLabel(this); SetupAnimationPopup::updateAnimationTextInputLabel(this); SetupTriggerPopup::createMultiTriggerItemsDefault(this); *((_BYTE *)this + 568) = 0; std::string::~string((int)v65); } return v54; }
GD Web Decomp Icon

GD Web Decomp

Raw Source