// // GJSmartBlockPreview::addChance from 0x53b8f8 to 0x53b9de (230 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::init @ 0x53f424 // > BrowseSmartKeyLayer::updateChanceValues @ 0x53fbc4 // // 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 GJSmartBlockPreview::addChance(GJSmartBlockPreview *a1, int a2, int a3) { cocos2d::CCLabelBMFont *m_infoLabel; // r4 cocos2d::CCLabelBMFont_vtbl *v7; // r3 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 char *CString; // r1 cocos2d::CCString *v10; // r0 cocos2d::CCPoint v12; // [sp+4h] [bp-Ch] BYREF LODWORD(v12.x) = a2; LODWORD(v12.y) = a3; GJSmartBlockPreview::createInfoLabel(a1); m_infoLabel = a1->m_infoLabel; v7 = m_infoLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( a3 ) { setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v12, 45.0, -15.0); setPosition(m_infoLabel, &v12); LODWORD(v12.x) = &unk_ACDDA8; if ( a2 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i (%.1f%%)", (const char *)a2, (float)((float)((float)a2 / (float)a3) * 100.0), a1); CString = (char *)cocos2d::CCString::getCString(v10); } else { CString = "0"; } sub_7753D4((int)&v12, CString); a1->m_infoLabel->setString(a1->m_infoLabel, (const unsigned __int8 *)LODWORD(v12.x)); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_infoLabel, 100.0, 0.8, 0.0); a1->m_infoLabel->setVisible(a1->m_infoLabel, 1); sub_774008(&v12); } else { v7->setVisible(a1->m_infoLabel, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source