Aggiunta finestra selezione moltiplicatore tempo

This commit is contained in:
2026-06-22 12:23:23 +02:00
parent c6094c6a44
commit 539045bd80
3 changed files with 11 additions and 5 deletions
+4
View File
@@ -42,3 +42,7 @@ Size=353,1005
Pos=400,0
Size=400,30
[Window][Set time multiplier]
Pos=400,640
Size=400,30
Binary file not shown.
+7 -5
View File
@@ -335,21 +335,21 @@ void doGUI(State &gs)
gs.selectedPlane = (ReferencePlane)currentPlane;
gs.updateCollections();
}
ImGui::End();
//Finestra gestione velocità di riproduzione
ImGui::Begin("Set time multiplier", 0,sdp_flags);
const float TimeMul[] = {0.5, 0.75, 1, 1.25, 1.5};
const char* TimeMulChar[] = {"0.5", "0.75", "1", "1.25", "1.5"};
int id = 2;
ImGui::SliderInt("Selected Plane", &id,0,4,TimeMulChar[id]);
gs.tMul* = TimeMul[id];
static int Timeid = 2;
ImGui::SliderInt("Time", &Timeid,0,4,TimeMulChar[Timeid]);
*gs.tMul = TimeMul[Timeid];
ImGui::End();
//Finestra controllo sovrapposizione
ImGui::End();
sf::Vector2u wsize = gs.window.getSize();
@@ -357,6 +357,8 @@ void doGUI(State &gs)
ImGui::SetWindowSize("Set data position",ImVec2(wsize.x,30));
ImGui::SetWindowPos("Set visualization plane",ImVec2(wsize.x-400,0));
ImGui::SetWindowSize("Set visualization plane",ImVec2(400,30));
ImGui::SetWindowPos("Set time multiplier",ImVec2(wsize.x-400,wsize.y - 60));
ImGui::SetWindowSize("Set time multiplier",ImVec2(400,30));
ImGui::SFML::Render(gs.window);
}