//
// EditorUI::triggerSwipeMode from 0x37b8f4 to 0x37b968 (116 bytes)
//
// 0 xrefs:
//
// 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::triggerSwipeMode(EditorUI *a1)
{
int m_selectedMode; // r2
cocos2d::CCPoint *p_m_swipeStart; // r7
_BOOL4 m_continuousSnap; // r3
CCCircleWave *v5; // r0
cocos2d::CCNode *v6; // r5
bool v7; // [sp+4h] [bp-8h]
m_selectedMode = a1->m_selectedMode;
a1->m_swipeModeTriggered = 1;
p_m_swipeStart = &a1->m_swipeStart;
if ( m_selectedMode == 3 )
{
a1->m_swipeActive = 1;
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_swipeEnd, COERCE_FLOAT((EditorUI *)&a1->m_swipeStart), 3, 1);
m_continuousSnap = a1->m_continuousSnap;
if ( !a1->m_continuousSnap )
{
a1->m_snapObject = (GameObject *)m_continuousSnap;
a1->m_snapObjectExists = m_continuousSnap;
}
}
v5 = CCCircleWave::create((CCCircleWave *)0x3F800000, 60.0, 0.4, 0.0, 0, v7);
v5->m_color.r = -1;
v6 = v5;
v5->m_color.g = -1;
v5->m_color.b = -1;
v5->setPosition(v5, p_m_swipeStart);
a1->addChild_0(a1, v6, 0);
v6[1].m_uIndexInArray = 1;
}