// // SelectFontLayer::init from 0x100285030 to 0x1002855c9 (1433 bytes) // // 1 xrefs: // > SelectFontLayer::create @ 0x100284fcf // // 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:45 +0000 // __int64 __fastcall SelectFontLayer::init(__int64 a1, __int64 a2) { __int64 result; // rax __int64 v3; // rsi __int64 v4; // rax __int64 v5; // r14 __int64 v6; // r15 char *v7; // rax unsigned int v8; // eax int v9; // edx int v10; // ecx int v11; // r8d int v12; // r9d __int64 v13; // rax __int64 v14; // r14 __int64 v15; // r14 __int64 v16; // r15 double v17; // xmm0_8 unsigned __int8 *v18; // r13 void *v19; // r13 __int64 v20; // r14 double v21; // xmm0_8 char *v22; // r14 void *v23; // r15 __int64 v24; // r14 double v25; // [rsp+0h] [rbp-90h] BYREF unsigned __int64 v26; // [rsp+8h] [rbp-88h] BYREF char v27; // [rsp+10h] [rbp-80h] BYREF char v28[15]; // [rsp+11h] [rbp-7Fh] BYREF void *v29; // [rsp+20h] [rbp-70h] _QWORD v30[2]; // [rsp+28h] [rbp-68h] BYREF void *__p; // [rsp+38h] [rbp-58h] double v32; // [rsp+44h] [rbp-4Ch] BYREF unsigned __int64 v33[2]; // [rsp+4Ch] [rbp-44h] BYREF float v34; // [rsp+5Ch] [rbp-34h] BYREF float v35; // [rsp+60h] [rbp-30h] unsigned __int8 v36; // [rsp+67h] [rbp-29h] LODWORD(v33[0]) = -1778384896; result = cocos2d::CCLayerColor::initWithColor(a1, v33); if ( (_BYTE)result ) { v36 = result; FLAlertLayer::incrementForcePrio(a1); *(_BYTE *)(a1 + 596) = 1; *(_QWORD *)(a1 + 664) = a2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v3 = cocos2d::CCDirector::sharedDirector(a1, 1); cocos2d::CCDirector::getWinSize(&v34, v3); v4 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v4; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v4); sub_100278270((__int64)v33, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v5 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v33); sub_100278260((float *)v33, 300.0, 200.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v5 + 320LL))(v5, v33); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v5, 4294967294LL); sub_100278250((float *)v33, v34 * 0.5, v35 * 0.5); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v5 + 184LL))(v5, v33); v6 = cocos2d::CCLabelBMFont::create_3("Select Font", "goldFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v6); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 0.80000001); sub_100278250((float *)v33, v34 * 0.5, (float)((float)(v35 * 0.5) + 100.0) + -16.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v6 + 184LL))(v6, v33); v7 = ButtonSprite::create_1( (__int64)"OK", 0x28u, 0, 1u, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0.80000001, 30.0); v8 = (unsigned int)CCMenuItemSpriteExtra::create((__int64)v7, 0, a1, (__int64)SelectFontLayer::onClose, 0); v13 = sub_1008735E0(v8, 0, v9, v10, v11, v12); *(_QWORD *)(a1 + 552) = v13; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v13, 10); v14 = *(_QWORD *)(a1 + 552); sub_100278250((float *)v33, v34 * 0.5, (float)((float)(v35 * 0.5) + -100.0) + 24.0); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v14 + 184LL))(v14, v33); v27 = 8; strcpy(v28, "Help"); __p = operator new(0x58u); v30[0] = 89; v30[1] = 83; strcpy((char *)__p, "Choose a font that will be used in this level.\nYou can only use one font at a time."); v15 = InfoAlertButton::create(&v27, v30, 1.0); if ( (v30[0] & 1) != 0 ) operator delete(__p); if ( (v27 & 1) != 0 ) operator delete(v29); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v15); v16 = *(_QWORD *)(a1 + 552); sub_100278250( (float *)&v32, (float)((float)(v34 * 0.5) + -150.0) + 18.0, (float)((float)(v35 * 0.5) + 100.0) + -18.0); cocos2d::CCNode::convertToNodeSpace((double *)v33, v16, (unsigned int *)&v32); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v15 + 184LL))(v15, v33); *(_DWORD *)(a1 + 640) = -1; *(_QWORD *)&v17 = LODWORD(v34); *(float *)&v17 = v34 * 0.5; sub_100278250((float *)v33, v34 * 0.5, 0.5 * v35); v18 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", v17); cocos2d::CCSprite::setFlipX(v18, 1u); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v18 + 160LL))(v18, 0.80000001); v19 = CCMenuItemSpriteExtra::create((__int64)v18, 0, a1, (__int64)SelectFontLayer::onChangeFont, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v19); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v19 + 72LL))(v19, 1); v20 = *(_QWORD *)(a1 + 552); sub_100278250((float *)&v26, 110.0, 0.0); sub_100278350(&v25, v33, &v26); cocos2d::CCNode::convertToNodeSpace(&v32, v20, (unsigned int *)&v25); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v19 + 184LL))(v19, &v32); CCMenuItemSpriteExtra::setSizeMult((__int64)v19, 2.0); v21 = (*(double (__fastcall **)(void *, __int64))(*(_QWORD *)v19 + 72LL))(v19, 1); v22 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", v21); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v22 + 160LL))(v22, 0.80000001); v23 = CCMenuItemSpriteExtra::create((__int64)v22, 0, a1, (__int64)SelectFontLayer::onChangeFont, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v23); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v23 + 72LL))(v23, 2); v24 = *(_QWORD *)(a1 + 552); sub_100278250((float *)&v26, -110.0, 0.0); sub_100278350(&v25, v33, &v26); cocos2d::CCNode::convertToNodeSpace(&v32, v24, (unsigned int *)&v25); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v23 + 184LL))(v23, &v32); CCMenuItemSpriteExtra::setSizeMult((__int64)v23, 2.0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v23 + 72LL))(v23, 0); SelectFontLayer::updateFontLabel(a1); return v36; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source