// // LevelSearchLayer::updateSearchLabel from 0x3ac82c to 0x3ac95c (304 bytes) // // 3 xrefs: // > LevelSearchLayer::textInputClosed @ 0x3ac986 // > LevelSearchLayer::textChanged @ 0x3ac9d2 // > LevelSearchLayer::init @ 0x3ae286 // // 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 LevelSearchLayer::updateSearchLabel(LevelSearchLayer *a1, const char *a2) { cocos2d::CCLabelBMFont *m_textLabel; // r7 char *v5; // r1 _BOOL4 v6; // r11 CCTextInputNode *m_searchInput; // r6 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r3 void (__fastcall *v9)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r2 _BYTE v10[4]; // [sp+10h] [bp-1Ch] BYREF _BYTE v11[4]; // [sp+14h] [bp-18h] BYREF _BYTE v12[4]; // [sp+18h] [bp-14h] BYREF _BYTE v13[4]; // [sp+1Ch] [bp-10h] BYREF char *v14; // [sp+20h] [bp-Ch] BYREF m_textLabel = a1->m_searchInput->m_textLabel; if ( a1->m_type == 1 ) v5 = "Enter a list or id"; else v5 = "Enter a level, user or id"; sub_776584((int)v10, v5); sub_776584((int)v11, (char *)a2); sub_776584((int)v12, (char *)&unk_939830); if ( sub_774DBC(v11, v12) ) { sub_776584((int)v13, (char *)a2); v6 = sub_774DBC(v13, v10) == 0; sub_774008(v13); } else { v6 = 1; } sub_774008(v12); sub_774008(v11); if ( v6 ) { m_searchInput = a1->m_searchInput; sub_775C20(&v14, v10); CCTextInputNode::updateLabel((int)m_searchInput, &v14); sub_774008(&v14); setColor = m_textLabel->setColor; LOWORD(v14) = -26260; BYTE2(v14) = -40; setColor(m_textLabel, (const cocos2d::ccColor3B *)&v14); } else { v9 = m_textLabel->setColor; LOWORD(v14) = -1; BYTE2(v14) = -1; v9(m_textLabel, (const cocos2d::ccColor3B *)&v14); } sub_774008(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source