// // EditorUI::createCustomItems from 0x1001848b8 to 0x100184b2c (628 bytes) // // 2 xrefs: // > EditorUI::setupCreateMenu @ 0x100183e3c // > EditorUI::reloadCustomItems @ 0x100187f7c // // 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 10:59:49 +0000 // __int64 __fastcall EditorUI::createCustomItems(__int64 a1) { __int64 v2; // x0 __int64 v3; // x19 __int64 v4; // x0 __int64 OrderedCustomObjectKeys; // x21 _QWORD *v6; // x0 int v7; // w22 __int64 v8; // x23 __int64 v9; // x0 __int64 v10; // x24 __int64 v11; // x0 char *v12; // x1 __int64 v13; // x0 __int64 v14; // x1 __int64 v15; // x0 __int64 v16; // x22 __int64 MenuItemButton; // x0 __int64 v18; // x22 __int64 v19; // x0 __int64 v20; // x22 __int64 v21; // x0 __int64 v22; // x22 __int64 v23; // x0 void *__p[2]; // [xsp+0h] [xbp-70h] BYREF char v26; // [xsp+17h] [xbp-59h] char *__s[2]; // [xsp+18h] [xbp-58h] BYREF char v28; // [xsp+2Fh] [xbp-41h] sub_1002E7674(*(_QWORD *)(a1 + 1360)); v3 = sub_1002E736C(v2); v4 = GameManager::sharedState(v3); OrderedCustomObjectKeys = GameManager::getOrderedCustomObjectKeys(v4); v6 = (_QWORD *)sub_1002E757C(OrderedCustomObjectKeys); if ( (int)v6 >= 1 ) { v7 = (int)v6; v8 = 0; while ( 1 ) { v9 = cocos2d::CCArray::stringAtIndex(OrderedCustomObjectKeys, v8); v10 = cocos2d::CCString::intValue(v9); v11 = GameManager::sharedState(v10); v6 = GameManager::stringForCustomObject(__s, v11, v10); if ( v28 < 0 ) break; if ( v28 ) { v12 = (char *)__s; LABEL_8: sub_100009900(__p, v12); v13 = EditorUI::menuItemFromObjectString(a1, __p, v10); sub_1002E74E0(v3, v13); if ( v26 < 0 ) operator delete(__p[0]); if ( (v28 & 0x80000000) == 0 ) goto LABEL_12; goto LABEL_11; } LABEL_12: v8 = (unsigned int)(v8 + 1); if ( v7 == (_DWORD)v8 ) goto LABEL_13; } if ( __s[1] ) { v12 = __s[0]; goto LABEL_8; } LABEL_11: operator delete(__s[0]); goto LABEL_12; } LABEL_13: v14 = *(_QWORD *)(a1 + 912); if ( !v14 ) { v15 = sub_1002E736C(v6); *(_QWORD *)(a1 + 912) = v15; cocos2d::CCObject::retain(v15); v16 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png"); sub_1000262F4(__s, &dbl_1009F40A0); MenuItemButton = EditorUI::getCreateMenuItemButton(a1, v16, sub_100187FE0, 0, 0, 5, __s, 0.9); sub_1002E74E0(*(_QWORD *)(a1 + 912), MenuItemButton); v18 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png"); sub_1000262F4(__s, &dbl_1009F40A0); v19 = EditorUI::getCreateMenuItemButton(a1, v18, sub_100188044, 0, 0, 5, __s, 0.9); sub_1002E74E0(*(_QWORD *)(a1 + 912), v19); v20 = cocos2d::CCSprite::createWithSpriteFrameName("edit_addCBtn_001.png"); sub_1000262F4(__s, &dbl_1009F40A0); v21 = EditorUI::getCreateMenuItemButton(a1, v20, EditorUI::onNewCustomItem, 0, 0, 1, __s, 0.9); sub_1002E74E0(*(_QWORD *)(a1 + 912), v21); v22 = cocos2d::CCSprite::createWithSpriteFrameName("edit_delCBtn_001.png"); sub_1000262F4(__s, &dbl_1009F40A0); v23 = EditorUI::getCreateMenuItemButton(a1, v22, sub_100187FA4, 0, 0, 6, __s, 0.9); sub_1002E74E0(*(_QWORD *)(a1 + 912), v23); v14 = *(_QWORD *)(a1 + 912); } sub_1002E7570(v3, v14); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source