This commit is contained in:
asphy
2023-12-02 22:45:57 +03:00
committed by GitHub
parent 79f0aa868e
commit 2efff0c2a8
2 changed files with 6 additions and 0 deletions
@@ -46,6 +46,7 @@ public class OyVey implements ModInitializer, ClientModInitializer {
configManager = new ConfigManager();
configManager.load();
colorManager.init();
Runtime.getRuntime().addShutdownHook(new Thread(() -> configManager.save()));
}
}
@@ -13,6 +13,11 @@ public class ColorManager {
private float alpha = 1.0f;
private Color color = new Color(this.red, this.green, this.blue, this.alpha);
public void init() {
ClickGui ui = ClickGui.getInstance();
setColor(ui.red.getValue(), ui.green.getValue(), ui.blue.getValue(), ui.hoverAlpha.getValue());
}
public Color getColor() {
return this.color;
}