Ursprung
e5df33c19a
Commit
743ec5d565
@ -77,7 +77,10 @@ public class ScriptEditScreen extends Screen {
|
||||
@Override
|
||||
protected void init() {
|
||||
this.addDrawableChild(
|
||||
new Button(DONE, this.width / 2 - 98 / 2, height - 55, () -> {
|
||||
new Button(CANCEL, this.width / 2 - 100, height - 55, () -> this.client.setScreen(null))
|
||||
);
|
||||
this.addDrawableChild(
|
||||
new Button(DONE, this.width / 2 + 2, height - 55, () -> {
|
||||
this.client.setScreen(null);
|
||||
finalizeBook();
|
||||
})
|
||||
@ -91,6 +94,7 @@ public class ScriptEditScreen extends Screen {
|
||||
}
|
||||
|
||||
public static final Text DONE = Text.translatable("gui.done");
|
||||
public static final Text CANCEL = Text.translatable("gui.cancel");
|
||||
public static final Text BOOK = Text.translatable("item.minecraft.book");
|
||||
|
||||
private static class Button extends PressableWidget {
|
||||
|
@ -2,4 +2,4 @@ build:
|
||||
- "./gradlew remapJar"
|
||||
|
||||
artifacts:
|
||||
"/binarys/AdvancedScripts.jar": "build/libs/AdvancedScripts-1.0.0.jar"
|
||||
"/binarys/AdvancedScripts.jar": "build/libs/AdvancedScripts-2.0.0.jar"
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren