// // BonusDropdown::init from 0x1004934b0 to 0x10049374c (668 bytes) // // 1 xrefs: // > BonusDropdown::create @ 0x100493459 // // 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 // char __fastcall BonusDropdown::init(__int64 a1, __int64 a2, int a3) { cocos2d::CCDirector *v5; // rsi cocos2d::CCSprite *v6; // r15 __int64 v7; // rax float v8; // xmm1_4 cocos2d::CCLayerColor *v9; // rax __int64 v10; // r13 PriceLabel *v11; // r12 __int64 v12; // r13 unsigned __int64 *v13; // rsi const char *v15; // rdi cocos2d::CCLabelBMFont *v16; // r14 unsigned __int64 *v17; // rbx unsigned __int64 v20; // [rsp+Ch] [rbp-44h] BYREF float v21[2]; // [rsp+14h] [rbp-3Ch] BYREF float v22; // [rsp+1Ch] [rbp-34h] double v23[6]; // [rsp+20h] [rbp-30h] BYREF v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v21); v6 = cocos2d::CCSprite::createWithSpriteFrameName("shopTabBG_001.png"); v22 = v21[0] * 0.5; v7 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCDirector *))v6->getContentSize)(v6, v5); sub_10028CBE0((float *)v23, v22, *(float *)(v7 + 4) * 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v6->setPosition)(v6, v23); ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleX)(v6, 1.8); v8 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getContentSize)(v6) + 4) + -2.0; *(float *)(a1 + 328) = v8; LODWORD(v23[0]) = 0; v9 = cocos2d::CCLayerColor::create((const cocos2d::ccColor4B *)v23, v21[0], v8); *(_QWORD *)(a1 + 320) = v9; (*(void (__fastcall **)(__int64, cocos2d::CCLayerColor *))(*(_QWORD *)a1 + 440LL))(a1, v9); v10 = *(_QWORD *)(a1 + 320); sub_10028CBE0((float *)v23, 0.0, v21[1]); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v10 + 184LL))(v10, v23); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *))(**(_QWORD **)(a1 + 320) + 440LL))(*(_QWORD *)(a1 + 320), v6); v11 = PriceLabel::create(a3); v12 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getPosition)(v6); sub_10028CBE0((float *)&v20, 100.0, -4.0); v13 = (unsigned __int64 *)v12; sub_10028CCE0(v23, v13, &v20); ((void (__fastcall *)(PriceLabel *, double *))v11->setPosition)(v11, v23); sub_10028CBE0((float *)v23, 1.0, 0.5); ((void (__fastcall *)(PriceLabel *, double *))v11->setAnchorPoint)(v11, v23); ((void (__fastcall *)(PriceLabel *, float))v11->setScale)(v11, 0.89999998); (*(void (__fastcall **)(_QWORD, PriceLabel *))(**(_QWORD **)(a1 + 320) + 440LL))(*(_QWORD *)(a1 + 320), v11); if ( (*(_BYTE *)a2 & 1) != 0 ) v15 = *(const char **)(a2 + 16); else v15 = (const char *)(a2 + 1); v16 = cocos2d::CCLabelBMFont::create_3(v15, "bigFont.fnt"); v17 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getPosition)(v6); sub_10028CBE0((float *)&v20, -134.0, -1.0); sub_10028CCE0(v23, v17, &v20); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v16->setPosition)(v16, v23); sub_10028CBE0((float *)v23, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v16->setAnchorPoint)(v16, v23); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v16->setScale)(v16, 0.89999998); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 320) + 448LL))( *(_QWORD *)(a1 + 320), v16, 2); return 1; }