// // LabelGameObject::createLabel from 0x3eb2a8 to 0x3eb34c (164 bytes) // // 2 xrefs: // > LevelEditorLayer::updateLevelFont @ 0x36865c // > LabelGameObject::setupCustomSprites @ 0x3eb396 // // 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 // void __fastcall LabelGameObject::createLabel(LabelGameObject *a1, float a2, float a3, int a4) { GameManager *v5; // r7 GameManager *v6; // r0 cocos2d::CCLabelBMFont *v7; // r0 float v8; // s15 float v9; // r1 cocos2d::CCLabelBMFont_vtbl *v10; // r3 cocos2d::CCLabelBMFont *v11; // r7 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCPoint v13; // [sp+4h] [bp-Ch] BYREF int v14; // [sp+Ch] [bp-4h] v13.x = a2; v13.y = a3; v14 = a4; if ( a1->m_label ) LabelGameObject::removeLabel(a1); v5 = GameManager::sharedState(); v6 = GameManager::sharedState(); GameManager::getFontFile(v5, v6->m_loadedFont); v7 = cocos2d::CCLabelBMFont::create(); v8 = a1->m_obRect.size.height * 0.5; v9 = a1->m_obRect.size.width * 0.5; v10 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v11 = v7; a1->m_label = v7; setPosition = v10->setPosition; cocos2d::CCPoint::CCPoint(&v13, v9, v8); setPosition(v11, &v13); a1->addChild(a1, a1->m_label); LabelGameObject::updateLabelAlign(a1, a1->m_alignment); a1->m_labelDirty = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source