// // PriceLabel::setPrice from 0x58dddc to 0x58df34 (344 bytes) // // 2 xrefs: // > PriceLabel::init @ 0x58e01c // > @ 0x68fa0 // // 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 // // local variable allocation has failed, the output may be wrong! void PriceLabel::setPrice(PriceLabel *a1, int a2) { cocos2d::CCLabelBMFont *m_priceLabel; // x22 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x23 cocos2d::CCString *v5; // x0 const char *CString; // x0 float width; // s11 cocos2d::CCSprite *m_coinSprite; // x0 float v9; // s8 float v10; // s0 cocos2d::CCLabelBMFont *v11; // x22 float v12; // s0 float v13; // s10 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 float v15; // s8 const cocos2d::CCSize *v16; // x0 cocos2d::CCSprite *v17; // x22 PriceLabel *v18; // x0 const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x1 void (__fastcall *v20)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x19 __int64 v21; // x0 cocos2d::CCPoint v22; // [xsp+60h] [xbp+60h] BYREF m_priceLabel = a1->m_priceLabel; setString = m_priceLabel->setString; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *(const char **)&a2); CString = cocos2d::CCString::getCString(v5); setString(m_priceLabel, (const unsigned __int8 *)CString); width = a1->m_priceLabel->getContentSize(a1->m_priceLabel)->width; m_coinSprite = a1->m_coinSprite; v9 = m_coinSprite->m_obRect.size.width; v10 = m_coinSprite->getScale(m_coinSprite); v11 = a1->m_priceLabel; v12 = v9 * v10; v13 = width + v12; setPosition = v11->setPosition; v15 = -(float)((float)(v12 * 0.5) - (float)((float)(width + v12) * 0.5)); v16 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v22, -(float)-(float)((float)(width * 0.5) - (float)(v13 * 0.5)), v16->height * 0.5); setPosition(v11, &v22); v17 = a1->m_coinSprite; v18 = a1; getContentSize = a1->getContentSize; v20 = v17->setPosition; v21 = (__int64)getContentSize(v18); cocos2d::CCPoint::CCPoint(&v22, v15 + 1.0, (float)(*(float *)(v21 + 4) * 0.5) + 5.0); v20(v17, &v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source