add libgui dependency for production
This commit is contained in:
parent
ffb44737bf
commit
2ade757721
@ -40,6 +40,7 @@ dependencies {
|
|||||||
include 'com.alibaba:fastjson:1.2.56'
|
include 'com.alibaba:fastjson:1.2.56'
|
||||||
include 'com.googlecode.json-simple:json-simple:1.1.1'
|
include 'com.googlecode.json-simple:json-simple:1.1.1'
|
||||||
include 'com.cedarsoftware:json-io:4.10.1'
|
include 'com.cedarsoftware:json-io:4.10.1'
|
||||||
|
include "io.github.cottonmc:LibGui:3.2.2+1.16.3"
|
||||||
|
|
||||||
|
|
||||||
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
||||||
|
@ -70,7 +70,6 @@ public class ButtonGUI extends LightweightGuiDescription {
|
|||||||
WButton button = new WButton(new TranslatableText(name.getText()));
|
WButton button = new WButton(new TranslatableText(name.getText()));
|
||||||
button.setOnClick(() -> {
|
button.setOnClick(() -> {
|
||||||
if (isDeleteToggled.getToggle()) {
|
if (isDeleteToggled.getToggle()) {
|
||||||
System.out.println("Should delete " + button.getLabel());
|
|
||||||
ConfigFile.removeObject(newJsonObject);
|
ConfigFile.removeObject(newJsonObject);
|
||||||
root.remove(button);
|
root.remove(button);
|
||||||
} else {
|
} else {
|
||||||
@ -104,7 +103,6 @@ public class ButtonGUI extends LightweightGuiDescription {
|
|||||||
WButton button = new WButton(new TranslatableText(name));
|
WButton button = new WButton(new TranslatableText(name));
|
||||||
button.setOnClick(() -> {
|
button.setOnClick(() -> {
|
||||||
if (isDeleteToggled.getToggle()) {
|
if (isDeleteToggled.getToggle()) {
|
||||||
System.out.println("Should delete " + button.getLabel());
|
|
||||||
ConfigFile.removeObject(object);
|
ConfigFile.removeObject(object);
|
||||||
root.remove(button);
|
root.remove(button);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user