//
// SliderTouchLogic::init from 0x593e74 to 0x593f94 (288 bytes)
//
// 2 xrefs:
// > SliderTouchLogic::create @ 0x594050
// > ??> @ 0x4fa28
//
// 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 SliderTouchLogic::init(
SliderTouchLogic *a1,
cocos2d::CCNode *a2,
cocos2d::SEL_MenuHandler a3,
const char *a4,
const char *a5,
float a6)
{
void (__cdecl *ptr)(cocos2d::CCObject *); // x22
size_t adj; // x23
bool v13; // w21
SliderTouchLogic_vtbl *v14; // x2
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27
SliderThumb *v16; // x0
SliderTouchLogic_vtbl *v17; // x2
cocos2d::CCPoint v19; // [xsp+70h] [xbp+70h] BYREF
cocos2d::SEL_MenuHandler v20; // 0:x1.16
ptr = a3.ptr;
adj = a3.adj;
v13 = cocos2d::CCMenu::init(a1);
if ( v13 )
{
v14 = a1->cocos2d::CCMenu::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_rotated = 0;
setPosition = v14->setPosition;
a1->m_length = a6 * 200.0;
cocos2d::CCPoint::CCPoint(&v19, 0.0, 0.0);
setPosition(a1, &v19);
v20.ptr = ptr;
v20.adj = adj;
v16 = SliderThumb::create(a2, v20, a4, a5);
v17 = a1->cocos2d::CCMenu::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_thumb = v16;
((void (__fastcall *)(SliderTouchLogic *))v17->addChild)(a1);
a1->m_thumb->setScale(a1->m_thumb, a6);
a1->m_activateThumb = 0;
}
return v13;
}