// // SetItemIDLayer::init from 0xa97e28 to 0xa984e8 (1728 bytes) // // 2 xrefs: // > SetItemIDLayer::create @ 0xa98724 // > @ 0xbde98 // // 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:00:44 +0000 // __int64 __fastcall SetItemIDLayer::init(SetItemIDLayer *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 float v9; // s0 unsigned int v10; // w26 float v11; // s0 int v12; // w26 _BOOL4 v13; // w27 float v14; // s0 int v15; // w26 _BOOL4 v16; // w27 __int64 v17; // [xsp+88h] [xbp+78h] BYREF _BYTE v18[8]; // [xsp+90h] [xbp+80h] BYREF _BYTE v19[8]; // [xsp+98h] [xbp+88h] BYREF __int64 v20; // [xsp+A0h] [xbp+90h] BYREF cocos2d::CCDirector *v21[2]; // [xsp+A8h] [xbp+98h] BYREF void *v22; // [xsp+B8h] [xbp+A8h] __int64 v23; // [xsp+C0h] [xbp+B0h] BYREF __int64 v24; // [xsp+C8h] [xbp+B8h] void *v25; // [xsp+D0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 260.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Counter Label", 0xDu); SetupTriggerPopup::addTitle(this, &v23); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v23); if ( (v23 & 1) != 0 ) operator delete(v25); v21[0] = nullptr; v21[1] = nullptr; v22 = nullptr; std::string::__init((__int64 *)v21, "Help", 4u); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init( &v23, "Displays a set counter value depending on the setting. By default it displays Item ID.\n" "Use Time Counter to make it function as a timer.\n" "MainTime shows the exact game time.\n" "Use Points to show linked collectables.\n" "Attempts displays the current attempt.\n" "Left and Right Align changes the alignment of the display.", 0x16Du); SetupTriggerPopup::addHelpButton(this, v21, &v23, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v7 = (cocos2d::CCDirector *)LOBYTE(v21[0]); if ( ((__int64)v21[0] & 1) != 0 ) operator delete(v22); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v17, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, *(float *)&v17 * 0.5, *((float *)&v17 + 1) * 0.5); v9 = (*(float (__fastcall **)(SetItemIDLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 466); v23 = 0; v24 = 0; if ( v9 == 0.0 ) v10 = 2; else v10 = 4; v25 = nullptr; std::string::__init(&v23, "ItemID", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -60.0, 50.0); cocos2d::CCPoint::operator+(&v20, v18); IDNameInput::create(this, (char *)this + 544, v10, 80, &v23, &v20, 6, 0, 0.8, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Time\nCounter", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -60.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl(this, 466, &v23, &v20, 0, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Seconds\nOnly", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 60.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl(this, 389, &v23, &v20, 0, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v11 = (*(float (__fastcall **)(SetItemIDLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 391); v23 = 0; v12 = (int)v11; v24 = 0; v25 = nullptr; v13 = (int)v11 == 1; std::string::__init(&v23, "Left\nAlign", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 60.0, 80.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createCustomToggleValueControl((int)this, 1, v13, 1, (int)&v23, (int)&v20, 0, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Right\nAlign", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 60.0, 40.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createCustomToggleValueControl((int)this, 2, v12 == 2, 1, (int)&v23, (int)&v20, 0, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v14 = (*(float (__fastcall **)(SetItemIDLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 390); v23 = 0; v15 = (int)v14; v24 = 0; v25 = nullptr; v16 = (int)v14 == -1; std::string::__init(&v23, "MainTime", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -90.0, -60.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createCustomToggleValueControl((int)this, -1, v16, 1, (int)&v23, (int)&v20, 1, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Points", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -15.0, -60.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createCustomToggleValueControl((int)this, -2, v15 == -2, 1, (int)&v23, (int)&v20, 1, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Attempts", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 60.0, -60.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createCustomToggleValueControl((int)this, -3, v15 == -3, 1, (int)&v23, (int)&v20, 1, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source