//
// GJTransformControl::applyRotation from 0x6b9d3c to 0x6b9db8 (124 bytes)
//
// 4 xrefs:
// > EditorUI::transformObjectCall @ 0x6b9e88
// > EditorUI::transformObjectCall @ 0x6b9fa0
// > EditorUI::updateTransformControl @ 0x6ba950
// > ??> @ 0x9c600
//
// 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::applyRotation(GJTransformControl *a1, float a2)
{
cocos2d::CCNode *m_mainNode; // x1
GJTransformControlDelegate *m_delegate; // x0
if ( a1->m_rotationY == a2
|| (m_mainNode = a1->m_mainNode,
a1->m_rotationY = a2,
((void (__fastcall *)(cocos2d::CCNode *))m_mainNode->setRotation)(m_mainNode),
(m_delegate = a1->m_delegate) == nullptr) )
{
GJTransformControl::updateButtons(a1, 0, 0);
}
else
{
m_delegate->transformRotationChanged(m_delegate, a1->m_rotationY);
GJTransformControl::updateButtons(a1, 0, 0);
}
}