diff --git a/src/openonyx/features/hud/CustomGuiPart3.java b/src/openonyx/features/hud/CustomGuiPart3.java new file mode 100644 index 0000000..a327ee5 --- /dev/null +++ b/src/openonyx/features/hud/CustomGuiPart3.java @@ -0,0 +1,14 @@ +package openonyx.features.hud; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.NumberSetting; + +public final class CustomGuiPart3 extends SettingGroup { + public final NumberSetting keepDim = new NumberSetting("Keep dim", 0.0, 0.0, 100.0, 1.0) + .withSuffix("%") + .describe("How much of the vanilla darkening to keep"); + + private CustomGuiPart3() { + super("No GUI shadow", true); + } +} diff --git a/src/openonyx/features/hud/CustomGuiPart4.java b/src/openonyx/features/hud/CustomGuiPart4.java new file mode 100644 index 0000000..a1f4cab --- /dev/null +++ b/src/openonyx/features/hud/CustomGuiPart4.java @@ -0,0 +1,17 @@ +package openonyx.features.hud; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.BooleanSetting; +import openonyx.history.internal.NumberSetting; + +public final class CustomGuiPart4 extends SettingGroup { + public final NumberSetting scale = new NumberSetting("Scale", 1.0, 0.6, 1.6, 0.05).withSuffix("x"); + public final BooleanSetting slotGlide = new BooleanSetting("Slot glide", true).describe("The selection slides between slots instead of jumping"); + public final BooleanSetting blur; + public final BooleanSetting itemPop = new BooleanSetting("Item pop", true).describe("Items grow into place when a slot changes"); + + private CustomGuiPart4() { + super("Hotbar", true); + this.blur = new BooleanSetting("Blur", true).describe("Frost the bar over what is behind it (needs ClickGui's frosted glass)"); + } +} diff --git a/src/openonyx/features/hud/CustomGuiPart5.java b/src/openonyx/features/hud/CustomGuiPart5.java new file mode 100644 index 0000000..60bef45 --- /dev/null +++ b/src/openonyx/features/hud/CustomGuiPart5.java @@ -0,0 +1,28 @@ +package openonyx.features.hud; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.BooleanSetting; +import openonyx.history.internal.EnumSetting; +import openonyx.history.internal.NumberSetting; +import openonyx.render.group_w.FontRendererHook; + +public final class CustomGuiPart5 extends SettingGroup { + public final NumberSetting size; + public final EnumSetting weight = new EnumSetting<>("Weight", WeightMode.MEDIUM) + .onChange(weightMode -> FontRendererHook.L()) + .describe("How heavy the replacement font sits against the world"); + public final NumberSetting letterSpacing; + public final BooleanSetting shadow; + + private CustomGuiPart5() { + super("Font", true); + this.size = new NumberSetting("Size", 1.0, 0.85, 1.2, 0.01) + .withSuffix("x") + .onChange(double_ -> FontRendererHook.L()) + .describe("Scales the letters inside the 9px line the game lays text out on"); + this.letterSpacing = new NumberSetting("Letter spacing", 0.0, -1.0, 1.0, 0.05) + .withSuffix(" px") + .describe("Tightens or opens the gap between letters, in the game's own pixels"); + this.shadow = new BooleanSetting("Shadow", true).describe("Keep the drop shadow the game asks for"); + } +} diff --git a/src/openonyx/features/hud/CustomGuiPart6.java b/src/openonyx/features/hud/CustomGuiPart6.java new file mode 100644 index 0000000..1103490 --- /dev/null +++ b/src/openonyx/features/hud/CustomGuiPart6.java @@ -0,0 +1,19 @@ +package openonyx.features.hud; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.BooleanSetting; +import openonyx.history.internal.NumberSetting; + +public final class CustomGuiPart6 extends SettingGroup { + public final NumberSetting positionY; + public final NumberSetting positionX; + public final BooleanSetting segments = new BooleanSetting("Segments", false).describe("Break the bar into notches instead of one continuous fill"); + public final NumberSetting scale; + + private CustomGuiPart6() { + super("Bossbar", true); + this.positionX = new NumberSetting("Position X", 50.0, 0.0, 100.0, 0.01).visibleWhen(() -> false); + this.positionY = new NumberSetting("Position Y", 2.0, 0.0, 100.0, 0.01).visibleWhen(() -> false); + this.scale = new NumberSetting("Scale", 1.0, 0.5, 2.0, 0.05).visibleWhen(() -> false); + } +} diff --git a/src/openonyx/features/hud/CustomGuiPart7.java b/src/openonyx/features/hud/CustomGuiPart7.java new file mode 100644 index 0000000..c23d4bf --- /dev/null +++ b/src/openonyx/features/hud/CustomGuiPart7.java @@ -0,0 +1,19 @@ +package openonyx.features.hud; + +import openonyx.history.SettingGroup; +import openonyx.history.internal.BooleanSetting; +import openonyx.history.internal.NumberSetting; + +public final class CustomGuiPart7 extends SettingGroup { + public final NumberSetting duration = new NumberSetting("Duration", 300.0, 80.0, 600.0, 10.0).withSuffix(" ms"); + public final NumberSetting scaleFrom = new NumberSetting("Scale from", 0.92, 0.5, 1.0, 0.01) + .withSuffix("x") + .describe("How small the screen starts before it settles"); + public final BooleanSetting fade = new BooleanSetting("Fade", true).describe("Fade the whole screen in, not just scale it"); + public final BooleanSetting centeredContainers = new BooleanSetting("Centered containers", true) + .describe("Stop the inventory sliding sideways when a potion effect is running"); + + private CustomGuiPart7() { + super("Open animation", true); + } +}