// // CCTextInputNode::refreshLabel from 0x3e197c to 0x3e1ad6 (346 bytes) // // 7 xrefs: // > CCTextInputNode::setMaxLabelScale @ 0x3e1ae4 // > CCTextInputNode::setMaxLabelWidth @ 0x3e1aec // > CCTextInputNode::setLabelPlaceholderScale @ 0x3e1af4 // > CCTextInputNode::setLabelPlaceholderColor @ 0x3e1b06 // > CCTextInputNode::setLabelNormalColor @ 0x3e1b20 // > CCTextInputNode::updateLabel @ 0x3e2fde // > CCTextInputNode::updateLabel @ 0x3e314c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:02 +0000 // unsigned int __fastcall CCTextInputNode::refreshLabel(unsigned int this) { unsigned int v1; // r4 const char *v2; // r0 const char *v3; // r7 size_t v4; // r0 _BOOL4 v5; // r7 int *v6; // r5 int v7; // r3 void (__fastcall *v8)(int *, _DWORD); // r8 float v9; // s16 float *v10; // r0 float v11; // s15 float v12; // s16 int (*v13)(void); // r3 int v14; // r1 int v15[3]; // [sp+4h] [bp-20h] BYREF int v16[3]; // [sp+10h] [bp-14h] BYREF v1 = this; if ( *(_DWORD *)(this + 428) || *(_DWORD *)(this + 436) ) { v2 = (const char *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(this + 416) + 624))(*(_DWORD *)(this + 416)); memset(v15, 0, sizeof(v15)); v3 = v2; v4 = strlen(v2); std::string::__init(v15, v3, v4); memset(v16, 0, sizeof(v16)); std::string::__init(v16, &unk_B6B226, 0); v5 = sub_3DC1CE((unsigned __int8 *)v15, (unsigned __int8 *)v16); std::string::~string((int)v16); std::string::~string((int)v15); v6 = *(int **)(v1 + 428); if ( v6 ) { v7 = *v6; if ( v5 && *(float *)(v1 + 400) > 0.0 ) { (*(void (__fastcall **)(_DWORD, _DWORD))(v7 + 80))(*(_DWORD *)(v1 + 428), *(_DWORD *)(v1 + 400)); } else { v8 = *(void (__fastcall **)(int *, _DWORD))(v7 + 80); v9 = *(float *)(v1 + 392); v10 = (float *)(*(int (__fastcall **)(_DWORD))(v7 + 164))(*(_DWORD *)(v1 + 428)); v11 = *(float *)(v1 + 396); if ( (float)(v9 / *v10) <= v11 ) { v6 = *(int **)(v1 + 428); v12 = *(float *)(v1 + 392); v11 = v12 / *(float *)(*(int (__fastcall **)(int *))(*v6 + 164))(v6); } v8(v6, LODWORD(v11)); if ( !v5 ) { v13 = *(int (**)(void))(**(_DWORD **)(v1 + 428) + 536); return v13(); } } v13 = *(int (**)(void))(**(_DWORD **)(v1 + 428) + 536); return v13(); } this = *(_DWORD *)(v1 + 436); if ( this ) { if ( v5 ) v14 = *(_DWORD *)(v1 + 404); else v14 = *(unsigned __int8 *)(v1 + 407) | (*(unsigned __int8 *)(v1 + 408) << 8) | (*(unsigned __int8 *)(v1 + 409) << 16); return TextArea::colorAllLabels(this, v14); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source