// // cocos2d::extension::CCControlButton::setHighlighted from 0x180006150 to 0x180006225 (213 bytes) // // 6 xrefs: // > @ 0x180024108 // > @ 0x180027f50 // > @ 0x18002d7c4 // > @ 0x18002d7d4 // > @ 0x18002fdf8 // > @ 0x1800495ac // // 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 __fastcall cocos2d::extension::CCControlButton::setHighlighted( cocos2d::extension::CCControlButton *this, unsigned __int8 a2) { __int64 v3; // rax struct cocos2d::CCAction *ActionByTag; // rax float v5; // xmm1_4 struct cocos2d::CCAction *v6; // rbx *((_DWORD *)this + 109) = a2 + 1; v3 = *(_QWORD *)this; *((_BYTE *)this + 443) = a2; (*(void (**)(void))(v3 + 1064))(); ActionByTag = cocos2d::CCNode::getActionByTag(this, -859111423); if ( ActionByTag ) cocos2d::CCNode::stopAction(this, ActionByTag); (*(void (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1064LL))(this); if ( *((_BYTE *)this + 512) ) { if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1056LL))(this) && (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1024LL))(this) && !(*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1040LL))(this) ) { v5 = 1.1; } else { v5 = 1.0; } v6 = cocos2d::CCScaleTo::create(0.050000001, v5); (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v6 + 64LL))(v6, 3435855873LL); cocos2d::CCNode::runAction(this, v6); } }