// // GJBaseGameLayer::createTextLayers from 0x46def8 to 0x46e1ac (692 bytes) // // 3 xrefs: // > PlayLayer::setupHasCompleted @ 0x31bb76 // > LevelEditorLayer::updateLevelFont @ 0x3685d6 // > LevelEditorLayer::init @ 0x376a58 // // 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 GJBaseGameLayer::createTextLayers(GJBaseGameLayer *a1) { GameManager *v2; // r6 GameManager *v3; // r0 const char *FontTexture; // r7 cocos2d::CCTextureCache *v5; // r0 cocos2d::CCSpriteBatchNode *v6; // r6 cocos2d::CCTexture2D *v7; // r1 cocos2d::CCSpriteBatchNode *v8; // r0 cocos2d::CCTexture2D *v9; // r1 cocos2d::CCSpriteBatchNode *v10; // r0 cocos2d::CCSpriteBatchNode_vtbl *v11; // r3 cocos2d::CCTexture2D *v12; // r1 cocos2d::CCSpriteBatchNode *v13; // r0 cocos2d::CCTexture2D *v14; // r1 cocos2d::CCSpriteBatchNode *v15; // r0 cocos2d::CCSpriteBatchNode_vtbl *v16; // r3 cocos2d::CCTexture2D *v17; // r1 cocos2d::CCSpriteBatchNode *v18; // r0 cocos2d::CCTexture2D *v19; // r1 cocos2d::CCSpriteBatchNode *v20; // r0 cocos2d::CCSpriteBatchNode_vtbl *v21; // r3 cocos2d::CCTexture2D *v22; // r1 cocos2d::CCSpriteBatchNode *v23; // r0 cocos2d::CCTexture2D *v24; // r1 cocos2d::CCSpriteBatchNode *v25; // r0 cocos2d::CCSpriteBatchNode_vtbl *v26; // r3 cocos2d::CCTextureCache *v27; // r0 cocos2d::CCSpriteBatchNode *v28; // r0 cocos2d::CCTexture2D *v29; // r1 cocos2d::CCSpriteBatchNode *v30; // r0 cocos2d::CCTextureCache *v31; // r0 cocos2d::CCSpriteBatchNode *v32; // r0 cocos2d::CCTexture2D *v33; // r1 cocos2d::CCSpriteBatchNode *v34; // r0 cocos2d::CCSpriteBatchNode_vtbl *v35; // r3 cocos2d::CCTexture2D *v36; // r1 cocos2d::CCSpriteBatchNode *v37; // r0 cocos2d::CCTexture2D *v38; // r1 cocos2d::CCSpriteBatchNode *v39; // r0 cocos2d::CCSpriteBatchNode_vtbl *v40; // r3 cocos2d::CCTexture2D *v41; // r1 cocos2d::CCSpriteBatchNode *v42; // r0 cocos2d::CCTexture2D *v43; // r1 cocos2d::CCSpriteBatchNode *v44; // r0 cocos2d::CCSpriteBatchNode_vtbl *v45; // r3 cocos2d::CCTexture2D *v46; // r1 cocos2d::CCSpriteBatchNode *v47; // r0 cocos2d::CCTexture2D *v48; // r1 cocos2d::CCSpriteBatchNode *v49; // r0 cocos2d::CCSpriteBatchNode_vtbl *v50; // r3 cocos2d::CCTexture2D *v51; // r1 cocos2d::CCSpriteBatchNode *v52; // r0 cocos2d::CCTexture2D *v53; // r1 cocos2d::CCSpriteBatchNode *v54; // r0 cocos2d::CCSpriteBatchNode_vtbl *v55; // r3 v2 = GameManager::sharedState(); v3 = GameManager::sharedState(); FontTexture = GameManager::getFontTexture(v2, v3->m_loadedFont); v5 = cocos2d::CCTextureCache::sharedTextureCache(); v6 = (cocos2d::CCSpriteBatchNode *)cocos2d::CCTextureCache::addImage(v5, FontTexture, 0); v8 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v7); a1->m_textLayerT4 = v8; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v8, 1260); v10 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v9); v11 = v10->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerT4 = v10; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v11->setBlendFunc)(v10, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT4, 1280); v13 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v12); a1->m_textLayerT3 = v13; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v13, 880); v15 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v14); v16 = v15->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerT3 = v15; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v16->setBlendFunc)(v15, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT3, 900); v18 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v17); a1->m_textLayerT2 = v18; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v18, 580); v20 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v19); v21 = v20->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerT2 = v20; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v21->setBlendFunc)(v20, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT2, 600); v23 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v22); a1->m_textLayerT1 = v23; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v23, 280); v25 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v24); v26 = v25->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerT1 = v25; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v26->setBlendFunc)(v25, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT1, 300); v27 = cocos2d::CCTextureCache::sharedTextureCache(); v28 = (cocos2d::CCSpriteBatchNode *)cocos2d::CCTextureCache::addImage(v27, FontTexture, 0); v30 = cocos2d::CCSpriteBatchNode::createWithTexture(v28, v29); a1->m_textLayerB1 = v30; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v30, -100); v31 = cocos2d::CCTextureCache::sharedTextureCache(); v32 = (cocos2d::CCSpriteBatchNode *)cocos2d::CCTextureCache::addImage(v31, FontTexture, 0); v34 = cocos2d::CCSpriteBatchNode::createWithTexture(v32, v33); v35 = v34->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerB1 = v34; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v35->setBlendFunc)(v34, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB1, -80); v37 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v36); a1->m_textLayerB2 = v37; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v37, -400); v39 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v38); v40 = v39->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerB2 = v39; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v40->setBlendFunc)(v39, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB2, -380); v42 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v41); a1->m_textLayerB3 = v42; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v42, -700); v44 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v43); v45 = v44->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerB3 = v44; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v45->setBlendFunc)(v44, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB3, -680); v47 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v46); a1->m_textLayerB4 = v47; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v47, -1000); v49 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v48); v50 = v49->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerB4 = v49; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v50->setBlendFunc)(v49, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB4, -980); v52 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v51); a1->m_textLayerB5 = v52; a1->m_objectLayer->addChild_0(a1->m_objectLayer, v52, -1300); v54 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, v53); v55 = v54->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_textBlendingLayerB5 = v54; ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, int, int))v55->setBlendFunc)(v54, 770, 1); a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB5, -1280); }
GD Web Decomp Icon

GD Web Decomp

Raw Source