// // SetItemIDLayer::init from 0x623678 to 0x623afa (1154 bytes) // // 1 xrefs: // > SetItemIDLayer::create @ 0x623d00 // // 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 SetItemIDLayer::init(SetItemIDLayer *this, EffectGameObject *a2, cocos2d::CCArray *a3) { int v4; // r10 cocos2d::CCDirector *v5; // r0 float v6; // r0 int v7; // r3 int v9; // [sp+20h] [bp-4Ch] float v10[2]; // [sp+2Ch] [bp-40h] BYREF _BYTE v11[8]; // [sp+34h] [bp-38h] BYREF _BYTE v12[8]; // [sp+3Ch] [bp-30h] BYREF _BYTE v13[8]; // [sp+44h] [bp-28h] BYREF int v14[3]; // [sp+4Ch] [bp-20h] BYREF int v15; // [sp+58h] [bp-14h] BYREF int v16; // [sp+5Ch] [bp-10h] int v17; // [sp+60h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 260.0, 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup(this); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Counter Label", 0xDu); SetupTriggerPopup::addTitle(this, &v15); std::string::~string((int)&v15); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v15); std::string::~string((int)&v15); memset(v14, 0, sizeof(v14)); std::string::__init(v14, "Help", 4u); v15 = 0; v16 = 0; v17 = 0; std::string::__init( &v15, "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, v14, &v15, 1065353216); std::string::~string((int)&v15); v5 = (cocos2d::CCDirector *)std::string::~string((int)v14); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v10[0] * 0.5, v10[1] * 0.5); v6 = COERCE_FLOAT((*(int (__fastcall **)(SetItemIDLayer *, int))(*(_DWORD *)this + 732))(this, 466)); v15 = 0; v16 = 0; v17 = 0; if ( v6 == 0.0 ) v7 = 2; else v7 = 4; v9 = v7; std::string::__init(&v15, "ItemID", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -60.0, 50.0); cocos2d::CCPoint::operator+(v13, v11, v12); IDNameInput::create((int)this, (int)this + 440, v9, 80, (int)&v15, (int)v13, 0.8, 6, 0, 0, 0); std::string::~string((int)&v15); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Time\nCounter", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -60.0, 0.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createToggleValueControl((int)this, 466, (int)&v15, (int)v13, 0, 0, 0, 1.0); std::string::~string((int)&v15); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Seconds\nOnly", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 60.0, 0.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createToggleValueControl((int)this, 389, (int)&v15, (int)v13, 0, 0, 0, 1.0); std::string::~string((int)&v15); (*(void (__fastcall **)(SetItemIDLayer *, int))(*(_DWORD *)this + 732))(this, 391); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Left\nAlign", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 60.0, 80.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v15); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Right\nAlign", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 60.0, 40.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v15); (*(float (__fastcall **)(SetItemIDLayer *, int))(*(_DWORD *)this + 732))(this, 390); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "MainTime", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -90.0, -60.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v15); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Points", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -15.0, -60.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v15); v15 = 0; v16 = 0; v17 = 0; std::string::__init(&v15, "Attempts", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 60.0, -60.0); cocos2d::CCPoint::operator+(v13, v11, v12); SetupTriggerPopup::createCustomToggleValueControl(this); std::string::~string((int)&v15); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source