From 0c7ed4f4fe05f99c974b73de4676461173037a32 Mon Sep 17 00:00:00 2001
From: Vanessa Karolek <vaka1997@uni-koblenz.de>
Date: Mon, 31 Jan 2022 19:07:57 +0100
Subject: [PATCH] adjust label IDs of the reset buttons

---
 projects/wobble_bobble/src/main.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/projects/wobble_bobble/src/main.cpp b/projects/wobble_bobble/src/main.cpp
index ea803c23..55280f7d 100644
--- a/projects/wobble_bobble/src/main.cpp
+++ b/projects/wobble_bobble/src/main.cpp
@@ -751,18 +751,18 @@ int main(int argc, const char **argv) {
 		ImGui::Checkbox("Render Grid", &renderGrid);
 		ImGui::SliderFloat("Alpha (PIC -> FLIP)", &alpha, 0.0f, 1.0f);
 		ImGui::SameLine(0.0f, 10.0f);
-		if (ImGui::SmallButton("Reset")) {
+		if (ImGui::SmallButton("Reset##alpha")) {
 		    alpha = 0.5f;
 		}
 		ImGui::SliderFloat("Beta (Alpha -> APIC)", &beta, 0.0f, 1.0f);
 		ImGui::SameLine(0.0f, 10.0f);
-		if (ImGui::SmallButton("Reset")) {
+		if (ImGui::SmallButton("Reset##beta")) {
 		    beta = 0.75f;
 		}
 		
 		ImGui::DragFloat3("Initial velocity", reinterpret_cast<float*>(&initialVelocity));
-		
-		if (ImGui::Button("Reset Particles")) {
+		ImGui::SameLine(0.0f, 10.0f);
+		if (ImGui::Button("Reset##particle_velocity")) {
 			resetParticles(particles, initialVelocity);
 		}
 		
-- 
GitLab