// // cocos2d::CCLabelTTF::_prepareTextDefinition from 0x10006eb20 to 0x10006ed14 (500 bytes) // // 1 xrefs: // > cocos2d::CCLabelTTF::updateTexture @ 0x10006ea08 // // 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 // cocos2d::ccFontDefinition *__fastcall cocos2d::CCLabelTTF::_prepareTextDefinition( cocos2d::ccFontDefinition *__return_ptr retstr, cocos2d::CCLabelTTF *a2, bool a3) { _BOOL4 v3; // w21 float m_fFontSize; // s8 cocos2d::CCDirector *v7; // x0 float width; // s9 cocos2d::CCDirector *v9; // x0 float v10; // s8 float height; // s10 cocos2d::CCDirector *v12; // x0 float v13; // s0 cocos2d::ccFontDefinition *result; // x0 float m_strokeSize; // s8 cocos2d::CCDirector *v16; // x0 float v17; // s1 float m_shadowOpacity; // s1 float v19; // s1 float v20; // s9 cocos2d::CCDirector *v21; // x0 float v22; // s8 float v23; // s10 cocos2d::CCDirector *v24; // x0 float v25; // s0 double v26; // [xsp+8h] [xbp-48h] BYREF v3 = a3; sub_10006ED38(retstr); m_fFontSize = a2->m_fFontSize; if ( v3 ) { v7 = cocos2d::CCDirector::sharedDirector(); m_fFontSize = m_fFontSize * sub_1001765E4(v7); } retstr->m_fontSize = (int)m_fFontSize; std::string::operator=((std::string *)retstr, (const std::string *)a2->m_pFontName); *(_QWORD *)&retstr->m_alignment = *(_QWORD *)&a2->m_hAlignment; if ( !v3 ) { sub_100022B14(&retstr->m_dimensions, (double *)&a2->m_tDimensions); if ( a2->m_strokeEnabled ) { retstr->m_stroke.m_strokeEnabled = 1; retstr->m_stroke.m_strokeColor.b = a2->m_strokeColor.b; *(_WORD *)&retstr->m_stroke.m_strokeColor.r = *(_WORD *)&a2->m_strokeColor.r; retstr->m_stroke.m_strokeSize = a2->m_strokeSize; if ( !a2->m_shadowEnabled ) goto LABEL_13; retstr->m_shadow.m_shadowEnabled = 1; m_shadowOpacity = a2->m_shadowOpacity; retstr->m_shadow.m_shadowBlur = a2->m_shadowBlur; retstr->m_shadow.m_shadowOpacity = m_shadowOpacity; LABEL_14: sub_100022B14(&retstr->m_shadow.m_shadowOffset, (double *)&a2->m_shadowOffset); goto LABEL_15; } LABEL_10: retstr->m_stroke.m_strokeEnabled = 0; if ( !a2->m_shadowEnabled ) goto LABEL_13; retstr->m_shadow.m_shadowEnabled = 1; v19 = a2->m_shadowOpacity; retstr->m_shadow.m_shadowBlur = a2->m_shadowBlur; retstr->m_shadow.m_shadowOpacity = v19; if ( v3 ) goto LABEL_12; goto LABEL_14; } width = a2->m_tDimensions.width; v9 = cocos2d::CCDirector::sharedDirector(); v10 = sub_1001765E4(v9); height = a2->m_tDimensions.height; v12 = cocos2d::CCDirector::sharedDirector(); v13 = sub_1001765E4(v12); sub_100022988((float *)&v26, width * v10, height * v13); sub_100022B14(&retstr->m_dimensions, &v26); if ( !a2->m_strokeEnabled ) goto LABEL_10; retstr->m_stroke.m_strokeEnabled = 1; retstr->m_stroke.m_strokeColor.b = a2->m_strokeColor.b; *(_WORD *)&retstr->m_stroke.m_strokeColor.r = *(_WORD *)&a2->m_strokeColor.r; m_strokeSize = a2->m_strokeSize; v16 = cocos2d::CCDirector::sharedDirector(); retstr->m_stroke.m_strokeSize = m_strokeSize * sub_1001765E4(v16); if ( !a2->m_shadowEnabled ) { LABEL_13: retstr->m_shadow.m_shadowEnabled = 0; goto LABEL_15; } retstr->m_shadow.m_shadowEnabled = 1; v17 = a2->m_shadowOpacity; retstr->m_shadow.m_shadowBlur = a2->m_shadowBlur; retstr->m_shadow.m_shadowOpacity = v17; LABEL_12: v20 = a2->m_shadowOffset.width; v21 = cocos2d::CCDirector::sharedDirector(); v22 = sub_1001765E4(v21); v23 = a2->m_shadowOffset.height; v24 = cocos2d::CCDirector::sharedDirector(); v25 = sub_1001765E4(v24); sub_100022988((float *)&v26, v20 * v22, v23 * v25); sub_100022B14(&retstr->m_shadow.m_shadowOffset, &v26); LABEL_15: *(_WORD *)&retstr->m_fontFillColor.r = *(_WORD *)&a2->m_textFillColor.r; retstr->m_fontFillColor.b = a2->m_textFillColor.b; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source