Fix all config "Reset" buttons being timed

This commit is contained in:
ButterscotchVanilla committed 2021-12-16 21:33:48 -05:00
1 parent be2c010b5a
commit a5e4b4d8e2
1 file changed
+12 -1
@@ -109,7 +109,18 @@ public class SkeletonConfigGUI extends EJBagNoStretch {
add(new AdjButton("+", config, 0.01f), c(1, row, 2));
add(new SkeletonLabel(config), c(2, row, 2));
add(new AdjButton("-", config, -0.01f), c(3, row, 2));
add(new TimedResetButton("Reset", config), c(4, row, 2));
// Only use a timer on configs that need time to get into position for
switch (config) {
case TORSO:
case LEGS_LENGTH:
add(new TimedResetButton("Reset", config), c(4, row, 2));
break;
default:
add(new ResetButton("Reset", config), c(4, row, 2));
break;
}
row++;
}