//
// LevelEditorLayer::updatePreviewParticle from 0x10035e1c8 to 0x10035e26c (164 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x100359cf0
// > LevelEditorLayer::updatePreviewParticles @ 0x10036064c
//
// 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 LevelEditorLayer::updatePreviewParticle(LevelEditorLayer *a1, ParticleGameObject *a2)
{
int *p_m_activeGradients; // x21
float v5; // s0
unsigned int v6; // w8
p_m_activeGradients = &a1->m_activeGradients;
if ( !a1->m_previewParticles )
{
a2->m_notPreviewing = 1;
((void (__fastcall *)(ParticleGameObject *))a2->unclaimParticle)(a2);
v6 = 255;
goto LABEL_7;
}
a2->m_notPreviewing = 0;
if ( ((unsigned int (__fastcall *)(ParticleGameObject *))a2->isVisible)(a2) )
((void (__fastcall *)(ParticleGameObject *))a2->claimParticle)(a2);
v5 = 0.0;
if ( (*((_BYTE *)p_m_activeGradients + 1462) & 1) == 0 )
{
v6 = 50;
LABEL_7:
if ( a1->m_playbackMode == Playing )
v6 = 0;
v5 = (float)v6;
}
ParticleGameObject::updateParticlePreviewArtOpacity(a2, v5);
}