Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastoid501 committed Jul 19, 2024
1 parent c9bf5ff commit 466985c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.16.3
yarn_mappings=1.16.3+build.47
minecraft_version=1.16.1
yarn_mappings=1.16.1+build.21
loader_version=0.15.11

# Mod Properties
mod_version=1.0.1
maven_group=net.plastoid501.movement
archives_base_name=movement-in-gui-mc1.16.3
archives_base_name=movement-in-gui-mc1.16.1

# Dependencies
fabric_version=0.25.0+build.415-1.16
fabric_version=0.18.0+build.387-1.16.1
modmenu_version=1.14.14
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ConfigScreen extends Screen {
private final Screen parent;

public ConfigScreen(Screen parent) {
super(Text.of("Movement In GUI"));
super(Text.method_30163("Movement In GUI"));
this.parent = parent;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public ConfigWidget(ConfigScreen parent, MinecraftClient client) {

private void initEntries(MinecraftClient client) {
if (CONFIG != null) {
this.addEntry(new CategoryEntry(Text.of("-- Toggle --"), client.textRenderer));
this.addEntry(new CategoryEntry(Text.method_30163("-- Toggle --"), client.textRenderer));
Configs.getToggles().keySet().forEach((key) -> this.addEntry(new ToggleEntry(key, client.textRenderer, CONFIG)));
this.addEntry(new CategoryEntry(Text.of(""), client.textRenderer));
this.addEntry(new CategoryEntry(Text.method_30163(""), client.textRenderer));
}
}

Expand Down Expand Up @@ -107,14 +107,14 @@ public class ToggleEntry extends Entry {
this.textRenderer = textRenderer;
this.defaultConfig = Configs.getToggles().get(key);
this.enable = config.getToggles().get(key).isEnable();
this.text = Text.of(key);
this.text = Text.method_30163(key);
//this.text.setTooltip(Tooltip.of(Text.literal(this.defaultConfig.getNarrator())));
this.enableButton = new ButtonWidget(0, 0, 60, 20, Text.of(this.enable ? "ON" : "OFF").copy().setStyle(Style.EMPTY.withColor(TextColor.fromRgb(this.enable ? Color.GREEN.getRGB() : Color.red.getRGB()))), button -> {
this.enableButton = new ButtonWidget(0, 0, 60, 20, Text.method_30163(this.enable ? "ON" : "OFF").copy().setStyle(Style.EMPTY.withColor(TextColor.fromRgb(this.enable ? Color.GREEN.getRGB() : Color.red.getRGB()))), button -> {
this.enable = !this.enable;
FileUtil.updateToggleConfig(key, new JToggleConfig(this.enable));
this.update();
});
this.resetButton = new ButtonWidget(0, 0, 40, 20, Text.of("RESET"), button -> {
this.resetButton = new ButtonWidget(0, 0, 40, 20, Text.method_30163("RESET"), button -> {
this.enable = this.defaultConfig.isEnable();
FileUtil.updateToggleConfig(key, new JToggleConfig(this.enable));
this.update();
Expand All @@ -141,7 +141,7 @@ public void render(MatrixStack matrices, int index, int y, int x, int entryWidth

@Override
void update() {
this.enableButton.setMessage(Text.of(this.enable ? "ON" : "OFF").copy().setStyle(Style.EMPTY.withColor(TextColor.fromRgb(this.enable ? Color.GREEN.getRGB() : Color.red.getRGB()))));
this.enableButton.setMessage(Text.method_30163(this.enable ? "ON" : "OFF").copy().setStyle(Style.EMPTY.withColor(TextColor.fromRgb(this.enable ? Color.GREEN.getRGB() : Color.red.getRGB()))));
this.resetButton.active = this.defaultConfig.isEnable() != this.enable;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import net.minecraft.client.gui.screen.*;
import net.minecraft.client.gui.screen.options.GameOptionsScreen;
import net.minecraft.client.gui.screen.options.OptionsScreen;
import net.minecraft.client.gui.screen.pack.PackScreen;
import net.minecraft.client.gui.screen.pack.ResourcePackScreen;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.options.KeyBinding;
import net.minecraft.client.util.InputUtil;
Expand Down Expand Up @@ -35,7 +35,7 @@ private boolean modifyTickMovement(KeyBinding instance) {
client.currentScreen instanceof StatsScreen ||
client.currentScreen instanceof OpenToLanScreen ||
client.currentScreen instanceof ConfirmScreen ||
client.currentScreen instanceof PackScreen ||
client.currentScreen instanceof ResourcePackScreen ||
//client.currentScreen instanceof CreditsAndAttributionScreen ||
client.currentScreen instanceof CreditsScreen ||
client.currentScreen instanceof ModsScreen ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import net.minecraft.client.gui.screen.*;
import net.minecraft.client.gui.screen.options.GameOptionsScreen;
import net.minecraft.client.gui.screen.options.OptionsScreen;
import net.minecraft.client.gui.screen.pack.PackScreen;
import net.minecraft.client.gui.screen.pack.ResourcePackScreen;
import net.minecraft.client.input.KeyboardInput;
import net.minecraft.client.options.KeyBinding;
import net.minecraft.client.util.InputUtil;
Expand Down Expand Up @@ -35,7 +35,7 @@ private boolean modifyTick(KeyBinding instance) {
client.currentScreen instanceof StatsScreen ||
client.currentScreen instanceof OpenToLanScreen ||
client.currentScreen instanceof ConfirmScreen ||
client.currentScreen instanceof PackScreen ||
client.currentScreen instanceof ResourcePackScreen ||
//client.currentScreen instanceof CreditsAndAttributionScreen ||
client.currentScreen instanceof CreditsScreen ||
client.currentScreen instanceof ModsScreen ||
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"movement-in-gui.mixins.json"
],
"depends": {
"minecraft": ">=1.16.2 <=1.16.3"
"minecraft": ">=1.16 <=1.16.1"
},
"suggests": {
"another-mod": "*"
Expand Down

0 comments on commit 466985c

Please sign in to comment.