// // GJRotationControl::init from 0x140129590 to 0x1401296a4 (276 bytes) // // 4 xrefs: // > EditorUI::init @ 0x1400df654 // > EditorUI::init @ 0x1400df645 // > @ 0x140553a80 // > @ 0x1406c9a2c // // 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 // bool GJRotationControl::init(GJRotationControl *a1) { bool result; // al _BOOL8 v3; // rdx __int64 v4; // rax cocos2d::CCSprite *v5; // rax GJRotationControl_vtbl *v6; // r9 float v7; // xmm7_4 float v8; // xmm0_4 __int64 v9; // rax cocos2d::CCPoint v10; // [rsp+48h] [rbp+10h] BYREF result = cocos2d::CCLayer::init(a1); if ( result ) { LOBYTE(v3) = 1; a1->setTouchEnabled(a1, v3); cocos2d::CCPoint::CCPoint(&v10, 60.0, 0.0); cocos2d::CCPoint::operator=(&a1->m_controlPosition, v4); a1->setAnchorPoint(a1, (const cocos2d::CCPoint *)&dword_1406C1AA8); v5 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_rotationControlBtn01_001.png"); v6 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_controlSprite = v5; v6->addChild_0(a1, v5, 1); *(_QWORD *)&a1->m_startingRotation = 0; v7 = sinf(-0.0) * 60.0; v8 = cosf(-0.0) * 60.0; cocos2d::CCPoint::CCPoint(&v10, v8, v7); cocos2d::CCPoint::operator=(&a1->m_controlPosition, v9); a1->m_controlSprite->setPosition_0(a1->m_controlSprite, &a1->m_controlPosition); return 1; } return result; }