Upload files to "src/openonyx/features/hud"
This commit is contained in:
1 parent
c00c1adefc
commit
e37b058c6a
5 files changed
+97
No files matched your search
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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)");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<WeightMode> 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user