// // PriceLabel::create from 0x1004bf7e0 to 0x1004bf8eb (267 bytes) // // 1 xrefs: // > BonusDropdown::init @ 0x1004935d6 // // 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 // PriceLabel *__fastcall PriceLabel::create(int a1) { char v1; // al PriceLabel *v2; // rbx cocos2d::CCString *v3; // rax const char *CString; // rax cocos2d::CCLabelBMFont *v5; // rax cocos2d::CCSprite *v6; // rax __int64 v7; // rax float v9[8]; // [rsp+0h] [rbp-20h] BYREF LOBYTE(v9[0]) = v1; v2 = (PriceLabel *)operator new(0x150u); cocos2d::CCNode::CCNode((__int64)v2); v2->__vftable = (PriceLabel_vtbl *)off_10094EAC0; *(_OWORD *)&v2->m_priceLabel = 0; v3 = (cocos2d::CCString *)sub_1007AB580("%i", SLOBYTE(v9[0])); CString = cocos2d::CCString::getCString(v3); v5 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt"); v2->m_priceLabel = v5; ((void (__fastcall *)(PriceLabel *, cocos2d::CCLabelBMFont *))v2->addChild)(v2, v5); v6 = cocos2d::CCSprite::createWithSpriteFrameName("spinItem_coin01_001.png"); v2->m_coinSprite = v6; ((void (__fastcall *)(PriceLabel *, cocos2d::CCSprite *, __int64))v2->addChild_0)(v2, v6, 20); ((void (__fastcall *)(cocos2d::CCSprite *, float))v2->m_coinSprite->setScale)(v2->m_coinSprite, 0.40000001); v7 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v2->m_priceLabel->getContentSize)(v2->m_priceLabel); sub_10028CBF0(v9, 0.0, *(float *)(v7 + 4)); ((void (__fastcall *)(PriceLabel *, float *))v2->setContentSize)(v2, v9); PriceLabel::setPrice(v2, a1); cocos2d::CCObject::autorelease(v2); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source