// // SetupShaderEffectPopup::onZLayer from 0x1002d0380 to 0x1002d050c (396 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002cfad7 // // 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 SetupShaderEffectPopup::onZLayer(SetupShaderEffectPopup *a1, cocos2d::CCObject *a2) { int v2; // eax int m_zLayerMax; // ecx char v4; // r14 int m_zLayerMin; // edx unsigned int v6; // r14d ButtonSprite *v7; // r15 int v8; // eax int v9; // ecx const char *v10; // rsi v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); m_zLayerMax = a1->m_zLayerMax; if ( v2 <= m_zLayerMax ) { m_zLayerMin = a1->m_zLayerMin; if ( v2 < m_zLayerMin ) { a1->m_zLayerMin = v2; a1->m_changeMin = 0; goto LABEL_9; } if ( v2 == m_zLayerMin || m_zLayerMax == v2 ) { a1->m_zLayerMin = v2; a1->m_zLayerMax = v2; a1->m_changeMin = 0; v4 = 0; goto LABEL_3; } if ( a1->m_changeMin ) { a1->m_zLayerMin = v2; a1->m_changeMin = 0; goto LABEL_9; } } a1->m_zLayerMax = v2; a1->m_changeMin = 1; v4 = 1; LABEL_3: SetupTriggerPopup::valueChanged(a1, 197, (float)v2); if ( !v4 || !a1->m_changeMin ) { LABEL_9: SetupTriggerPopup::valueChanged(a1, 196, (float)a1->m_zLayerMin); if ( !(unsigned int)sub_100720070(a1->m_zLayerSprites) ) return; goto LABEL_10; } if ( !(unsigned int)sub_100720070(a1->m_zLayerSprites) ) return; LABEL_10: v6 = 0; do { v7 = (ButtonSprite *)sub_1007200C0(a1->m_zLayerSprites, v6); v8 = ((__int64 (__fastcall *)(ButtonSprite *))v7->getTag)(v7); v9 = a1->m_zLayerMin; v10 = "GJ_button_02.png"; if ( v8 != v9 ) { v10 = "GJ_button_02.png"; if ( v8 != a1->m_zLayerMax ) { v10 = "GJ_button_01.png"; if ( v8 >= a1->m_zLayerMax ) v10 = "GJ_button_04.png"; if ( v8 <= v9 ) v10 = "GJ_button_04.png"; } } ButtonSprite::updateBGImage(v7, v10); ++v6; } while ( v6 < (unsigned int)sub_100720070(a1->m_zLayerSprites) ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source