// // DialogLayer::displayDialogObject from 0x4d5ea0 to 0x4d60ae (526 bytes) // // 2 xrefs: // > DialogLayer::displayNextObject @ 0x4d6140 // > DialogLayer::init @ 0x4d63f4 // // 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 DialogLayer::displayDialogObject(DialogLayer *a1, DialogObject *a2) { cocos2d::CCSprite *m_characterSprite; // r0 TextArea *m_textArea; // r3 cocos2d::CCLabelBMFont *m_characterLabel; // r8 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r9 cocos2d::CCLabelBMFont *v8; // r0 GLubyte b; // r2 GLubyte r; // lr void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r3 const char *m_characterFrame; // r1 cocos2d::CCString *v13; // r0 cocos2d::CCSprite *CString; // r0 const char *v15; // r1 cocos2d::CCSprite *v16; // r0 cocos2d::CCSprite *v17; // r8 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 float m_textScale; // s17 TextArea *v20; // r6 void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 TextArea *v22; // r6 void (__fastcall *v23)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 char *v24; // [sp+14h] [bp-18h] BYREF char v25; // [sp+18h] [bp-14h] BYREF cocos2d::CCPoint v26; // [sp+1Ch] [bp-10h] BYREF if ( a2 ) { a1->m_animating = 1; a1->m_skippable = a2->m_unskippable; cocos2d::CCNode::stopAllActions(a1->m_navButtonSprite); a1->m_navButtonSprite->setOpacity(a1->m_navButtonSprite, 0); m_characterSprite = a1->m_characterSprite; if ( m_characterSprite ) { m_characterSprite->removeMeAndCleanup(m_characterSprite); a1->m_characterSprite = nullptr; } m_textArea = a1->m_textArea; if ( m_textArea ) { m_textArea->m_delegate = nullptr; a1->m_textArea->removeMeAndCleanup(a1->m_textArea); a1->m_textArea = nullptr; } m_characterLabel = a1->m_characterLabel; setString = m_characterLabel->setString; sub_775C20(&v26); setString(m_characterLabel, (const unsigned __int8 *)LODWORD(v26.x)); sub_774008(&v26); v8 = a1->m_characterLabel; b = a2->m_nameColor.b; r = a2->m_nameColor.r; setColor = v8->setColor; BYTE1(v26.x) = a2->m_nameColor.g; LOBYTE(v26.x) = r; BYTE2(v26.x) = b; setColor(v8, (const cocos2d::ccColor3B *)&v26); m_characterFrame = (const char *)a2->m_characterFrame; if ( (int)m_characterFrame > 0 ) { if ( (int)m_characterFrame >= 56 ) m_characterFrame = (const char *)&dword_38; v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"dialogIcon_%03d.png", m_characterFrame); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v13); v16 = (cocos2d::CCSprite *)cocos2d::CCSprite::create(CString, v15); a1->m_characterSprite = v16; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v16, 2); v17 = a1->m_characterSprite; setPosition = v17->setPosition; cocos2d::CCPoint::CCPoint(&v26, -143.0, 0.0); setPosition(v17, &v26); } m_textScale = a2->m_textScale; sub_775C20(&v24); sub_776584((int)&v25, v24); cocos2d::CCPoint::CCPoint(&v26, 0.0, 1.0); a1->m_textArea = (TextArea *)TextArea::create( (TextArea *)&v25, (std::string)"chatFont.fnt", (const char *)0x3F800000, COERCE_INT(220.0 / m_textScale), &v26, (cocos2d::CCPoint)1101004800LL); sub_774008(&v25); sub_774008(&v24); v20 = a1->m_textArea; setAnchorPoint = v20->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v26, 0.0, 0.5); setAnchorPoint(v20, &v26); ((void (__fastcall *)(TextArea *, _DWORD))a1->m_textArea->setScale)(a1->m_textArea, LODWORD(m_textScale)); a1->m_textArea->m_delegate = &a1->TextAreaDelegate; a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_textArea, 3); v22 = a1->m_textArea; v23 = v22->setPosition; cocos2d::CCPoint::CCPoint(&v26, -92.0, 0.0); v23(v22, &v26); TextArea::fadeInCharacters(a1->m_textArea, 0.2, 0.02, 0, Fade); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source