Ursprung
e5df33c19a
Commit
743ec5d565
@ -77,7 +77,10 @@ public class ScriptEditScreen extends Screen {
|
|||||||
@Override
|
@Override
|
||||||
protected void init() {
|
protected void init() {
|
||||||
this.addDrawableChild(
|
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);
|
this.client.setScreen(null);
|
||||||
finalizeBook();
|
finalizeBook();
|
||||||
})
|
})
|
||||||
@ -91,6 +94,7 @@ public class ScriptEditScreen extends Screen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final Text DONE = Text.translatable("gui.done");
|
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");
|
public static final Text BOOK = Text.translatable("item.minecraft.book");
|
||||||
|
|
||||||
private static class Button extends PressableWidget {
|
private static class Button extends PressableWidget {
|
||||||
|
@ -2,4 +2,4 @@ build:
|
|||||||
- "./gradlew remapJar"
|
- "./gradlew remapJar"
|
||||||
|
|
||||||
artifacts:
|
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