Skip to content

Commit

Permalink
Fixed Module Settings from having no children. Change default Colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonk9043 committed Dec 21, 2023
1 parent fd29aef commit fada8b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/aoba/AobaClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class AobaClient {
public static final String NAME = "Aoba";
public static final String VERSION = "1.20.2";
public static final String AOBA_VERSION = "1.4-preview-1";
public static final String AOBA_VERSION = "1.4-preview-2";

public static MinecraftClient MC;
public static IMinecraftClient IMC;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/aoba/gui/GuiManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public GuiManager() {

renderUtils = Aoba.getInstance().renderUtils;
borderColor = new ColorSetting("hud_border_color", "Color of the borders.", new Color(0, 0, 0));
backgroundColor = new ColorSetting("hud_background_color", "Color of the background.", new Color(128, 128, 128, 50));
color = new ColorSetting("hud_foreground_color", "The color of the HUD", new Color(1f, 0f, 0f));
backgroundColor = new ColorSetting("hud_background_color", "Color of the background.", new Color(0, 0, 0, 50));
color = new ColorSetting("hud_foreground_color", "The color of the HUD", new Color(1.0f, 1.0f, 1.0f));
currentColor = color.getValue();
rainbowColor = new RainbowColor();
clickGuiNavBar = new NavigationBar();
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/aoba/gui/tabs/ModuleSettingsTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public ModuleSettingsTab(String title, float x, float y, Module module) {

KeybindComponent keybindComponent = new KeybindComponent(stackPanel, module.getBind());
keybindComponent.setHeight(30);

stackPanel.addChild(keybindComponent);

for (Setting setting : this.module.getSettings()) {
Component c;
if (setting instanceof FloatSetting) {
Expand Down

0 comments on commit fada8b5

Please sign in to comment.