// // ShareCommentLayer::updateCharCountLabel from 0x1005e1690 to 0x1005e179b (267 bytes) // // 5 xrefs: // > ShareCommentLayer::init @ 0x1005e094c // > ShareCommentLayer::onClear @ 0x1005e0dfb // > ShareCommentLayer::updateDescText @ 0x1005e12ae // > ShareCommentLayer::textInputClosed @ 0x1005e147a // > ShareCommentLayer::textChanged @ 0x1005e15f4 // // 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 ShareCommentLayer::updateCharCountLabel(ShareCommentLayer *a1) { char v1; // al unsigned int sizex2; // r15d std::size_t size; // r15 float m_charLimit; // xmm2_4 void *v5; // rsi cocos2d::CCLabelBMFont *m_charCountLabel; // rbx cocos2d::CCString *v7; // rax const char *CString; // rax float v9; // [rsp+0h] [rbp-20h] LOBYTE(v9) = v1; sizex2 = a1->m_descText.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) size = a1->m_descText.m_data.m_long.size; else LODWORD(size) = sizex2 >> 1; m_charLimit = (float)a1->m_charLimit; if ( (float)(0.69999999 * m_charLimit) <= (float)(int)size ) { v9 = (float)(int)size; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_charCountLabel->setOpacity)( a1->m_charCountLabel, 255); if ( (float)(m_charLimit * 0.89999998) <= (float)(int)size ) v5 = &unk_1008218D2; else v5 = &unk_1008218CF; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_charCountLabel->setColor)(a1->m_charCountLabel, v5); } else { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_charCountLabel->setOpacity)( a1->m_charCountLabel, 125); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_charCountLabel->setColor)( a1->m_charCountLabel, &unk_1008218CF); } m_charCountLabel = a1->m_charCountLabel; v7 = (cocos2d::CCString *)sub_1007AB580("%i", SLOBYTE(v9)); CString = cocos2d::CCString::getCString(v7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_charCountLabel->setString)(m_charCountLabel, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source