// // GJTransformControl::refreshControl from 0x39f658 to 0x39f754 (252 bytes) // // 4 xrefs: // > LevelEditorLayer::handleAction @ 0x371968 // > EditorUI::moveObjectCall @ 0x39f83e // > EditorUI::ccTouchMoved @ 0x3a4d42 // > EditorUI::ccTouchEnded @ 0x3a5a26 // // 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 GJTransformControl::refreshControl(GJTransformControl *a1) { GJTransformControlDelegate *m_delegate; // r5 void (__fastcall *anchorPointMoved)(GJTransformControlDelegate *__hidden, cocos2d::CCPoint); // r9 cocos2d::CCSprite *v4; // r0 const cocos2d::CCPoint *v5; // r0 GJTransformControlDelegate *v6; // r0 cocos2d::CCSprite *v7; // r0 int v8; // r0 float v9; // r0 int v10; // r2 bool v11; // r3 int v12; // r0 const cocos2d::CCPoint *v13; // r0 EditorUI *v14; // r7 cocos2d::CCPoint v15; // r2 cocos2d::CCArray *v16; // [sp+0h] [bp-4h] cocos2d::CCPoint v17; // [sp+4h] [bp+0h] BYREF cocos2d::CCPoint v18; // [sp+Ch] [bp+8h] BYREF cocos2d::CCPoint v19; // [sp+14h] [bp+10h] BYREF cocos2d::CCPoint v20; // [sp+1Ch] [bp+18h] BYREF cocos2d::CCPoint v21; // [sp+24h] [bp+20h] BYREF cocos2d::CCPoint::CCPoint(&v17); m_delegate = a1->m_delegate; if ( m_delegate ) { anchorPointMoved = m_delegate->anchorPointMoved; v4 = GJTransformControl::spriteByTag(a1, 1); v5 = v4->getPosition(v4); cocos2d::CCNode::convertToWorldSpace(&v21, a1, v5); v6 = m_delegate; m_delegate = (GJTransformControlDelegate *)(&dword_0 + 1); ((void (__fastcall *)(GJTransformControlDelegate *, cocos2d::CCPoint *))anchorPointMoved)(v6, &v21); v7 = GJTransformControl::spriteByTag(a1, 1); v7->setPosition(v7, (const cocos2d::CCPoint *)&flt_AC5D38); v8 = cocos2d::CCArray::objectAtIndex(a1->m_objects, 0); v9 = (*(float (__fastcall **)(int))(*(_DWORD *)v8 + 96))(v8); cocos2d::CCPoint::operator=((PlayerObject *)&v17, v9, v10, v11); GJTransformControl::updateButtons(a1, 0, 1); } GJTransformControl::updateButtons(a1, 0, 0); if ( m_delegate ) { v12 = cocos2d::CCArray::objectAtIndex(a1->m_objects, 0); v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v12 + 96))(v12); cocos2d::CCPoint::CCPoint(&v18, v13); cocos2d::CCPoint::operator-(&v19, &v17, &v18); v14 = a1->m_delegate->getUI(a1->m_delegate); cocos2d::CCPoint::CCPoint(&v21, &v19); LODWORD(v15.x) = &v21; LODWORD(v15.y) = a1->m_objects; EditorUI::checkDiffAfterTransformAnchor(&v20, v14, v15, v16); GJTransformControl::updateButtons(a1, 0, 1); GJTransformControl::updateButtons(a1, 0, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source