// // EditorUI::toggleEnableRotate from 0x10000bf60 to 0x10000c08c (300 bytes) // // 3 xrefs: // > EditorUI::init @ 0x10000b5ed // > EditorUI::keyDown @ 0x100050d7d // > EditorUI::init @ 0x100009bbf // // 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 __fastcall EditorUI::toggleEnableRotate(EditorUI *a1, cocos2d::CCObject *a2) { GameManager *v2; // rax bool v3; // r15 GameManager *v4; // rax ButtonSprite *v5; // rax GJRotationControl *m_rotationControl; // r14 cocos2d::CCSprite *m_controlSprite; // rbx cocos2d::CCSpriteFrameCache *v8; // rax cocos2d::CCSpriteFrame *v9; // rax GJRotationControlDelegate *m_delegate; // rdi v2 = GameManager::sharedState(); v3 = !GameManager::getGameVariable(v2, "0007"); v4 = GameManager::sharedState(); GameManager::setGameVariable(v4, "0007", v3); v5 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_rotateBtn->getNormalImage)(a1->m_rotateBtn); if ( v3 ) { ButtonSprite::updateBGImage(v5, "GJ_button_02.png"); EditorUI::toggleSpecialEditButtons(a1); } else { ButtonSprite::updateBGImage(v5, "GJ_button_01.png"); a1->m_rotationTouchID = -1; if ( ((unsigned __int8 (__fastcall *)(GJRotationControl *))a1->m_rotationControl->isVisible)(a1->m_rotationControl) ) { ((void (__fastcall *)(GJRotationControl *, _QWORD))a1->m_rotationControl->setVisible)(a1->m_rotationControl, 0); m_rotationControl = a1->m_rotationControl; if ( m_rotationControl->m_touchID != -1 ) { m_rotationControl->m_touchID = -1; m_controlSprite = m_rotationControl->m_controlSprite; v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_rotationControlBtn01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)( m_controlSprite, v9); m_delegate = m_rotationControl->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate); } } } }