// // SetupShakePopup::init from 0x629cc8 to 0x62a2fe (1590 bytes) // // 1 xrefs: // > SetupShakePopup::create @ 0x62a500 // // 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:12 +0000 // int __fastcall SetupShakePopup::init(SetupShakePopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 const char *v5; // r2 int v6; // r5 void (__fastcall *v7)(int, _BYTE *); // r8 ButtonSprite *v8; // r0 int v9; // r0 int v10; // r5 const cocos2d::CCPoint *v11; // r9 void (__fastcall *v12)(int, _BYTE *); // r7 int v13; // r10 const char *v14; // r2 float v15; // s16 cocos2d::CCLabelBMFont *v16; // r0 int v17; // r9 int v18; // r7 char *v19; // r2 int *v20; // r5 void (__fastcall *v21)(int *, int); // r9 int v22; // r0 Slider *v23; // r7 int v24; // r0 float v25; // s15 int v26; // r0 float v27; // s16 int Thumb; // r0 char *v30; // [sp+8h] [bp-ACh] float v31; // [sp+10h] [bp-A4h] void (__fastcall *v32)(int, _BYTE *); // [sp+14h] [bp-A0h] void (__fastcall *v33)(int, _BYTE *); // [sp+14h] [bp-A0h] void (__fastcall *v34)(Slider *, _BYTE *); // [sp+18h] [bp-9Ch] int v35; // [sp+38h] [bp-7Ch] float v36; // [sp+3Ch] [bp-78h] BYREF float v37; // [sp+40h] [bp-74h] _BYTE v38[8]; // [sp+44h] [bp-70h] BYREF _BYTE v39[8]; // [sp+4Ch] [bp-68h] BYREF _BYTE v40[8]; // [sp+54h] [bp-60h] BYREF _BYTE v41[8]; // [sp+5Ch] [bp-58h] BYREF int v42; // [sp+64h] [bp-50h] int v43; // [sp+68h] [bp-4Ch] int (__fastcall *v44)(SetupShakePopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-48h] int v45; // [sp+70h] [bp-44h] int v46; // [sp+74h] [bp-40h] BYREF int v47; // [sp+78h] [bp-3Ch] cocos2d::CCLabelBMFont *v48; // [sp+7Ch] [bp-38h] int v49; // [sp+80h] [bp-34h] BYREF int v50; // [sp+84h] [bp-30h] int v51; // [sp+88h] [bp-2Ch] _BYTE v52[16]; // [sp+8Ch] [bp-28h] BYREF _BYTE v53[16]; // [sp+9Ch] [bp-18h] BYREF v31 = COERCE_FLOAT(SetupTriggerPopup::init(this, a2, a3, 300.0, 285.0, 1, 0.0)); if ( v31 != 0.0 ) { v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SetupShakePopup *))(*(_DWORD *)this + 680))(this); cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v36); v6 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup Shake", "bigFont.fnt", v5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v6); (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 80))(v6, 1056964608); v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v53, v36 * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v37 * 0.5)) - 14.0); v7(v6, v53); v8 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v31); v42 = 684; v43 = 1; v9 = CCMenuItemSpriteExtra::create((int)v8, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v9); v46 = 0; v47 = 0; v48 = nullptr; std::string::__init(&v46, "Help", 4u); v49 = 0; v50 = 0; v51 = 0; std::string::__init( &v49, "Shakes the screen for a set duration.\n" "Strength is how intense the shake is.\n" "Interval is how often the screen shakes. Leaving this at 0 means that every frame shakes.\n" "Avoid overusing this effect as it can cause bad gameplay.", 0xF7u); v10 = InfoAlertButton::create((char *)&v46, (int)&v49, 1065353216); std::string::~string((int)&v49); std::string::~string((int)&v46); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v10); v11 = *((const cocos2d::CCPoint **)this + 111); v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v52, (float)((float)(v36 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v37 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v53, v11); v13 = 0; v12(v10, v53); SetupTriggerPopup::createMultiTriggerItemsDefault(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v36 * 0.5, (float)(v37 * 0.5) + 95.0); while ( 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39); v46 = 0; v47 = 0; v48 = nullptr; if ( v13 ) { if ( v13 == 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 0.0, -60.0); cocos2d::CCPoint::operator+(v53, v38, v52); cocos2d::CCPoint::operator=(v39, v53); std::string::assign(&v46, "Interval: "); v15 = *((float *)this + 186); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 0.0, -120.0); cocos2d::CCPoint::operator+(v53, v38, v52); cocos2d::CCPoint::operator=(v39, v53); std::string::assign(&v46, "Duration: "); v15 = *((float *)this + 180); } } else { cocos2d::CCPoint::operator=(v39, v38); std::string::assign(&v46, "Strength: "); v15 = *((float *)this + 183); } if ( (v46 & 1) != 0 ) v16 = v48; else v16 = (cocos2d::CCLabelBMFont *)((char *)&v46 + 1); v17 = cocos2d::CCLabelBMFont::create(v16, "goldFont.fnt", v14); (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 80))(v17, 1060320051); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 92))(v17, v39); v32 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, 1.0, 0.5); v32(v17, v53); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v17); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v52, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v53, (const cocos2d::CCRect *)v52); v18 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v53); (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 456))(v18, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v40, 70.0, 30.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 160))(v18, v40); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v18, -1); v33 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 45.0, 0.0); cocos2d::CCPoint::operator+(v53, v39, v41); v33(v18, v53); if ( v15 == -99999.0 ) v19 = "Mixed"; else v19 = "Num"; v20 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, v19, "Thonburi", (const char *)&dword_18, "bigFont.fnt", v30); (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v20, 20); v21 = *(void (__fastcall **)(int *, int))(*v20 + 92); v22 = (*(int (__fastcall **)(int))(*(_DWORD *)v18 + 96))(v18); v21(v20, v22); CCTextInputNode::setMaxLabelScale((unsigned int)v20, 0.6); CCTextInputNode::setMaxLabelWidth((unsigned int)v20, 200.0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v20[104] + 172))(v20[104], 0); v20[106] = 4; v49 = 0; v50 = 0; v51 = 0; std::string::__init(&v49, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars((int)v20, (unsigned __int8 *)&v49); std::string::~string((int)&v49); LOWORD(v35) = -21896; BYTE2(v35) = -16; CCTextInputNode::setLabelPlaceholderColor((unsigned int)v20, v35); CCTextInputNode::setLabelPlaceholderScale((unsigned int)v20, 0.5); *((_BYTE *)v20 + 324) = 1; v20[105] = (int)this + 440; v44 = SetupShakePopup::sliderChanged; v45 = 0; v23 = (Slider *)Slider::create((int)this, (int)SetupShakePopup::sliderChanged, 0, 0.8); Slider::setBarVisibility(v23, 0); (*(void (__fastcall **)(_DWORD, Slider *))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v23); v34 = *(void (__fastcall **)(Slider *, _BYTE *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 0.0, -32.0); cocos2d::CCPoint::operator+(v53, v39, v41); v34(v23, v53); if ( v13 ) { if ( v13 != 1 ) { *((_DWORD *)this + 178) = v20; (*(void (__fastcall **)(int *, int))(*v20 + 36))(v20, 5); *((_DWORD *)this + 179) = v23; Thumb = Slider::getThumb(v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)Thumb + 36))(Thumb, 3); v27 = v15 * 0.5; goto LABEL_20; } *((_DWORD *)this + 184) = v20; (*(void (__fastcall **)(int *, int))(*v20 + 36))(v20, 8); *((_DWORD *)this + 185) = v23; v26 = Slider::getThumb(v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 36))(v26, 7); v25 = 0.1; } else { *((_DWORD *)this + 181) = v20; (*(void (__fastcall **)(int *, int))(*v20 + 36))(v20, 6); *((_DWORD *)this + 182) = v23; v24 = Slider::getThumb(v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)v24 + 36))(v24, 4); v25 = 5.0; } v27 = v15 / v25; LABEL_20: if ( v27 >= 1.0 ) { v27 = 1.0; } else if ( v27 <= 0.0 ) { v27 = 0.0; } Slider::setValue(v23, v27); ++v13; std::string::~string((int)&v46); if ( v13 == 3 ) { SetupShakePopup::updateShakeLabel(this, nullptr); SetupShakePopup::updateDurLabel(this, nullptr); SetupShakePopup::updateIntervalLabel(this, nullptr); *((_BYTE *)this + 568) = 0; return LODWORD(v31); } } } return LODWORD(v31); }
GD Web Decomp Icon

GD Web Decomp

Raw Source