// // SetupOpacityPopup::init from 0xa412ac to 0xa41b0c (2144 bytes) // // 2 xrefs: // > SetupOpacityPopup::create @ 0xa41d68 // > @ 0x1025e0 // // 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 12:59:56 +0000 // __int64 __fastcall SetupOpacityPopup::init(SetupOpacityPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 const char *v9; // x6 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x26 void (__fastcall *v13)(__int64, __int64 *); // x28 __int64 v14; // x25 __int64 v15; // x1 const char *v16; // x2 __int64 v17; // x28 __int64 v18; // x23 const char *v19; // x4 char *v20; // x0 __int64 v21; // x0 __int64 v22; // x0 __int64 v23; // x1 void (__fastcall *v24)(cocos2d::CCNode *, __int64); // x23 __int64 v25; // x0 __int64 v26; // x23 __int64 v27; // x0 __int64 v28; // x23 void (__fastcall *v29)(__int64, __int64 *); // x28 float v30; // s0 __int64 Thumb; // x0 const char *v32; // x2 __int64 v33; // x0 __int64 v34; // x23 void (__fastcall *v35)(__int64, __int64 *); // x26 __int64 v36; // x0 __int64 v37; // x22 void (__fastcall *v38)(__int64, __int64 *); // x23 __int64 v39; // x26 __int64 v40; // x0 cocos2d::CCNode *v41; // [xsp+90h] [xbp+80h] cocos2d::CCNode *v42; // [xsp+90h] [xbp+80h] cocos2d::CCNode *v43; // [xsp+90h] [xbp+80h] cocos2d::CCNode *v44; // [xsp+90h] [xbp+80h] int v45; // [xsp+A8h] [xbp+98h] __int64 v46; // [xsp+B0h] [xbp+A0h] BYREF _BYTE v47[8]; // [xsp+B8h] [xbp+A8h] BYREF _BYTE v48[8]; // [xsp+C0h] [xbp+B0h] BYREF _BYTE v49[8]; // [xsp+C8h] [xbp+B8h] BYREF _BYTE v50[8]; // [xsp+D0h] [xbp+C0h] BYREF _BYTE v51[16]; // [xsp+D8h] [xbp+C8h] BYREF __int64 v52[2]; // [xsp+E8h] [xbp+D8h] BYREF __int64 v53[2]; // [xsp+F8h] [xbp+E8h] BYREF void *v54; // [xsp+108h] [xbp+F8h] __int64 v55; // [xsp+110h] [xbp+100h] BYREF __int64 v56; // [xsp+118h] [xbp+108h] void *v57; // [xsp+120h] [xbp+110h] v4 = SetupTriggerPopup::init(this, a2, a3, 360.0, 290.0, 1, 0.0); v5 = v4; if ( v4 ) { v7 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SetupOpacityPopup *))(*(_QWORD *)this + 1360LL))(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v46, v8); v55 = 0; v56 = 0; v57 = nullptr; std::string::__init(&v55, "Setup Opacity Effect", 0x14u); SetupTriggerPopup::addTitle(this, &v55); if ( (v55 & 1) != 0 ) operator delete(v57); v10 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v9, 30.0); v11 = CCMenuItemSpriteExtra::create(v10, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v11); v53[0] = 0; v53[1] = 0; v54 = nullptr; std::string::__init(v53, "Help", 4u); v55 = 0; v56 = 0; v57 = nullptr; std::string::__init( &v55, "Changes the opacity of a group. If any objects in the group have a color channel with opacity, the values are multiplied.", 0x81u); v12 = InfoAlertButton::create((char *)v53, (char *)&v55, 1.0); if ( (v55 & 1) != 0 ) operator delete(v57); if ( (v53[0] & 1) != 0 ) operator delete(v54); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v12); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); v41 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v51, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v46 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v46 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(v52, v41, (const cocos2d::CCPoint *)v51); v13(v12, v52); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, *(float *)&v46 * 0.5, (float)(*((float *)&v46 + 1) * 0.5) + 65.0); v55 = 0; v56 = 0; v57 = nullptr; std::string::__init(&v55, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, (const cocos2d::CCPoint *)v47); v14 = IDNameInput::create(this, (char *)this + 544, 1, 3, &v55, v52, 6, 0, 1.0, 0, 0); if ( (v55 & 1) != 0 ) operator delete(v57); if ( v14 ) v15 = *(_QWORD *)(v14 + 384); else v15 = 0; *((_QWORD *)this + 127) = v15; SetupOpacityPopup::updateTextInputLabel(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, *(float *)&v46 * 0.5, (float)(*((float *)&v46 + 1) * 0.5) + 20.0); v17 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Fade Time: ", "goldFont.fnt", v16); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.7); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL))(v17, v48); v42 = *(cocos2d::CCNode **)(*(_QWORD *)v17 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 1.0, 0.5); ((void (__fastcall *)(__int64, __int64 *))v42)(v17, v52); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v17); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v51, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v52, (const cocos2d::CCRect *)v51); v18 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v52); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 912LL))(v18, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v49, 70.0, 30.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v18 + 320LL))(v18, v49); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v18, 0xFFFFFFFFLL); v43 = *(cocos2d::CCNode **)(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 45.0, 0.0); cocos2d::CCPoint::operator+(v52, v48); ((void (__fastcall *)(__int64, __int64 *))v43)(v18, v52); if ( *((float *)this + 265) == -99999.0 ) v20 = "Mixed"; else v20 = "Num"; v21 = CCTextInputNode::create( (CCTextInputNode *)v20, 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v19); *((_QWORD *)this + 128) = v21; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v21, 20); v22 = v18; v23 = *(_QWORD *)v18; v44 = *((cocos2d::CCNode **)this + 128); v24 = *(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v44 + 184LL); v25 = (*(__int64 (__fastcall **)(__int64))(v23 + 192))(v22); v24(v44, v25); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 128), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 128), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 128) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 128) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 128) + 592LL) = 4; v55 = 0; v26 = *((_QWORD *)this + 128); v56 = 0; v57 = nullptr; std::string::__init(&v55, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v26, (__int64)&v55); if ( (v55 & 1) != 0 ) operator delete(v57); LOWORD(v45) = -21896; BYTE2(v45) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 128), v45); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 128), 0.5); *(_BYTE *)(*((_QWORD *)this + 128) + 424LL) = 1; *(_QWORD *)(*((_QWORD *)this + 128) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 128) + 72LL))(*((_QWORD *)this + 128), 4); v27 = Slider::create((int)this, (int)SetupOpacityPopup::sliderChanged, 0, 0.8); *((_QWORD *)this + 130) = v27; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v27); v28 = *((_QWORD *)this + 130); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 0.0, -32.0); cocos2d::CCPoint::operator+(v52, v48); v29(v28, v52); v30 = *((float *)this + 265) / 10.0; if ( v30 < 1.0 ) { if ( v30 <= 0.0 ) v30 = 0.0; } else { v30 = 1.0; } Slider::setValue(*((Slider **)this + 130), v30); Thumb = Slider::getThumb(*((Slider **)this + 130)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)Thumb + 72LL))(Thumb, 1); SetupOpacityPopup::updateDurLabel(this, 0); v33 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v32); *((_QWORD *)this + 129) = v33; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v33); v34 = *((_QWORD *)this + 129); v35 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v52, *(float *)&v46 * 0.5, (float)(*((float *)&v46 + 1) * 0.5) + -40.0); v35(v34, v52); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 129) + 160LL))(*((_QWORD *)this + 129), 0.8); v36 = Slider::create((int)this, (int)SetupOpacityPopup::sliderChanged, 0); *((_QWORD *)this + 131) = v36; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v36); v37 = *((_QWORD *)this + 131); v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL); v39 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 129) + 192LL))(*((_QWORD *)this + 129)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 0.0, -23.0); cocos2d::CCPoint::operator+(v52, v39); v38(v37, v52); v40 = Slider::getThumb(*((Slider **)this + 131)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 72LL))(v40, 2); SetupOpacityPopup::updateOpacityLabel(this); Slider::setValue(*((Slider **)this + 131), *((float *)this + 264)); SetupTriggerPopup::createMultiTriggerItemsDefault(this); *((_BYTE *)this + 744) = 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source