// // EditorUI::updateObjectInfoLabel from 0x489028 to 0x4899c0 (2456 bytes) // // 12 xrefs: // > EditorUI::toggleObjectInfoLabel @ 0x489a78 // > EditorUI::updateSpecialUIElements @ 0x48c46a // > EditorUI::assignNewGroups @ 0x48ca2a // > EditorUI::onAssignNewGroupID @ 0x48cb44 // > CustomizeObjectLayer::onClose @ 0x57e01a // > SetGroupIDLayer::onClose @ 0x6397c0 // > EditorUI::onPasteState @ 0x6f290e // > EditorUI::onPasteColor @ 0x6f294e // > EditorUI::doPasteObjects @ 0x6f32c2 // > EditorUI::doPasteInPlace @ 0x6f33f2 // > EditorUI::onDuplicate @ 0x6f3a54 // > EditorUI::deselectAll @ 0x6f422e // // 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:49:28 +0000 // int __fastcall EditorUI::updateObjectInfoLabel(cocos2d::CCArray **this) { GameManager *v2; // r0 int result; // r0 cocos2d::CCArray *v4; // r0 int v5; // r4 unsigned int v6; // r9 int v7; // r5 int v8; // r8 cocos2d::CCObject *v9; // r1 GameObject *v10; // r0 __int16 *v11; // r6 int v12; // r11 GJSpriteColor *RelativeSpriteColor; // r0 int ColorMode; // r0 int v15; // r8 GJSpriteColor *v16; // r0 int v17; // r0 int ObjectZLayer; // r4 int ObjectZOrder; // r0 int v20; // r3 int v21; // r5 int v22; // r3 int v23; // r5 GameObject *v24; // r0 GJSpriteColor *v25; // r0 GJSpriteColor *v26; // r0 int v27; // r0 int v28; // r3 cocos2d::CCArray *v29; // r0 cocos2d::CCArray *v30; // r0 int v31; // r3 int v32; // r11 const char *v33; // r0 cocos2d::CCString *v34; // r0 const char *v35; // r9 const char *CString; // r0 cocos2d::CCString *v37; // r0 const char *v38; // r7 const char *v39; // r6 cocos2d::CCString *v40; // r0 cocos2d::CCString *v41; // r0 char *v42; // r1 char *v43; // r1 cocos2d::CCString *v44; // r0 int v45; // r9 int *v46; // r4 const char *v47; // r7 unsigned int v48; // r5 _BOOL4 v49; // r8 _DWORD *i; // r3 const char *v51; // r1 size_t v52; // r0 int v53; // r3 char *v54; // r0 char *v55; // r2 cocos2d::CCString *v56; // r0 char *v57; // r0 cocos2d::CCString *v58; // r0 char *v59; // r0 int v60; // r2 int *v61; // r3 int *v62; // r3 cocos2d::CCString *v63; // r0 char *v64; // r0 int v65; // r3 cocos2d::CCString *v66; // r0 char *v67; // r0 cocos2d::CCString *v68; // r0 char *v69; // r0 int v70; // r7 int *v71; // r5 unsigned int v72; // r6 _BOOL4 v73; // r6 char *v74; // r1 int v75; // r5 int *v76; // r3 int *v77; // r3 double v78; // d8 float v79; // s20 const cocos2d::CCPoint *v80; // r5 double v81; // d9 const char *v82; // r1 cocos2d::CCString *v83; // r0 char *v84; // r0 char *v85; // r1 cocos2d::CCString *v86; // r0 char *v87; // r0 int *v88; // r2 char *v89; // r2 int v90; // r7 int v91; // r9 GameManager *v92; // r0 int v93; // r0 _DWORD *v94; // r3 int v95; // r2 _DWORD *v96; // r2 _DWORD ***v97; // r6 _DWORD *v98; // r0 cocos2d::CCString *v99; // r0 char *v100; // r0 char *v101; // [sp+18h] [bp-B4h] char *v102; // [sp+18h] [bp-B4h] char *v103; // [sp+1Ch] [bp-B0h] cocos2d::CCArray *v104; // [sp+20h] [bp-ACh] int v105; // [sp+24h] [bp-A8h] char *v106; // [sp+24h] [bp-A8h] char *v107; // [sp+28h] [bp-A4h] char *v108; // [sp+2Ch] [bp-A0h] char *v109; // [sp+34h] [bp-98h] const char *v110; // [sp+44h] [bp-88h] int *v111; // [sp+54h] [bp-78h] BYREF _DWORD **v112; // [sp+58h] [bp-74h] BYREF int *v113; // [sp+5Ch] [bp-70h] BYREF int v114[2]; // [sp+60h] [bp-6Ch] BYREF int v115[2]; // [sp+68h] [bp-64h] BYREF int v116[3]; // [sp+70h] [bp-5Ch] BYREF int *v117; // [sp+7Ch] [bp-50h] BYREF _DWORD *v118; // [sp+80h] [bp-4Ch] BYREF unsigned int v119; // [sp+84h] [bp-48h] _DWORD *v120; // [sp+88h] [bp-44h] BYREF _DWORD *v121; // [sp+8Ch] [bp-40h] BYREF int v122; // [sp+90h] [bp-3Ch] int *v123; // [sp+94h] [bp-38h] BYREF _DWORD *v124; // [sp+98h] [bp-34h] BYREF unsigned int v125; // [sp+9Ch] [bp-30h] int v126[2]; // [sp+A0h] [bp-2Ch] BYREF char *v127; // [sp+A8h] [bp-24h] int v128; // [sp+ACh] [bp-20h] BYREF int v129; // [sp+B0h] [bp-1Ch] char *v130; // [sp+B4h] [bp-18h] int v131[2]; // [sp+B8h] [bp-14h] BYREF char *v132; // [sp+C0h] [bp-Ch] v2 = (GameManager *)GameManager::sharedState((GameManager *)this); result = GameManager::getGameVariable(v2, "0041"); if ( !result ) return result; memset(v116, 0, sizeof(v116)); std::string::__init(v116, &unk_B6B226, 0); v4 = *(this + 167); if ( v4 && cocos2d::CCArray::count(v4) ) { v5 = -2; v6 = 0; v7 = -1; v8 = -2; v108 = (char *)cocos2d::CCArray::count(*(this + 167)); v103 = (char *)-1; v101 = (char *)-1; v105 = -1; while ( 1 ) { if ( v6 >= cocos2d::CCArray::count(*(this + 167)) ) goto LABEL_49; v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 167), v6); v11 = (__int16 *)v10; if ( v8 == -10001 ) break; RelativeSpriteColor = (GJSpriteColor *)GameObject::getRelativeSpriteColor(v10, 1); if ( RelativeSpriteColor ) { ColorMode = GJSpriteColor::getColorMode(RelativeSpriteColor); v12 = ColorMode; if ( v8 != -2 && v8 != ColorMode ) break; } else { v12 = v8; } LABEL_13: if ( v5 == -10001 ) goto LABEL_14; v16 = (GJSpriteColor *)GameObject::getRelativeSpriteColor((GameObject *)v11, 2); if ( v16 ) { v17 = GJSpriteColor::getColorMode(v16); v15 = v17; if ( v5 != -2 && v5 != v17 ) LABEL_14: v15 = -10001; } else { v15 = v5; } if ( v105 == -10001 ) goto LABEL_21; if ( v105 == -1 ) { ObjectZLayer = GameObject::getObjectZLayer((GameObject *)v11); } else { ObjectZLayer = GameObject::getObjectZLayer((GameObject *)v11); if ( v105 != ObjectZLayer ) LABEL_21: ObjectZLayer = -10001; } if ( v7 == -10001 ) goto LABEL_26; if ( v7 == -1 ) { ObjectZOrder = GameObject::getObjectZOrder((GameObject *)v11); } else { ObjectZOrder = GameObject::getObjectZOrder((GameObject *)v11); if ( v7 != ObjectZOrder ) LABEL_26: ObjectZOrder = -10001; } if ( v101 != (char *)-10001 ) { v20 = v11[519]; if ( v101 != (char *)-1 ) { v21 = v11[519]; if ( v101 != (char *)v20 ) v21 = -10001; v20 = v21; } v101 = (char *)v20; } if ( v103 != (char *)-10001 ) { v22 = v11[520]; if ( v103 != (char *)-1 ) { v23 = v11[520]; if ( v103 != (char *)v22 ) v23 = -10001; v22 = v23; } v103 = (char *)v22; } v105 = ObjectZLayer; ++v6; v5 = v15; v7 = ObjectZOrder; v8 = v12; } v12 = -10001; goto LABEL_13; } v24 = *(this + 249); if ( !v24 ) { (*(void (__fastcall **)(_DWORD, const char *))(*(_DWORD *)*(this + 143) + 464))(*(this + 143), " "); return std::string::~string((int)v116); } v25 = (GJSpriteColor *)GameObject::getRelativeSpriteColor(v24, 1); if ( v25 ) v8 = GJSpriteColor::getColorMode(v25); else v8 = -2; v26 = (GJSpriteColor *)GameObject::getRelativeSpriteColor(*(this + 249), 2); if ( v26 ) v5 = GJSpriteColor::getColorMode(v26); else v5 = -2; v105 = GameObject::getObjectZLayer(*(this + 249)); v27 = GameObject::getObjectZOrder(*(this + 249)); v28 = (int)*(this + 249); v7 = v27; v101 = (char *)*(__int16 *)(v28 + 1038); v103 = (char *)*(__int16 *)(v28 + 1040); v108 = nullptr; LABEL_49: v29 = *(this + 167); v118 = nullptr; v119 = 0; v117 = (int *)&v118; v121 = nullptr; v122 = 0; v124 = nullptr; v125 = 0; v120 = &v121; v123 = (int *)&v124; if ( v29 && cocos2d::CCArray::count(v29) ) { v104 = *(this + 167); } else { v30 = *(this + 249); if ( !v30 ) { LABEL_53: v31 = 0; v104 = nullptr; goto LABEL_55; } v104 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v30, v9); } if ( !v104 ) goto LABEL_53; v88 = *((int **)v104 + 13); v31 = *v88; if ( *v88 ) { v89 = (char *)v88[3]; v109 = &v89[4 * v31 - 4]; v32 = 0; v107 = v89; while ( 1 ) { if ( v107 > v109 ) goto LABEL_56; v90 = *(_DWORD *)v107; v107 += 4; if ( !v90 ) goto LABEL_56; v91 = v32; LABEL_200: v9 = (cocos2d::CCObject *)(v91 - v32); if ( v91 - v32 < *(__int16 *)(v90 + 1020) ) break; if ( *(_DWORD *)(v90 + 1084) == 1 ) { v114[0] = *(_DWORD *)(v90 + 1492); if ( v114[0] > 0 ) { v113 = v114; std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (int)v115, &v123, v114, (int)&unk_BEBE47, &v113); ++*(_DWORD *)(v115[0] + 20); } } v32 = v91; } v115[0] = GameObject::getGroupID((GameObject *)v90, (unsigned int)v9); v111 = v115; v92 = (GameManager *)std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (int)v114, &v117, v115, (int)&unk_BEBE47, &v111); ++*(_DWORD *)(v114[0] + 20); if ( !*(_BYTE *)(v90 + 1022) ) goto LABEL_217; v93 = GameManager::sharedState(v92); if ( v90 != GJBaseGameLayer::getGroupParent(*(GJBaseGameLayer **)(v93 + 408), v115[0]) ) goto LABEL_217; v94 = v121; if ( !v121 ) { v97 = (_DWORD ***)&v121; v112 = &v121; goto LABEL_213; } while ( 1 ) { v95 = v94[4]; if ( v115[0] >= v95 ) { if ( v95 >= v115[0] ) { v112 = (_DWORD **)v94; v97 = &v112; LABEL_213: if ( !*v97 ) { v98 = (_DWORD *)operator new(0x14u); v98[4] = v115[0]; *v98 = 0; v98[1] = 0; v98[2] = v112; *v97 = (_DWORD **)v98; if ( *v120 ) v120 = (_DWORD *)*v120; std::__tree_balance_after_insert *>(v121, *v97); ++v122; } LABEL_217: ++v91; goto LABEL_200; } v96 = (_DWORD *)v94[1]; if ( !v96 ) { v112 = (_DWORD **)v94; v97 = (_DWORD ***)(v94 + 1); goto LABEL_213; } } else { v96 = (_DWORD *)*v94; if ( !*v94 ) { v112 = (_DWORD **)v94; v97 = (_DWORD ***)v94; goto LABEL_213; } } v94 = v96; } } LABEL_55: v32 = v31; LABEL_56: if ( v8 == -10001 ) { if ( v5 == -10001 ) { v35 = "?"; v38 = "?"; goto LABEL_72; } v35 = "?"; LABEL_64: if ( v5 < 0 ) { v38 = "-"; } else { if ( v5 < 1000 ) { v37 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v5); CString = (const char *)cocos2d::CCString::getCString(v37); } else { CString = (const char *)GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)v5, (int)v9); } v38 = CString; } if ( v8 == -2 ) v35 = "-"; goto LABEL_72; } if ( v8 < 1000 ) { v34 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v8); v33 = (const char *)cocos2d::CCString::getCString(v34); } else { v33 = (const char *)GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)v8, (int)v9); } v35 = v33; if ( v5 != -10001 ) goto LABEL_64; if ( v8 == -2 ) { v35 = "-"; v38 = "?"; goto LABEL_76; } v38 = "?"; LABEL_72: if ( v5 == -2 ) v38 = "-"; LABEL_76: switch ( v105 ) { case -5: v39 = "B5"; break; case -3: v39 = "B4"; break; case -1: v39 = "B3"; break; case 1: v39 = "B2"; break; case 3: v39 = "B1"; break; case 5: v39 = "T1"; break; case 7: v39 = "T2"; break; case 9: v39 = "T3"; break; case 11: v39 = "T4"; break; default: v39 = "?"; break; } if ( v7 == -10001 ) { v106 = "?"; } else { v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v7); v106 = (char *)cocos2d::CCString::getCString(v40); } if ( v101 != (char *)-10001 ) { v41 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v101); cocos2d::CCString::getCString(v41); } v126[0] = 0; v126[1] = 0; v127 = nullptr; std::string::__init(v126, &unk_B6B226, 0); if ( v5 == -2 || v8 == -2 ) { std::string::append(v126, "C: "); if ( v5 == -2 ) v42 = (char *)v35; else v42 = (char *)v38; std::string::append(v126, v42); v43 = "\n"; } else { v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"C1: %s\nC2: %s\n", v35, v38); v43 = (char *)cocos2d::CCString::getCString(v44); } std::string::append(v126, v43); if ( v32 ) { std::string::append(v126, "G: "); v45 = 0; v46 = v117; while ( v46 != (int *)&v118 ) { v47 = (const char *)v46[4]; if ( v104 ) { v48 = v46[5]; v49 = v48 >= cocos2d::CCArray::count(v104); } else { v49 = 0; } if ( v45 ) std::string::append(v126, ","); for ( i = v121; ; i = (_DWORD *)i[1] ) { while ( 1 ) { if ( !i ) { v51 = (const char *)&unk_B6B226; goto LABEL_110; } v60 = i[4]; if ( (int)v47 >= v60 ) break; i = (_DWORD *)*i; } if ( v60 >= (int)v47 ) break; } v51 = "*"; LABEL_110: v110 = v51; v131[0] = 0; v131[1] = 0; v132 = nullptr; v52 = strlen(v51); std::string::__init(v131, v110, v52); v53 = LOBYTE(v131[0]); if ( v49 ) { v54 = "%i%s"; if ( (v131[0] & 1) != 0 ) v55 = v132; else v55 = (char *)v131 + 1; } else { v53 = LOBYTE(v131[0]) << 31; v54 = "(%i%s)"; if ( (v131[0] & 1) != 0 ) v55 = v132; else v55 = (char *)v131 + 1; } v56 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v54, v47, v55, v53); v57 = (char *)cocos2d::CCString::getCString(v56); std::string::append(v126, v57); if ( ++v45 == 5 ) { std::string::~string((int)v131); break; } std::string::~string((int)v131); v61 = (int *)v46[1]; if ( v61 ) { do { v46 = v61; v61 = (int *)*v61; } while ( v61 ); } else { do { v62 = v46; v46 = (int *)v46[2]; } while ( v62 != (int *)*v46 ); } } if ( v119 > 5 ) std::string::append(v126, "..."); std::string::append(v126, "\n"); } v58 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Layer: %s\nZ: %s\n", v39, v106); v59 = (char *)cocos2d::CCString::getCString(v58); std::string::append(v126, v59); v128 = 0; v129 = 0; v130 = nullptr; std::string::__init(&v128, &unk_B6B226, 0); if ( v101 && v101 != (char *)-10001 ) { v63 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v101); v64 = (char *)cocos2d::CCString::getCString(v63); std::string::append(&v128, v64); } if ( v103 && v103 != (char *)-10001 ) { if ( (v128 & 1) != 0 ) v65 = v129; else v65 = (int)(unsigned __int8)v128 >> 1; if ( v65 ) v66 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)", %i", v103); else v66 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v101); v67 = (char *)cocos2d::CCString::getCString(v66); std::string::append(&v128, v67); } if ( (v128 & 1) != 0 ) { if ( v129 ) { v68 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"EL: %s\n", v130); goto LABEL_155; } } else if ( (unsigned __int8)v128 >> 1 ) { v68 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"EL: %s\n", (const char *)&v128 + 1); LABEL_155: v69 = (char *)cocos2d::CCString::getCString(v68); std::string::append(v126, v69); } if ( !v125 ) goto LABEL_169; std::string::append(v126, "CID: "); v70 = 0; v71 = v123; while ( v71 != (int *)&v124 ) { v102 = (char *)v71[4]; if ( v104 ) { v72 = v71[5]; v73 = v72 >= cocos2d::CCArray::count(v104); if ( v70 ) goto LABEL_173; goto LABEL_159; } if ( v70 ) { v73 = 0; LABEL_173: std::string::append(v126, ","); LABEL_159: if ( v73 ) goto LABEL_160; } std::string::append(v126, "("); v73 = 0; LABEL_160: GameToolbox::intToString((GameToolbox *)v131, (int)v102); if ( (v131[0] & 1) != 0 ) v74 = v132; else v74 = (char *)v131 + 1; std::string::append(v126, v74); std::string::~string((int)v131); if ( !v73 ) std::string::append(v126, ")"); if ( ++v70 == 5 ) break; v76 = (int *)v71[1]; if ( v76 ) { do { v71 = v76; v76 = (int *)*v76; } while ( v76 ); } else { do { v77 = v71; v71 = (int *)v71[2]; } while ( v77 != (int *)*v71 ); } } if ( v125 > 5 ) std::string::append(v126, "..."); std::string::append(v126, "\n"); LABEL_169: v75 = (int)*(this + 249); if ( v75 && *(_DWORD *)(v75 + 1084) == 1 ) { if ( *(_DWORD *)(v75 + 1588) || *(_DWORD *)(v75 + 1592) ) { v99 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Order: %i,%i\n", *(const char **)(v75 + 1592)); v100 = (char *)cocos2d::CCString::getCString(v99); std::string::append(v126, v100); } v78 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v75 + 96))(v75); v79 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v75 + 96))(v75) + 4); v80 = (const cocos2d::CCPoint *)(v75 + 1600); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v80); v81 = *(float *)v114; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, v80); v83 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.01f %.01f, %.01f %.01f\n", v82, v78, v79, v81, *(float *)&v115[1]); v84 = (char *)cocos2d::CCString::getCString(v83); std::string::append(v126, v84); } if ( (int)v108 > 1 ) { v86 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Objects: %i", v108); v87 = (char *)cocos2d::CCString::getCString(v86); std::string::append(v126, v87); } if ( (v126[0] & 1) != 0 ) v85 = v127; else v85 = (char *)v126 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(*(_DWORD *)*(this + 143) + 464))( *(this + 143), v85, LOBYTE(v126[0]) << 31); std::string::~string((int)&v128); std::string::~string((int)v126); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (int)&v123, v124); std::__tree::destroy((int)&v120, v121); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (int)&v117, v118); return std::string::~string((int)v116); }
GD Web Decomp Icon

GD Web Decomp

Raw Source