// // SearchButton::init from 0x6d100c to 0x6d1278 (620 bytes) // // 2 xrefs: // > SearchButton::create @ 0x6d12ec // > @ 0x9fbe8 // // 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 SearchButton::init(SearchButton *a1, const char *a2, const char *a3, float a4, const char *a5) { bool v8; // w21 const cocos2d::CCSize *v10; // x0 cocos2d::CCLabelBMFont *v11; // x0 cocos2d::CCLabelBMFont *m_label; // x24 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCSprite *v14; // x0 cocos2d::CCSprite *m_icon; // x0 float width; // s10 float v17; // s10 float v18; // s9 float v19; // s0 cocos2d::CCLabelBMFont *v20; // x22 float v21; // s2 void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 float v23; // s9 cocos2d::CCSprite *v24; // x20 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCPoint v26; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCSize v27; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v28; // [xsp+80h] [xbp+80h] BYREF v8 = cocos2d::CCSprite::initWithSpriteFrameName(a1, a2); if ( v8 ) { cocos2d::CCPoint::CCPoint(&v26, -1.0, 1.0); v10 = a1->getContentSize(a1); cocos2d::CCSize::CCSize(&v27, v10); v11 = cocos2d::CCLabelBMFont::create(); a1->m_label = v11; a1->addChild_0(a1, v11, 1); m_label = a1->m_label; setPosition = m_label->setPosition; cocos2d::CCPoint::CCPoint(&v28, v26.x + (float)(v27.width * 0.5), v26.y + (float)(v27.height * 0.5)); setPosition(m_label, &v28); a1->m_label->setScale(a1->m_label, a4); if ( a5 ) { if ( *a5 ) { v14 = cocos2d::CCSprite::createWithSpriteFrameName(a5); a1->m_icon = v14; a1->addChild_0(a1, v14, 1); a1->m_icon->setScale(a1->m_icon, 1.1); m_icon = a1->m_icon; width = m_icon->m_obRect.size.width; v17 = width * m_icon->getScale(m_icon); v18 = a1->m_label->getContentSize(a1->m_label)->width; v19 = a1->m_label->getScale(a1->m_label); v20 = a1->m_label; v21 = (float)(v18 * v19) + 5.0; v22 = v20->setPosition; v23 = (float)((float)(v21 + (float)(v17 * 0.5)) + 10.0) * 0.5; cocos2d::CCPoint::CCPoint( &v28, (float)((float)(v21 * 0.5) - (float)(v23 - (float)(v27.width * 0.5))) + v26.x, v26.y + (float)(v27.height * 0.5)); v22(v20, &v28); v24 = a1->m_icon; v25 = v24->setPosition; cocos2d::CCPoint::CCPoint(&v28, (float)(v23 + (float)(v27.width * 0.5)) - (float)(v17 * 0.5), v27.height * 0.5); v25(v24, &v28); } } } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source