diff options
| author | shedaniel <daniel@shedaniel.me> | 2024-09-17 21:54:19 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-09-17 22:11:00 +0800 |
| commit | ed9454b4d82fbfc4e7b80369cc0c9ba5b6bc23d6 (patch) | |
| tree | 70b204e876ab9aa640c29982b432bcc863a2a254 /runtime/src | |
| parent | 581543cb56b8a85d32d7237e0d37fb5ad24da9b5 (diff) | |
| parent | 20317a973895ad237fb58adc2b2b1ece8a45cea4 (diff) | |
| download | RoughlyEnoughItems-ed9454b4d82fbfc4e7b80369cc0c9ba5b6bc23d6.tar.gz RoughlyEnoughItems-ed9454b4d82fbfc4e7b80369cc0c9ba5b6bc23d6.tar.bz2 RoughlyEnoughItems-ed9454b4d82fbfc4e7b80369cc0c9ba5b6bc23d6.zip | |
Merge remote-tracking branch 'origin/14.x-1.20.4' into 15.x-1.20.5
# Conflicts:
# neoforge/src/main/resources/META-INF/accesstransformer.cfg
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/client/gui/performance/DisplayRegistryInfoScreen.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/performance/DisplayRegistryInfoScreen.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/performance/DisplayRegistryInfoScreen.java index f0cb9de14..168644367 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/performance/DisplayRegistryInfoScreen.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/performance/DisplayRegistryInfoScreen.java @@ -24,7 +24,6 @@ package me.shedaniel.rei.impl.client.gui.performance; import com.mojang.blaze3d.systems.RenderSystem; -import me.shedaniel.clothconfig2.gui.widget.DynamicElementListWidget; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.registry.display.DisplayRegistry; import me.shedaniel.rei.api.common.category.CategoryIdentifier; @@ -33,6 +32,7 @@ import me.shedaniel.rei.api.common.util.CollectionUtils; import me.shedaniel.rei.impl.client.gui.modules.Menu; import me.shedaniel.rei.impl.client.gui.modules.entries.ToggleMenuEntry; import me.shedaniel.rei.impl.client.gui.screen.ScreenWithMenu; +import me.shedaniel.rei.impl.client.gui.widget.UpdatedListWidget; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.Minecraft; @@ -40,7 +40,6 @@ import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.components.Button; import net.minecraft.client.gui.components.events.GuiEventListener; import net.minecraft.client.gui.narration.NarratableEntry; -import net.minecraft.client.gui.screens.Screen; import net.minecraft.network.chat.Component; import net.minecraft.util.FormattedCharSequence; @@ -102,18 +101,17 @@ public class DisplayRegistryInfoScreen extends ScreenWithMenu { @Override public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) { - renderDirtBackground(graphics); + super.render(graphics, mouseX, mouseY, delta); list.render(graphics, mouseX, mouseY, delta); graphics.drawString(this.font, this.title.getVisualOrderText(), (int) (this.width / 2.0F - this.font.width(this.title) / 2.0F), 12, -1); - super.render(graphics, mouseX, mouseY, delta); } - public static abstract class ListEntry extends DynamicElementListWidget.ElementEntry<ListEntry> { + public static abstract class ListEntry extends UpdatedListWidget.ElementEntry<ListEntry> { } - private class ListWidget extends DynamicElementListWidget<ListEntry> { + private class ListWidget extends UpdatedListWidget<ListEntry> { public ListWidget() { - super(DisplayRegistryInfoScreen.this.minecraft, DisplayRegistryInfoScreen.this.width, DisplayRegistryInfoScreen.this.height, 30, DisplayRegistryInfoScreen.this.height, Screen.BACKGROUND_LOCATION); + super(DisplayRegistryInfoScreen.this.minecraft, DisplayRegistryInfoScreen.this.width, DisplayRegistryInfoScreen.this.height, 30, DisplayRegistryInfoScreen.this.height); } @Override |
