// // EditorUI::toggleSpecialEditButtons from 0x485e70 to 0x485fca (346 bytes) // // 3 xrefs: // > EditorUI::updateButtons @ 0x485ffc // > EditorUI::toggleEnableRotate @ 0x486604 // > EditorUI::activateTransformControl @ 0x70eff8 // // 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:25 +0000 // int __fastcall EditorUI::toggleSpecialEditButtons(cocos2d::CCArray **this, int a2) { unsigned int i; // r6 GameObject *v4; // r0 GameObject *v5; // r0 int v6; // r5 unsigned int v7; // r6 const char *v8; // r1 int v9; // r8 cocos2d::CCString *v10; // r0 const char *CString; // r0 size_t v12; // r0 int v13; // r8 GameManager *v14; // r0 char *v15; // r3 _DWORD *v16; // r0 __int16 *v17; // r2 GameManager *v18; // r0 const char *v21; // [sp+Ch] [bp-18h] int v22[3]; // [sp+10h] [bp-14h] BYREF if ( cocos2d::CCArray::count(*(this + 167)) ) { for ( i = 0; i < cocos2d::CCArray::count(*(this + 167)); ++i ) { v4 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 167), i); if ( !GameObject::canRotateFree(v4) ) { v6 = 0; goto LABEL_10; } } } else { v5 = *(this + 249); if ( !v5 || !GameObject::canRotateFree(v5) ) { v6 = 0; goto LABEL_10; } } v6 = 1; LABEL_10: v7 = -1; v8 = (char *)&word_2A + 1; while ( 1 ) { v9 = (int)*(this + 152); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v8); CString = (const char *)cocos2d::CCString::getCString(v10); memset(v22, 0, sizeof(v22)); v21 = CString; v12 = strlen(CString); std::string::__init(v22, v21, v12); v13 = cocos2d::CCDictionary::objectForKey(v9, v22); v14 = (GameManager *)std::string::~string((int)v22); if ( v13 ) { v16 = (_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)v13 + 536))(v13); if ( v6 ) v17 = word_BEBDD8; else v17 = (__int16 *)&byte_BEBE3C; ButtonSprite::setColor( v16, *(unsigned __int8 *)v17 | (*((unsigned __int8 *)v17 + 1) << 8) | (*((unsigned __int8 *)v17 + 2) << 16)); v14 = (GameManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v13 + 528))(v13, v6); } if ( ++v7 == 3 ) break; if ( v7 > 2 ) v8 = (_BYTE *)(&word_2A + 1); else v15 = (char *)&unk_BEBE44; if ( v7 <= 2 ) v8 = (const char *)v15[v7]; } if ( v6 ) { v18 = (GameManager *)GameManager::sharedState(v14); if ( GameManager::getGameVariable(v18, "0007") && (a2 || !(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 149) + 176))(*(this + 149))) ) { EditorUI::activateRotationControl((EditorUI *)this, nullptr); } } else { EditorUI::deactivateRotationControl((EditorUI *)this); } return EditorUI::updateGridNodeSize(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source