// // EditorUI::toggleSpecialEditButtons from 0x39c99c to 0x39cad4 (312 bytes) // // 2 xrefs: // > EditorUI::updateButtons @ 0x39cb02 // > EditorUI::toggleEnableRotate @ 0x39d086 // // 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; // r6 GameObject *v3; // r0 GameObject *m_selectedObject; // r0 int v5; // r5 unsigned int v6; // r6 const char *v7; // r1 cocos2d::CCDictionary *m_editButtonDict; // r8 cocos2d::CCString *v9; // r0 char *CString; // r0 int v11; // r8 char *v12; // r3 ButtonSprite *v13; // r0 __int16 *v14; // r2 GameManager *v15; // r0 std::string v16; // [sp+10h] [bp-Ch] BYREF if ( cocos2d::CCArray::count(a1->m_selectedObjects) ) { for ( i = 0; i < cocos2d::CCArray::count(a1->m_selectedObjects); ++i ) { v3 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, i); if ( !GameObject::canRotateFree(v3) ) { v5 = 0; goto LABEL_10; } } } else { m_selectedObject = a1->m_selectedObject; if ( !m_selectedObject || !GameObject::canRotateFree(m_selectedObject) ) { v5 = 0; goto LABEL_10; } } v5 = 1; LABEL_10: v6 = -1; v7 = (char *)&dword_18 + 3; while ( 1 ) { m_editButtonDict = a1->m_editButtonDict; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v7); CString = (char *)cocos2d::CCString::getCString(v9); sub_776584((int)&v16, CString); v11 = cocos2d::CCDictionary::objectForKey(m_editButtonDict, &v16); sub_774008(&v16); if ( v11 ) { v13 = (ButtonSprite *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 528))(v11); if ( v5 ) v14 = word_9AA83C; else v14 = &word_9AA83F; ButtonSprite::setColor( v13, (cocos2d::ccColor3B)(*(unsigned __int8 *)v14 | (*((unsigned __int8 *)v14 + 1) << 8) | (*((unsigned __int8 *)v14 + 2) << 16))); (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 520))(v11, v5); } if ( ++v6 == 3 ) break; if ( v6 > 2 ) v7 = (_BYTE *)(&dword_18 + 3); else v12 = (char *)&unk_9AA868; if ( v6 <= 2 ) v7 = (const char *)v12[v6]; } if ( v5 ) { v15 = GameManager::sharedState(); if ( GameManager::getGameVariable(v15, "0007") ) EditorUI::activateRotationControl(a1, nullptr); } else { EditorUI::deactivateRotationControl(a1); } EditorUI::updateGridNodeSize(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source