|
@@ -105,6 +105,18 @@ public class BetterControlsScreen extends GameOptionsScreen{
|
|
|
new Option<>(Float.valueOf(8.00F), Text.of("8x"))
|
|
|
);
|
|
|
|
|
|
+ final List<Option<Float>> flightVerticalBoostOptions = Arrays.asList(
|
|
|
+ new Option<>(Float.valueOf(0.00F), Text.of("None")),
|
|
|
+ new Option<>(Float.valueOf(0.25F), Text.of("+25%")),
|
|
|
+ new Option<>(Float.valueOf(0.50F), Text.of("+50%")),
|
|
|
+ new Option<>(Float.valueOf(0.75F), Text.of("+75%")),
|
|
|
+ new Option<>(Float.valueOf(1.00F), Text.of("+100%")),
|
|
|
+ new Option<>(Float.valueOf(1.50F), Text.of("+150%")),
|
|
|
+ new Option<>(Float.valueOf(2.00F), Text.of("+200%")),
|
|
|
+ new Option<>(Float.valueOf(2.50F), Text.of("+250%")),
|
|
|
+ new Option<>(Float.valueOf(3.00F), Text.of("+300%"))
|
|
|
+ );
|
|
|
+
|
|
|
generateKeyBindingWithModifierOption(y, elements, Text.of("Toggle Flight (Creative)"), cfg.keyToggleFlight);
|
|
|
|
|
|
y += ROW_HEIGHT;
|
|
@@ -124,23 +136,32 @@ public class BetterControlsScreen extends GameOptionsScreen{
|
|
|
|
|
|
y += ROW_HEIGHT * 4 / 3;
|
|
|
|
|
|
- generateLeftSideText(y, elements, Text.of("Speed Multiplier (Creative)"));
|
|
|
- elements.add(new DiscreteValueSliderWidget<>(col2(1), y, COL2_W, flightSpeedOptions, cfg.flightSpeedMpCreativeDefault, value -> cfg.flightSpeedMpCreativeDefault = value));
|
|
|
+ elements.add(new TextWidget(col4(2), y, COL4_W - TEXT_PADDING_RIGHT, Text.of("Creative"), CENTER));
|
|
|
+ elements.add(new TextWidget(col4(3), y, COL4_W - TEXT_PADDING_RIGHT, Text.of("Spectator"), CENTER));
|
|
|
+
|
|
|
+ y += ROW_HEIGHT * 7 / 8;
|
|
|
+
|
|
|
+ generateLeftSideText(y, elements, Text.of("Speed Multiplier (Default)"));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(2), y, COL4_W, flightSpeedOptions, cfg.flightSpeedMpCreativeDefault, value -> cfg.flightSpeedMpCreativeDefault = value));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(3), y, COL4_W, flightSpeedOptions, cfg.flightSpeedMpSpectatorDefault, value -> cfg.flightSpeedMpSpectatorDefault = value));
|
|
|
|
|
|
y += ROW_HEIGHT;
|
|
|
|
|
|
- generateLeftSideText(y, elements, Text.of("Speed Multiplier (Creative + Sprinting)"));
|
|
|
- elements.add(new DiscreteValueSliderWidget<>(col2(1), y, COL2_W, flightSpeedOptions, cfg.flightSpeedMpCreativeSprinting, value -> cfg.flightSpeedMpCreativeSprinting = value));
|
|
|
+ generateLeftSideText(y, elements, Text.of("Speed Multiplier (Sprinting)"));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(2), y, COL4_W, flightSpeedOptions, cfg.flightSpeedMpCreativeSprinting, value -> cfg.flightSpeedMpCreativeSprinting = value));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(3), y, COL4_W, flightSpeedOptions, cfg.flightSpeedMpSpectatorSprinting, value -> cfg.flightSpeedMpSpectatorSprinting = value));
|
|
|
|
|
|
y += ROW_HEIGHT;
|
|
|
|
|
|
- generateLeftSideText(y, elements, Text.of("Speed Multiplier (Spectator)"));
|
|
|
- elements.add(new DiscreteValueSliderWidget<>(col2(1), y, COL2_W, flightSpeedOptions, cfg.flightSpeedMpSpectatorDefault, value -> cfg.flightSpeedMpSpectatorDefault = value));
|
|
|
+ generateLeftSideText(y, elements, Text.of("Vertical Speed Boost (Default)"));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(2), y, COL4_W, flightVerticalBoostOptions, cfg.flightVerticalBoostCreativeDefault, value -> cfg.flightVerticalBoostCreativeDefault = value));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(3), y, COL4_W, flightVerticalBoostOptions, cfg.flightVerticalBoostSpectatorDefault, value -> cfg.flightVerticalBoostSpectatorDefault = value));
|
|
|
|
|
|
y += ROW_HEIGHT;
|
|
|
|
|
|
- generateLeftSideText(y, elements, Text.of("Speed Multiplier (Spectator + Sprinting)"));
|
|
|
- elements.add(new DiscreteValueSliderWidget<>(col2(1), y, COL2_W, flightSpeedOptions, cfg.flightSpeedMpSpectatorSprinting, value -> cfg.flightSpeedMpSpectatorSprinting = value));
|
|
|
+ generateLeftSideText(y, elements, Text.of("Vertical Speed Boost (Sprinting)"));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(2), y, COL4_W, flightVerticalBoostOptions, cfg.flightVerticalBoostCreativeSprinting, value -> cfg.flightVerticalBoostCreativeSprinting = value));
|
|
|
+ elements.add(new DiscreteValueSliderWidget<>(col4(3), y, COL4_W, flightVerticalBoostOptions, cfg.flightVerticalBoostSpectatorSprinting, value -> cfg.flightVerticalBoostSpectatorSprinting = value));
|
|
|
|
|
|
y += ROW_HEIGHT;
|
|
|
return y;
|