// // Slider::init from 0x594174 to 0x59435c (488 bytes) // // 2 xrefs: // > Slider::create @ 0x594428 // > @ 0xc48d8 // // 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 Slider::init( Slider *a1, cocos2d::CCNode *a2, cocos2d::SEL_MenuHandler a3, const char *a4, const char *a5, const char *a6, const char *a7, float a8) { void (__cdecl *ptr)(cocos2d::CCObject *); // x22 size_t adj; // x23 bool v15; // w21 const char *v16; // x1 cocos2d::CCSprite *v17; // x0 cocos2d::CCSprite_vtbl *v18; // x1 const char *v19; // x1 cocos2d::CCSprite *v20; // x0 cocos2d::CCSprite_vtbl *v21; // x3 cocos2d::CCSprite *m_groove; // x4 float width; // s0 __int64 (*getTexture)(void); // x2 cocos2d::CCTexture2D *v25; // x0 cocos2d::CCSprite *m_sliderBar; // x23 void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCSprite *v28; // x23 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 const char *v31; // [xsp+60h] [xbp+60h] const char *v32; // [xsp+68h] [xbp+68h] cocos2d::CCPoint v33; // [xsp+70h] [xbp+70h] BYREF cocos2d::ccTexParams v34; // [xsp+78h] [xbp+78h] BYREF cocos2d::SEL_MenuHandler v35; // 0:x1.16 ptr = a3.ptr; adj = a3.adj; v15 = cocos2d::CCLayer::init(a1); if ( v15 ) { v35.adj = adj; v35.ptr = ptr; a1->m_touchLogic = SliderTouchLogic::create(a2, v35, v31, v32, a8); v17 = (cocos2d::CCSprite *)cocos2d::CCSprite::create((cocos2d::CCSprite *)a5, v16); v18 = v17->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_groove = v17; ((void (__fastcall *)(float))v18->setScale)(a8); a1->addChild(a1, a1->m_groove); a1->addChild(a1, a1->m_touchLogic); v20 = (cocos2d::CCSprite *)cocos2d::CCSprite::create((cocos2d::CCSprite *)a4, v19); v21 = v20->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; m_groove = a1->m_groove; a1->m_sliderBar = v20; v34.minFilter = 9729; width = m_groove->m_obRect.size.width; v34.magFilter = 9729; getTexture = (__int64 (*)(void))v21->getTexture; v34.wrapS = 10497; v34.wrapT = 10497; a1->m_height = 8.0; a1->m_width = width - 4.0; v25 = (cocos2d::CCTexture2D *)getTexture(); cocos2d::CCTexture2D::setTexParameters(v25, &v34); a1->m_groove->addChild_0(a1->m_groove, a1->m_sliderBar, -1); m_sliderBar = a1->m_sliderBar; setAnchorPoint = m_sliderBar->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v33, 0.0, 0.0); setAnchorPoint(m_sliderBar, &v33); v28 = a1->m_sliderBar; setPosition = v28->setPosition; cocos2d::CCPoint::CCPoint(&v33, 2.0, 4.0); setPosition(v28, &v33); a1->m_sliderBar->setScaleY(a1->m_sliderBar, 1.0); a1->m_touchLogic->m_slider = a1; } return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source