mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-15 17:05:09 +01:00
MidnightLib 0.6.1 - Fix reset button for color fields
- Fix reset button never being inactive for color config options - Always make color button non-interactive
This commit is contained in:
@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
|
||||
loader_version=0.14.6
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.6.0
|
||||
mod_version = 0.6.1
|
||||
maven_group = eu.midnightdust
|
||||
archives_base_name = midnightlib
|
||||
|
||||
|
||||
@@ -306,7 +306,8 @@ public abstract class MidnightConfig {
|
||||
ButtonWidget colorButton = new ButtonWidget(width - 185, 0, 20, 20, Text.literal("⬛"), (button -> {}));
|
||||
try {colorButton.setMessage(Text.literal("⬛").setStyle(Style.EMPTY.withColor(Color.decode(info.tempValue).getRGB())));} catch (Exception ignored) {}
|
||||
info.colorButton = colorButton;
|
||||
this.list.addButton(List.of(widget, colorButton, resetButton), name, info);
|
||||
colorButton.active = false;
|
||||
this.list.addButton(List.of(widget, resetButton, colorButton), name, info);
|
||||
}
|
||||
else this.list.addButton(List.of(widget, resetButton), name, info);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user