// // EditorUI::createCustomItems from 0x6f65d4 to 0x6f67da (518 bytes) // // 2 xrefs: // > EditorUI::reloadCustomItems @ 0x6f6832 // > EditorUI::setupCreateMenu @ 0x70be36 // // 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:57:39 +0000 // GameManager *__fastcall EditorUI::createCustomItems(cocos2d::CCArray **this) { signed int v2; // r6 cocos2d::CCArray *v3; // r0 GameManager *v4; // r9 cocos2d::CCDictionary **v5; // r0 cocos2d::CCArray *v6; // r0 cocos2d::CCString *v7; // r0 GameManager *v8; // r11 int v9; // r0 int v10; // r3 char *v11; // r1 size_t v12; // r0 cocos2d::CCObject *v13; // r0 cocos2d::CCObject *v14; // r0 const char *v15; // r1 cocos2d::CCObject *MenuItemButton; // r0 const char *v17; // r1 cocos2d::CCObject *v18; // r0 const char *v19; // r1 ButtonSprite *v20; // r11 cocos2d::CCObject *v21; // r0 const char *v22; // r1 ButtonSprite *v23; // r0 ButtonSprite *v24; // r11 cocos2d::CCObject *v25; // r0 cocos2d::CCArray *OrderedCustomObjectKeys; // [sp+10h] [bp-5Ch] cocos2d::CCArray *v28; // [sp+10h] [bp-5Ch] cocos2d::CCArray *v29; // [sp+10h] [bp-5Ch] cocos2d::CCArray *v30; // [sp+14h] [bp-58h] char *v31; // [sp+1Ch] [bp-50h] _BYTE v32[8]; // [sp+24h] [bp-48h] BYREF _DWORD (*v33)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+2Ch] [bp-40h] int v34; // [sp+30h] [bp-3Ch] _DWORD (*v35)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+34h] [bp-38h] int v36; // [sp+38h] [bp-34h] _DWORD (*v37)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-30h] int v38; // [sp+40h] [bp-2Ch] _DWORD (*v39)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+44h] [bp-28h] BYREF int v40; // [sp+48h] [bp-24h] unsigned __int8 v41; // [sp+4Ch] [bp-20h] BYREF char v42; // [sp+4Dh] [bp-1Fh] BYREF int v43; // [sp+50h] [bp-1Ch] char *v44; // [sp+54h] [bp-18h] int v45[3]; // [sp+58h] [bp-14h] BYREF v2 = 0; v3 = (cocos2d::CCArray *)cocos2d::CCArray::removeAllObjects(*(this + 225)); v4 = (GameManager *)cocos2d::CCArray::create(v3); v5 = (cocos2d::CCDictionary **)GameManager::sharedState(v4); OrderedCustomObjectKeys = (cocos2d::CCArray *)GameManager::getOrderedCustomObjectKeys(v5); v6 = (cocos2d::CCArray *)cocos2d::CCArray::count(OrderedCustomObjectKeys); v30 = v6; while ( v2 < (int)v30 ) { v7 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(OrderedCustomObjectKeys, v2); v8 = (GameManager *)cocos2d::CCString::intValue(v7); v9 = GameManager::sharedState(v8); GameManager::stringForCustomObject((GameManager *)&v41, v9, (const char *)v8, v10); if ( (v41 & 1) != 0 ) { if ( !v43 ) goto LABEL_9; v11 = v44; } else { if ( !(v41 >> 1) ) goto LABEL_9; v11 = &v42; } v31 = v11; memset(v45, 0, sizeof(v45)); v12 = strlen(v11); std::string::__init(v45, v31, v12); v13 = EditorUI::menuItemFromObjectString((int)this, (int)v45, (int)v8); cocos2d::CCArray::addObject(v4, v13); std::string::~string((int)v45); LABEL_9: ++v2; v6 = (cocos2d::CCArray *)std::string::~string((int)&v41); } if ( !*(this + 169) ) { v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6); *(this + 169) = v14; cocos2d::CCObject::retain(v14); v28 = (cocos2d::CCArray *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_upBtn_001.png", v15); v34 = 0; v33 = EditorUI::orderUpCustomItem; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, (const cocos2d::CCPoint *)&unk_D2DBB0); MenuItemButton = (cocos2d::CCObject *)EditorUI::getCreateMenuItemButton( (int)this, v28, (int)EditorUI::orderUpCustomItem, 0, 0, 1063675494, 5, (const cocos2d::CCPoint *)&v39); cocos2d::CCArray::addObject(*(this + 169), MenuItemButton); v29 = (cocos2d::CCArray *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_downBtn_001.png", v17); v36 = 0; v35 = EditorUI::orderDownCustomItem; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, (const cocos2d::CCPoint *)&unk_D2DBB0); v18 = (cocos2d::CCObject *)EditorUI::getCreateMenuItemButton( (int)this, v29, (int)EditorUI::orderDownCustomItem, 0, 0, 1063675494, 5, (const cocos2d::CCPoint *)&v39); cocos2d::CCArray::addObject(*(this + 169), v18); v38 = 0; v37 = EditorUI::onNewCustomItem; v20 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_addCBtn_001.png", v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, (const cocos2d::CCPoint *)&unk_D2DBB0); v21 = (cocos2d::CCObject *)EditorUI::getCreateMenuItemButton( (int)this, v20, (int)EditorUI::onNewCustomItem, 0, 0, 1063675494, 1, (const cocos2d::CCPoint *)&v39); cocos2d::CCArray::addObject(*(this + 169), v21); v23 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_delCBtn_001.png", v22); v40 = 0; v39 = EditorUI::onDeleteCustomItem; v24 = v23; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, (const cocos2d::CCPoint *)&unk_D2DBB0); v25 = (cocos2d::CCObject *)EditorUI::getCreateMenuItemButton( (int)this, v24, (int)v39, v40, 0, 1063675494, 6, (const cocos2d::CCPoint *)v32); cocos2d::CCArray::addObject(*(this + 169), v25); } cocos2d::CCArray::addObjectsFromArray(v4, *(this + 169)); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source