| 706 | } |
| 707 | |
| 708 | void _InspectorWindow::processParticle(ParticleDescription particle) |
| 709 | { |
| 710 | auto origParticle = particle; |
| 711 | auto energy = toFloat(particle.energy); |
| 712 | AlienImGui::InputFloat(AlienImGui::InputFloatParameters().name("Energy").textWidth(ParticleContentTextWidth), energy); |
| 713 | |
| 714 | particle.energy = energy; |
| 715 | if (particle != origParticle) { |
| 716 | _simulationFacade->changeParticle(particle); |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | float _InspectorWindow::calcWindowWidth() const |
| 721 | { |
nothing calls this directly
no test coverage detected