zoom edit
This commit is contained in:
6
main.c
6
main.c
@ -378,7 +378,7 @@ void DrawControlPanel(Michelson *mic) {
|
||||
DrawText(TextFormat("Position M1 : %.2f um", mic->d1), startX, startY, 20, ORANGE);
|
||||
|
||||
// Pas des + et -
|
||||
float stepD1 = speedMode ? 0.05f : 0.0006f;
|
||||
float stepD1 = speedMode ? 0.05f : 0.006f;
|
||||
|
||||
if (GuiButtonRepeat((Rectangle){startX, startY + 30, btnSize, 25}, "-", shouldRepeat)) mic->d1 -= stepD1;
|
||||
GuiSlider((Rectangle){startX + btnSize + 5, startY + 30, sliderWidth - 75, 25}, NULL, NULL, &mic->d1, 100, 600);
|
||||
@ -389,7 +389,7 @@ void DrawControlPanel(Michelson *mic) {
|
||||
// Angle M1 X
|
||||
startY += 90;
|
||||
DrawText(TextFormat("Inclinaison M1: %.3f deg", mic->angleM1), startX, startY, 20, ORANGE);
|
||||
float stepAngle = speedMode ? 0.05f : 0.00006f;
|
||||
float stepAngle = speedMode ? 0.05f : 0.0006f;
|
||||
if (GuiButtonRepeat((Rectangle){startX, startY + 30, btnSize, 25}, "-", shouldRepeat)) mic->angleM1 -= stepAngle;
|
||||
GuiSlider((Rectangle){startX + btnSize + 5, startY + 30, sliderWidth - 75, 25}, 0, 0, &mic->angleM1, -1.0f, 1.0f);
|
||||
if (GuiButtonRepeat((Rectangle){startX + btnSize + sliderWidth - 65, startY + 30, btnSize, 25}, "+", shouldRepeat)) mic->angleM1 += stepAngle;
|
||||
@ -397,7 +397,7 @@ void DrawControlPanel(Michelson *mic) {
|
||||
|
||||
// Angles M1 Y
|
||||
startY += 90;
|
||||
stepAngle = speedMode ? 0.05f : 0.00006f;
|
||||
stepAngle = speedMode ? 0.05f : 0.0006f;
|
||||
DrawText(TextFormat("Inclinaison Y: %.3f deg", mic->angleM1_Y), startX, startY, 20, ORANGE);
|
||||
if (GuiButtonRepeat((Rectangle){startX, startY + 30, btnSize, 25}, "-", shouldRepeat)) mic->angleM1_Y -= stepAngle;
|
||||
GuiSlider((Rectangle){startX + btnSize + 5, startY + 30, sliderWidth - 75, 25}, 0, 0, &mic->angleM1_Y, -1.0f, 1.0f);
|
||||
|
||||
Reference in New Issue
Block a user