// // UIOptionsLayer::ccTouchBegan from 0x4b32b4 to 0x4b3386 (210 bytes) // // 1 xrefs: // > `non-virtual thunk to'UIOptionsLayer::ccTouchBegan @ 0x4b3390 // // 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 UIOptionsLayer::ccTouchBegan(UIOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { int v5; // r6 int v6; // r10 GJUINode *Node; // r4 cocos2d::CCPoint v8; // r1 int v9; // r2 int v10; // r0 int m_nId; // r3 int v12; // r0 int v13; // r2 bool v14; // r3 cocos2d::CCPoint v16; // [sp+Ch] [bp-10h] BYREF cocos2d::CCPoint v17; // [sp+14h] [bp-8h] BYREF cocos2d::CCPoint v18; // [sp+1Ch] [bp+0h] BYREF v5 = 0; cocos2d::CCTouch::getLocation(&v16, a2); cocos2d::CCNode::convertToNodeSpace(&v17, a1, &v16); if ( a1->m_dual ) v6 = 4; else v6 = 1; while ( 1 ) { Node = UIOptionsLayer::getNode(a1, v5); if ( ((int (__fastcall *)(GJUINode *))Node->isVisible)(Node) ) { cocos2d::CCNode::convertToNodeSpace(&v18, Node, &v16); LODWORD(v8.x) = &v18; if ( GJUINode::touchTest(Node, v8) ) break; } if ( ++v5 == v6 ) return 1; } if ( a1->m_dual ) { v10 = Node->getTag(Node); UIOptionsLayer::toggleUIGroup(a1, v10); } m_nId = a2->m_nId; Node->m_touchID = m_nId; cocos2d::CCPoint::operator=((PlayerObject *)&Node->m_touchPosition, COERCE_FLOAT(&v17), v9, m_nId); v12 = (int)Node->getPosition(Node); cocos2d::CCPoint::operator-(&v18, &v17, v12); cocos2d::CCPoint::operator=((PlayerObject *)&Node->m_touchDelta, COERCE_FLOAT(&v18), v13, v14); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source