// // EditorUI::toggleSpecialEditButtons from 0x6b4dc4 to 0x6b5000 (572 bytes) // // 3 xrefs: // > EditorUI::updateButtons @ 0x6b502c // > EditorUI::toggleEnableRotate @ 0x6b5944 // > @ 0x53730 // // 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 // void EditorUI::toggleSpecialEditButtons(EditorUI *a1) { unsigned int i; // w20 GameObject *v3; // x0 unsigned int v4; // w21 GameObject *m_selectedObject; // x0 __int64 v6; // x24 const char *j; // x1 cocos2d::CCDictionary *m_editButtonDict; // x26 cocos2d::CCString *v9; // x0 char *CString; // x0 __int64 v11; // x26 char *v12; // x0 ButtonSprite *v13; // x0 __int64 *v14; // x1 unsigned int *v15; // x1 int v16; // w3 GameManager *v17; // x0 std::string v18; // [xsp+80h] [xbp+80h] BYREF if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) ) { for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); ++i ) { v3 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, i); if ( !GameObject::canRotateFree(v3) ) goto LABEL_9; } } else { m_selectedObject = a1->m_selectedObject; if ( !m_selectedObject || !GameObject::canRotateFree(m_selectedObject) ) { LABEL_9: v4 = 0; goto LABEL_10; } } v4 = 1; LABEL_10: v6 = 0; for ( j = (char *)&off_18 + 3; ; j = (const char *)dword_EC6310[v6++] ) { m_editButtonDict = a1->m_editButtonDict; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", j); CString = (char *)cocos2d::CCString::getCString(v9); sub_D153B8((int)&v18, CString); v11 = cocos2d::CCDictionary::objectForKey(m_editButtonDict, &v18); v12 = (char *)v18.m_data.m_data - 24; if ( (__int64 *)v18.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)((char *)v18.m_data.m_data - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v18.m_data.m_data - 2); *((_DWORD *)v18.m_data.m_data - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v12); } if ( v11 ) { v13 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1056LL))(v11); v14 = (__int64 *)&off_EC62E0; if ( !v4 ) v14 = &qword_EC62F0; ButtonSprite::setColor(v13, (cocos2d::ccColor3B)*v14); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1040LL))(v11, v4); } if ( v6 == 3 ) break; } if ( v4 ) { v17 = GameManager::sharedState(); if ( GameManager::getGameVariable(v17, "0007") ) EditorUI::activateRotationControl(a1, nullptr); } else { EditorUI::deactivateRotationControl(a1); } EditorUI::updateGridNodeSize(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source