Merge remote-tracking branch 'origin/1.19.2' into 1.19.4
This commit is contained in:
commit
6536c49c3c
|
|
@ -1,11 +1,10 @@
|
|||
package org.embeddedt.modernfix.screen;
|
||||
|
||||
import com.mojang.blaze3d.vertex.PoseStack;
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.client.gui.components.Button;
|
||||
import net.minecraft.client.gui.screens.Screen;
|
||||
import net.minecraft.network.chat.CommonComponents;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.network.chat.Style;
|
||||
import net.minecraft.network.chat.*;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class ModernFixConfigScreen extends Screen {
|
||||
|
|
@ -13,7 +12,7 @@ public class ModernFixConfigScreen extends Screen {
|
|||
private Screen lastScreen;
|
||||
|
||||
public boolean madeChanges = false;
|
||||
private Button doneButton;
|
||||
private Button doneButton, wikiButton;
|
||||
public ModernFixConfigScreen(Screen lastScreen) {
|
||||
super(Component.translatable("modernfix.config"));
|
||||
this.lastScreen = lastScreen;
|
||||
|
|
@ -23,9 +22,13 @@ public class ModernFixConfigScreen extends Screen {
|
|||
protected void init() {
|
||||
this.optionList = new OptionList(this, this.minecraft);
|
||||
this.addWidget(this.optionList);
|
||||
this.wikiButton = new Button.Builder(Component.translatable("modernfix.config.wiki"), (arg) -> {
|
||||
Util.getPlatform().openUri("https://github.com/embeddedt/ModernFix/wiki/Summary-of-Patches");
|
||||
}).pos(this.width / 2 - 155, this.height - 29).size(150, 20).build();
|
||||
this.doneButton = new Button.Builder(CommonComponents.GUI_DONE, (arg) -> {
|
||||
this.onClose();
|
||||
}).pos(this.width / 2 - 100, this.height - 29).size(200, 20).build();
|
||||
}).pos(this.width / 2 - 155 + 160, this.height - 29).size(150, 20).build();
|
||||
this.addRenderableWidget(this.wikiButton);
|
||||
this.addRenderableWidget(this.doneButton);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
"modernfix.perf_mod_warning": "It is recommended to install the mods, but the warning(s) can be disabled in the ModernFix config.",
|
||||
"modernfix.config": "ModernFix mixin config",
|
||||
"modernfix.config.done_restart": "Done (restart required)",
|
||||
"modernfix.config.wiki": "Open wiki",
|
||||
"modernfix.message.reload_config": "A mod config file change was detected. To prevent loading files that aren't done saving, reloading must be triggered by running /mfrc.",
|
||||
"modernfix.option.on": "on",
|
||||
"modernfix.option.off": "off",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user