// // NumberInputLayer::updateNumberState from 0x100492ef0 to 0x100492f9a (170 bytes) // // 0 xrefs: // // 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 NumberInputLayer::updateNumberState(NumberInputLayer *a1) { unsigned int sizex2; // eax std::size_t size; // rax bool v4; // r14 ButtonSprite *v5; // rax cocos2d::CCLabelBMFont *m_inputLabel; // rdi std::array *longStorage; // rbx sizex2 = a1->m_inputString.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { size = a1->m_inputString.m_data.m_long.size; if ( a1->m_minimum <= (int)size ) goto LABEL_3; } else { LODWORD(size) = sizex2 >> 1; if ( a1->m_minimum <= (int)size ) { LABEL_3: v4 = a1->m_maximum >= (int)size; goto LABEL_6; } } v4 = 0; LABEL_6: v5 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_okButton->getNormalImage)(a1->m_okButton); ButtonSprite::setColor(v5, (cocos2d::ccColor3B)(v4 ? -1 : 0xFFA6A6A6)); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_okButton->setEnabled)(a1->m_okButton, v4); m_inputLabel = a1->m_inputLabel; if ( (a1->m_inputString.m_data.m_short.sizex2 & 1) != 0 ) longStorage = (std::array *)a1->m_inputString.m_data.m_long.longStorage; else longStorage = &a1->m_inputString.m_data.m_short.shortStorage; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::array *))m_inputLabel->setString)( m_inputLabel, longStorage); }
GD Web Decomp Icon

GD Web Decomp

Raw Source