// // ShareLevelLayer::setupStars from 0x10026d580 to 0x10026d923 (931 bytes) // // 1 xrefs: // > ShareLevelLayer::init @ 0x10026d13f // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:27:36 +0000 // void __fastcall ShareLevelLayer::setupStars(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rax __int64 v5; // rdi __int64 v6; // r15 unsigned int v7; // r12d __int64 v8; // rdi __int64 v9; // r13 __int64 v10; // rax __int64 CString; // rax char *v12; // rax _DWORD *v13; // r14 __int64 v14; // r12 __int64 v15; // rdi char isPlatformer; // al const char *v17; // rdx __int64 v18; // rcx __int64 v19; // r14 __int64 v20; // rax __int64 v21; // r14 double v22; // [rsp+0h] [rbp-70h] BYREF float v23[2]; // [rsp+8h] [rbp-68h] BYREF __int64 v24; // [rsp+10h] [rbp-60h] char v25; // [rsp+18h] [rbp-58h] BYREF _BYTE v26[13]; // [rsp+19h] [rbp-57h] BYREF char v27; // [rsp+26h] [rbp-4Ah] void *__p; // [rsp+28h] [rbp-48h] unsigned int v29[2]; // [rsp+30h] [rbp-40h] BYREF _BYTE v30[8]; // [rsp+38h] [rbp-38h] BYREF _BYTE v31[48]; // [rsp+40h] [rbp-30h] BYREF v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v23, v3); v4 = sub_1007FE900(v23); *(_QWORD *)(a1 + 680) = v4; v5 = v4; cocos2d::CCObject::retain(v4); v6 = sub_1007FE900(v5); v7 = 1; v24 = sub_1007FE900(v5); do { v9 = *(_QWORD *)(a1 + 552); v10 = sub_10088E820("%i", SLOBYTE(v22)); CString = cocos2d::CCString::getCString(v10); v12 = ButtonSprite::create_1(CString, 0x14u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v13 = CCMenuItemSpriteExtra::create((__int64)v12, 0, a1, (__int64)ShareLevelLayer::selectRating, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v13 + 160LL))(v13, 0.80000001); v13[101] = 1061997773; if ( v9 ) (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v9 + 456LL))(v9, v13); sub_1007FEBF0(*(_QWORD *)(a1 + 680), v13); (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v13 + 72LL))(v13, v7); v8 = v24; if ( v7 < 6 ) v8 = v6; sub_1007FEBF0(v8, v13); ++v7; } while ( v7 != 11 ); sub_100278250(v29, v23[0] * 0.5, (float)((float)((float)(0.5 * v23[1]) + -50.0) + 35.0) + 2.0); v14 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace((double *)&v25, *(_QWORD *)(a1 + 584), v29); cocos2d::CCNode::convertToNodeSpace(&v22, v14, (unsigned int *)&v25); sub_1002782D0(&v25, &v22); GameToolbox::alignItemsHorisontally(v6, &v25, 0, 17.0); sub_100278250(v31, 0.0, -35.0); sub_100278350(&v25, &v22, v31); GameToolbox::alignItemsHorisontally(v24, &v25, 0, 17.0); v15 = *(_QWORD *)(a1 + 664); *(_DWORD *)(a1 + 672) = *(_DWORD *)(v15 + 1044); isPlatformer = GJGameLevel::isPlatformer(v15, COERCE_DOUBLE(1099431936)); v17 = "Request Stars"; if ( isPlatformer ) v17 = "Request Moons"; v25 = 26; v18 = *(_QWORD *)(v17 + 5); *(_QWORD *)v26 = *(_QWORD *)v17; *(_QWORD *)&v26[5] = v18; v27 = 0; v19 = cocos2d::CCLabelBMFont::create_3(v26, "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v19, 2); sub_100278250(v30, 0.0, 30.0); sub_100278350(v31, v29, v30); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v19 + 184LL))(v19, v31); v20 = cocos2d::CCSprite::createWithSpriteFrameName("difficulty_00_btn_001.png"); *(_QWORD *)(a1 + 688) = v20; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v20, 3); v21 = *(_QWORD *)(a1 + 688); sub_100278250(v30, 155.0, -18.0); sub_100278350(v31, v29, v30); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v21 + 184LL))(v21, v31); sub_100278250(v30, -170.0, -8.0); sub_100278350(v31, v29, v30); sub_10026DE60(a1, v31, 40.0, *(float *)&v29[1] + 30.0); ShareLevelLayer::selectRating(a1, 0); if ( (v25 & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source