// // ColorAction::step from 0x4997bc to 0x4998a8 (236 bytes) // // 4 xrefs: // > LevelEditorLayer::runColorEffect @ 0x367e5c // > LevelEditorLayer::stopTriggersInGroup @ 0x36db14 // > GJBaseGameLayer::updateColor @ 0x46c140 // > GJEffectManager::updateColorEffects @ 0x49a23c // // 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 ColorAction::step(ColorAction *a1, float a2) { float v3; // s15 float m_duration; // s17 float v5; // s16 float v6; // s17 GLubyte v7; // r3 float m_fromOpacity; // r3 GLubyte b; // r3 int v10; // r0 float v11; // s15 if ( !a1->m_stepFinished && !a1->m_paused ) { v3 = a2 + a1->m_deltaTime; m_duration = a1->m_duration; v5 = v3 + a1->m_stepInterval; a1->m_deltaTime = v3; if ( v5 < m_duration ) { if ( v5 > 0.0 ) { v6 = v5 / m_duration; if ( v6 >= 1.0 ) goto LABEL_6; if ( v6 > 0.0 ) { *(cocos2d::ccColor3B *)&v10 = GameToolbox::multipliedColorValue( (cocos2d::ccColor3B)*(_DWORD *)&a1->m_fromColor.r, (cocos2d::ccColor3B)(a1->m_toColor.r | (a1->m_toColor.g << 8) | (a1->m_toColor.b << 16)), v6); v11 = a1->m_fromOpacity + (float)((float)(a1->m_toOpacity - a1->m_fromOpacity) * v6); *(_WORD *)&a1->m_color.r = v10; a1->m_color.b = BYTE2(v10); a1->m_currentOpacity = v11; goto LABEL_11; } } b = a1->m_fromColor.b; *(_WORD *)&a1->m_color.r = *(_WORD *)&a1->m_fromColor.r; a1->m_color.b = b; m_fromOpacity = a1->m_fromOpacity; goto LABEL_9; } LABEL_6: v7 = a1->m_toColor.b; *(_WORD *)&a1->m_color.r = *(_WORD *)&a1->m_toColor.r; a1->m_color.b = v7; m_fromOpacity = a1->m_toOpacity; LABEL_9: a1->m_currentOpacity = m_fromOpacity; LABEL_11: a1->m_stepFinished = v5 >= a1->m_duration; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source