// // LevelEditorLayer::updatePreviewParticles from 0x1000ee7a0 to 0x1000ee8b2 (274 bytes) // // 7 xrefs: // > EditorUI::keyDown @ 0x100050cab // > LevelEditorLayer::updateEditorMode @ 0x1000debbf // > LevelEditorLayer::onPlaytest @ 0x1000f290d // > LevelEditorLayer::onStopPlaytest @ 0x1000f2f42 // > MapSelectLayer::init @ 0x10026853f // > EditorPauseLayer::togglePreviewParticles @ 0x10029414a // > EditorOptionsLayer::onClose @ 0x10029e7b7 // // 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::updatePreviewParticles(LevelEditorLayer *a1) { GameManager *v1; // rax bool GameVariable; // al GameManager *v3; // rax unsigned int i; // r14d int v5; // eax float v6; // xmm0_4 ParticleGameObject *v7; // rax ParticleGameObject *v8; // r15 v1 = GameManager::sharedState(); a1->m_previewParticles = GameManager::getGameVariable(v1, "0117"); GameVariable = 1; if ( !a1->m_alwaysHideParticleIcons ) { v3 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v3, "0137"); } a1->m_hideParticleIcons = GameVariable; if ( (unsigned int)sub_100720070(a1->m_particleObjects) ) { for ( i = 0; i < (unsigned int)sub_100720070(a1->m_particleObjects); ++i ) { v7 = (ParticleGameObject *)sub_1007200C0(a1->m_particleObjects, i); v8 = v7; if ( a1->m_previewParticles ) { v7->m_notPreviewing = 0; if ( ((unsigned __int8 (__fastcall *)(ParticleGameObject *))v7->isVisible)(v7) ) ((void (__fastcall *)(ParticleGameObject *))v8->claimParticle)(v8); v5 = 50; v6 = 0.0; if ( a1->m_hideParticleIcons ) goto LABEL_9; } else { v7->m_notPreviewing = 1; ((void (__fastcall *)(ParticleGameObject *))v7->unclaimParticle)(v7); v5 = 255; } if ( a1->m_playbackMode == Playing ) v5 = 0; v6 = (float)v5; LABEL_9: ParticleGameObject::updateParticlePreviewArtOpacity(v8, v6); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source