// // ConfigureValuePopup::addInfoAlertButton from 0x4cf83c to 0x4cf912 (214 bytes) // // 1 xrefs: // > SetGroupIDLayer::onGroupIDOptions @ 0x50885e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall ConfigureValuePopup::addInfoAlertButton(int a1) { cocos2d::CCDirector *v2; // r0 CCMenuItemSpriteExtra *v3; // r6 int v4; // r0 cocos2d::CCNode *v5; // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSize v8; // [sp+4h] [bp-20h] BYREF cocos2d::CCPoint v9; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v10; // [sp+14h] [bp-10h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v2); sub_775C20(&v9); sub_775C20(&v10); v3 = InfoAlertButton::create((int)&v9, (int)&v10, 1061997773); sub_774008(&v10); sub_774008(&v9); v4 = *(_DWORD *)(a1 + 440); v3[1].m_nLuaID = 1063675494; (*(void (__fastcall **)(int, CCMenuItemSpriteExtra *))(*(_DWORD *)v4 + 220))(v4, v3); v5 = *(cocos2d::CCNode **)(a1 + 440); setPosition = v3->setPosition; cocos2d::CCPoint::CCPoint( &v9, (float)((float)(v8.width * 0.5) + 130.0) - 17.0, (float)((float)(v8.height * 0.5) + 100.0) - 17.0); cocos2d::CCNode::convertToNodeSpace(&v10, v5, &v9); return ((int (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))setPosition)(v3, &v10); }