Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
}

Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ org.gradle.parallel = true

# Fabric properties
# check these on https://fabricmc.net/versions.html
minecraft_version = 1.20.4
yarn_mappings = 1.20.4+build.3
loader_version = 0.15.3
minecraft_version = 1.20.6
yarn_mappings = 1.20.6+build.3
loader_version = 0.15.11

# Mod properties
mod_version = 1.1.2
mod_version = 1.2.0
maven_group = retr0.carrotconfig
archives_base_name = carrotconfig

# Dependencies
fabric_version = 0.92.0+1.20.4
fabric_version = 0.99.0+1.20.6
# https://modrinth.com/mod/modmenu/versions#all-versions
mod_menu_version = 9.0.0
mod_menu_version = 10.0.0-beta.1
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.text.Style;
import net.minecraft.text.Text;
import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;
import retr0.carrotconfig.CarrotConfigClient;
import retr0.carrotconfig.entries.*;

Expand All @@ -28,7 +29,7 @@ public class CarrotConfigScreen extends Screen {
public ConfigEntryList entryList;
public List<CarrotConfig.EntryInfo> entries;
private final Map<AbstractConfigEntry, Field> entryMap = new HashMap<>();

public static final Identifier OPTIONS_BACKGROUND_TEXTURE = new Identifier("textures/gui/options_background.png");
protected CarrotConfigScreen(Screen parent, String modId, List<CarrotConfig.EntryInfo> entries) {
super(Text.translatable(modId + ".carrotconfig.title").formatted(Formatting.BOLD, Formatting.GRAY));

Expand Down Expand Up @@ -98,7 +99,7 @@ else if (defaultValue instanceof HashMap<?, ?> defaultMap)

@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
renderBackgroundTexture(context);
renderBackgroundTexture(context, OPTIONS_BACKGROUND_TEXTURE, 0, 0, 0.0F, 0.0F, this.width, this.height);
super.render(context, mouseX, mouseY, delta);

context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 10, 0xFFFFFF);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
}


@Override public int getScrollbarPositionX() { return width - 7; }
@Override public int getScrollbarX() { return width - 7; }

@Override public int getRowWidth() { return 10000; }
}