//
// EditorUI::toggleSwipe from 0x685f54 to 0x685fdc (136 bytes)
//
// 5 xrefs:
// > EditorUI::init @ 0x6bdd04
// > EditorUI::keyDown @ 0x6c5cc0
// > ??> @ 0x6b850
// > EditorUI::init @ 0x6bc4f0
// > ??> @ 0x122b868
//
// 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::toggleSwipe(EditorUI *a1, cocos2d::CCObject *a2)
{
bool m_swipeEnabled; // w1
CCMenuItemSpriteExtra *m_swipeBtn; // x0
CCMenuItemSpriteExtra_vtbl *v5; // x2
ButtonSprite *v6; // x0
GameManager *v7; // x0
m_swipeEnabled = a1->m_swipeEnabled;
m_swipeBtn = a1->m_swipeBtn;
v5 = m_swipeBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_swipeEnabled = !m_swipeEnabled;
v6 = (ButtonSprite *)v5->getNormalImage(m_swipeBtn);
if ( a1->m_swipeEnabled )
ButtonSprite::updateBGImage(v6, "GJ_button_02.png");
else
ButtonSprite::updateBGImage(v6, "GJ_button_01.png");
v7 = GameManager::sharedState();
GameManager::setGameVariable(v7, "0003", a1->m_swipeEnabled);
}