// // LabelGameObject::createLabel from 0x1001c0fc0 to 0x1001c10e0 (288 bytes) // // 2 xrefs: // > LevelEditorLayer::updateLevelFont @ 0x1000f162e // > LabelGameObject::setupCustomSprites @ 0x1001c0f7c // // 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 // __int64 __fastcall LabelGameObject::createLabel(LabelGameObject *a1, __int64 a2) { __int64 v2; // rax const char *v3; // r14 GameManager *v4; // r15 GameManager *v5; // rax const char *FontFile; // rax cocos2d::CCLabelBMFont *v7; // r14 __int64 result; // rax cocos2d::CCLabelBMFont *m_label; // r14 int m_alignment; // eax float v11; // xmm0_4 _QWORD v12[4]; // [rsp+0h] [rbp-20h] BYREF v12[0] = v2; if ( a1->m_label ) LabelGameObject::removeLabel(a1); if ( (*(_BYTE *)a2 & 1) != 0 ) v3 = *(const char **)(a2 + 16); else v3 = (const char *)(a2 + 1); v4 = GameManager::sharedState(); v5 = GameManager::sharedState(); FontFile = GameManager::getFontFile(v4, v5->m_loadedFont); v7 = cocos2d::CCLabelBMFont::create_3(v3, FontFile); a1->m_label = v7; sub_10028CBE0(v12, a1->m_obRect.size.width * 0.5, 0.5 * a1->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD *))v7->setPosition)(v7, v12); result = ((__int64 (__fastcall *)(LabelGameObject *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, a1->m_label); m_label = a1->m_label; if ( m_label ) { m_alignment = a1->m_alignment; if ( m_alignment == 2 ) { v11 = 1.0; } else if ( m_alignment == 1 ) { v11 = 0.0; } else { v11 = 0.5; } sub_10028CBE0(v12, v11, 0.5); result = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD *))m_label->setAnchorPoint)(m_label, v12); } a1->m_labelDirty = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source