// // cocos2d::CCLabelTTF::_updateWithTextDefinition from 0xae9664 to 0xae9778 (276 bytes) // // 3 xrefs: // > cocos2d::CCLabelTTF::setTextDefinition @ 0xae9780 // > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0xae9bb0 // > @ 0x5fc40 // // 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 cocos2d::CCLabelTTF::_updateWithTextDefinition(cocos2d::CCLabelTTF *a1, cocos2d::ccFontDefinition *a2, bool a3) { _BOOL4 v3; // w22 cocos2d::CCTextAlignment m_alignment; // w2 std::string *v7; // x23 int m_fontSize; // w0 _BOOL4 m_shadowEnabled; // w1 cocos2d::CCSize v10; // [xsp+50h] [xbp+50h] BYREF v3 = a3; cocos2d::CCSize::CCSize(&v10, a2->m_dimensions.width, a2->m_dimensions.height); cocos2d::CCSize::operator=(&a1->m_tDimensions, (float *)&v10); m_alignment = a2->m_alignment; a1->m_vAlignment = a2->m_vertAlignment; a1->m_hAlignment = m_alignment; v7 = (std::string *)operator new(8u); sub_D18D28(v7); m_fontSize = a2->m_fontSize; m_shadowEnabled = a2->m_shadow.m_shadowEnabled; a1->m_pFontName = v7; a1->m_fFontSize = (float)m_fontSize; if ( m_shadowEnabled ) cocos2d::CCLabelTTF::enableShadow( a1, &a2->m_shadow.m_shadowOffset, a2->m_shadow.m_shadowOpacity, a2->m_shadow.m_shadowBlur, 0); if ( a2->m_stroke.m_strokeEnabled ) cocos2d::CCLabelTTF::enableStroke(a1, &a2->m_stroke.m_strokeColor, a2->m_stroke.m_strokeSize, 0); cocos2d::CCLabelTTF::setFontFillColor(a1, &a2->m_fontFillColor, 0); if ( v3 ) cocos2d::CCLabelTTF::updateTexture(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source