// // LevelSettingsLayer::updateColorSprite from 0x14045acd0 to 0x14045ae2f (351 bytes) // // 7 xrefs: // > LevelSettingsLayer::updateColorSprites @ 0x14045ac70 // > LevelSettingsLayer::updateColorSprites @ 0x14045ac7f // > LevelSettingsLayer::updateColorSprites @ 0x14045ac8e // > LevelSettingsLayer::updateColorSprites @ 0x14045ac9d // > LevelSettingsLayer::updateColorSprites @ 0x14045acac // > LevelSettingsLayer::updateColorSprites @ 0x14045acc0 // > @ 0x140927c8c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:32:31 +0000 // void __fastcall LevelSettingsLayer::updateColorSprite(__int64 a1, cocos2d::CCLabelBMFont **a2) { int v4; // r8d int v5; // r9d __int64 v6; // rcx char *ColorAction; // rax char *v8; // rdi bool v9; // zf __int16 *v10; // rdx cocos2d::CCLabelBMFont *v11; // rcx __int16 v12; // [rsp+30h] [rbp+8h] BYREF char v13; // [rsp+32h] [rbp+Ah] if ( *(_QWORD *)(a1 + 856) ) { v4 = (*((__int64 (__fastcall **)(cocos2d::CCLabelBMFont **))*a2 + 7))(a2); v5 = v4; if ( v4 < 0 ) v4 = 0; v6 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 856) + 3528LL) + 320LL); if ( v4 > 1101 ) v4 = 1101; if ( !*(_QWORD *)(*(_QWORD *)(v6 + 736) + 8LL * v4) ) { v10 = (__int16 *)&unk_1407044BC; LABEL_17: (*(void (__fastcall **)(cocos2d::CCLabelBMFont **, __int16 *))a2[40])(a2 + 40, v10); return; } ColorAction = GJEffectManager::getColorAction(v6, v5); v8 = ColorAction; if ( ColorAction ) { ColorChannelSprite::updateCopyLabel(a2, *((_DWORD *)ColorAction + 30), ColorAction[126]); ColorChannelSprite::updateOpacity((_QWORD **)a2, *((float *)v8 + 24)); ColorChannelSprite::updateBlending(a2, v8[84]); v9 = *((_DWORD *)v8 + 30) == 0; v12 = *((_WORD *)v8 + 36); v13 = v8[74]; if ( !v9 && !v8[126] ) { v12 = -22874; v13 = -90; } v10 = &v12; goto LABEL_17; } (*(void (__fastcall **)(cocos2d::CCLabelBMFont **, __int16 *))a2[40])(a2 + 40, &word_140703460); v11 = a2[75]; if ( v11 ) (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)v11 + 336LL))(v11, 0); ColorChannelSprite::updateOpacity((_QWORD **)a2, 1.0); if ( a2[77] ) (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)a2[77] + 336LL))(a2[77], 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source