Archive incari-client (client, 26.3, clean)
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 2 Oct 2026 15:15:39 -0400
|
||||
Subject: [PATCH] gui: Keep the HUD in a texture between refreshes
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Gui.java b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
index 3e689e6a2a8cc8d5d6d9736bbe2cedd6f115f9d7..3922f2f5b5628bed187739b9a5fd012dc0a22095 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
@@ -149,2 +149,5 @@
|
||||
this.guiRenderState.reset();
|
||||
+ // Incari start: the HUD kept in a texture between refreshes (ADR 0030)
|
||||
+ incari.client.gui.HudCache.beginFrame(shouldRenderLevel && this.overlay == null && this.screen == null);
|
||||
+ // Incari end
|
||||
GuiGraphicsExtractor graphics = new GuiGraphicsExtractor(this.minecraft, this.guiRenderState, xMouse, yMouse);
|
||||
@@ -189,2 +192,9 @@
|
||||
|
||||
+ // Incari start: the HUD kept in a texture between refreshes (ADR 0030)
|
||||
+ if (incari.client.gui.HudCache.reusing()) {
|
||||
+ profiler.pop();
|
||||
+ graphics.applyCursor(this.minecraft.getWindow());
|
||||
+ return;
|
||||
+ }
|
||||
+ // Incari end
|
||||
if (shouldRenderLevel) {
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index 9cfdf35e1a7cb3e6b51f385658ec9bd62c4f6a60..cb09877416ec50e3613574bb0d4917ba985ae278 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -225,2 +225,5 @@
|
||||
graphics.nextStratum();
|
||||
+ // Incari start: the HUD kept in a texture between refreshes (ADR 0030)
|
||||
+ if (incari.client.gui.HudCache.split(this.minecraft.gameRenderer.gameRenderState().guiRenderState)) return;
|
||||
+ // Incari end
|
||||
this.extractHotbarAndDecorations(graphics, deltaTracker);
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java b/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java
|
||||
index 31771b85e536090eae4ee8adc8b09118bca8e443..0080b0292d90d51bca11e1ad8b38d82f1120bd3b 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/render/GuiRenderer.java
|
||||
@@ -131,2 +131,5 @@
|
||||
this.draw();
|
||||
+ // Incari start: the HUD kept in a texture between refreshes (ADR 0030)
|
||||
+ incari.client.gui.HudCache.composite();
|
||||
+ // Incari end
|
||||
profiler.popPush("endFrame");
|
||||
@@ -198,2 +201,8 @@
|
||||
|
||||
+ // Incari start: the HUD above the crosshair goes into its texture, not after a blur (ADR 0030)
|
||||
+ if (incari.client.gui.HudCache.divided()) {
|
||||
+ if (this.draws.size() > this.firstDrawIndexAfterBlur) this.executeDrawRange(() -> "Incari HUD", incari.client.gui.HudCache.target(), dynamicTransforms, this.firstDrawIndexAfterBlur, this.draws.size());
|
||||
+ return;
|
||||
+ }
|
||||
+ // Incari end
|
||||
if (this.draws.size() > this.firstDrawIndexAfterBlur) {
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 6 Oct 2026 22:32:31 -0400
|
||||
Subject: [PATCH] gui: Worlds dropped on the world list are imported
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java b/src/main/java/net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java
|
||||
index f28d5f8272380dff4a5bacf86d694a7afd178c35..3fdb1e9ecca465755c657d371b37127b4659a4aa 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/worldselection/SelectWorldScreen.java
|
||||
@@ -161,2 +161,9 @@
|
||||
|
||||
+ // Incari start: worlds dropped on the list (zips or folders) are imported; a page has no saves folder
|
||||
+ @Override
|
||||
+ public void onFilesDrop(final java.util.List<java.nio.file.Path> files) {
|
||||
+ incari.client.world.WorldImport.dropped(this.minecraft, this.list, files);
|
||||
+ }
|
||||
+ // Incari end
|
||||
+
|
||||
public void updateButtonStatus(final @Nullable LevelSummary summary) {
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Wed, 7 Oct 2026 01:39:51 -0400
|
||||
Subject: [PATCH] gui: World Options asks the world's host, which may run in a
|
||||
worker
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/WorldOptionsScreen.java b/src/main/java/net/minecraft/client/gui/screens/WorldOptionsScreen.java
|
||||
index cfaa9fceb2afff72536d8ea26f719ce4f7c1ff27..0f277cba6561ae5b6a84218ab336b06991240ba1 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/WorldOptionsScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/WorldOptionsScreen.java
|
||||
@@ -2,2 +2,6 @@
|
||||
|
||||
+// Incari start: World Options asks a SingleplayerHost what it asked the IntegratedServer, by the same
|
||||
+// names, so its server may run in a worker (ADR 0039); each IntegratedServer parameter below is one
|
||||
+import incari.client.singleplayer.SingleplayerHost;
|
||||
+// Incari end
|
||||
import java.util.function.Consumer;
|
||||
@@ -26,3 +30,2 @@
|
||||
import net.minecraft.client.renderer.RenderPipelines;
|
||||
-import net.minecraft.client.server.IntegratedServer;
|
||||
import net.minecraft.network.chat.CommonComponents;
|
||||
@@ -135,3 +138,5 @@
|
||||
this.layout.addTitleHeader(TITLE, this.font);
|
||||
- IntegratedServer singleplayerServer = this.minecraft.getSingleplayerServer();
|
||||
+ // Incari start: the host may be a server in a worker (ADR 0039)
|
||||
+ SingleplayerHost singleplayerServer = SingleplayerHost.of(this.minecraft);
|
||||
+ // Incari end
|
||||
LinearLayout content = LinearLayout.vertical().spacing(8);
|
||||
@@ -182,3 +187,3 @@
|
||||
|
||||
- private void generalOptions(final LinearLayout content, final @Nullable IntegratedServer singleplayerServer) {
|
||||
+ private void generalOptions(final LinearLayout content, final @Nullable SingleplayerHost singleplayerServer) {
|
||||
GridLayout grid = content.addChild(new GridLayout());
|
||||
@@ -222,3 +227,3 @@
|
||||
|
||||
- private Button createGameRulesButton(final @Nullable IntegratedServer singleplayerServer) {
|
||||
+ private Button createGameRulesButton(final @Nullable SingleplayerHost singleplayerServer) {
|
||||
Button gameRulesButton = Button.builder(GAME_RULES, var1 -> {
|
||||
@@ -233,3 +238,3 @@
|
||||
private CycleButton<GameType> createGameModeButton(
|
||||
- final IntegratedServer singleplayerServer,
|
||||
+ final SingleplayerHost singleplayerServer,
|
||||
final Component buttonName,
|
||||
@@ -250,3 +255,3 @@
|
||||
|
||||
- private CycleButton<Boolean> createAllowCommandsButton(final IntegratedServer singleplayerServer) {
|
||||
+ private CycleButton<Boolean> createAllowCommandsButton(final SingleplayerHost singleplayerServer) {
|
||||
CycleButton<Boolean> allowCommandsButton = CycleButton.onOffBuilder(singleplayerServer.getWorldData().isAllowCommands())
|
||||
@@ -275,3 +280,3 @@
|
||||
final @Nullable AbstractWidget widget,
|
||||
- final @Nullable IntegratedServer singleplayerServer,
|
||||
+ final @Nullable SingleplayerHost singleplayerServer,
|
||||
final @Nullable Tooltip tooltip,
|
||||
@@ -301,3 +306,3 @@
|
||||
|
||||
- private void multiplayerOptions(final LinearLayout content, final IntegratedServer singleplayerServer) {
|
||||
+ private void multiplayerOptions(final LinearLayout content, final SingleplayerHost singleplayerServer) {
|
||||
GridLayout grid = content.addChild(new GridLayout());
|
||||
@@ -362,3 +367,3 @@
|
||||
|
||||
- private void updateGuestCommandAccessButton(final IntegratedServer singleplayerServer) {
|
||||
+ private void updateGuestCommandAccessButton(final SingleplayerHost singleplayerServer) {
|
||||
if (this.guestCommandAccessButton != null) {
|
||||
@@ -385,3 +390,3 @@
|
||||
|
||||
- private void updateForceGameModeButton(final IntegratedServer singleplayerServer) {
|
||||
+ private void updateForceGameModeButton(final SingleplayerHost singleplayerServer) {
|
||||
if (this.forceGameModeButton != null) {
|
||||
@@ -414,3 +419,3 @@
|
||||
|
||||
- protected void applyChanges(final @Nullable IntegratedServer singleplayerServer) {
|
||||
+ protected void applyChanges(final @Nullable SingleplayerHost singleplayerServer) {
|
||||
if (this.wantedDifficulty != null && this.wantedDifficulty != this.initialDifficulty && this.minecraft.getConnection() != null) {
|
||||
@@ -522,3 +527,5 @@
|
||||
public void onGamemasterPermissionChanged(final boolean hasGamemasterPermission) {
|
||||
- IntegratedServer singleplayerServer = this.minecraft.getSingleplayerServer();
|
||||
+ // Incari start: the host may be a server in a worker (ADR 0039)
|
||||
+ SingleplayerHost singleplayerServer = SingleplayerHost.of(this.minecraft);
|
||||
+ // Incari end
|
||||
this.updatePermissionDependentButtons(singleplayerServer, hasGamemasterPermission, true);
|
||||
@@ -533,3 +540,3 @@
|
||||
private void updatePermissionDependentButtons(
|
||||
- final @Nullable IntegratedServer singleplayerServer, final boolean allowCommands, final boolean affectGameRulesButton
|
||||
+ final @Nullable SingleplayerHost singleplayerServer, final boolean allowCommands, final boolean affectGameRulesButton
|
||||
) {
|
||||
@@ -609,3 +616,3 @@
|
||||
|
||||
- private void changeMultiplayerScope(final IntegratedServer singleplayerServer) {
|
||||
+ private void changeMultiplayerScope(final SingleplayerHost singleplayerServer) {
|
||||
if (this.wantedMultiplayerScope != null) {
|
||||
@@ -623,3 +630,3 @@
|
||||
|
||||
- private void publish(final IntegratedServer singleplayerServer, final MinecraftServer.MultiplayerScope scope) {
|
||||
+ private void publish(final SingleplayerHost singleplayerServer, final MinecraftServer.MultiplayerScope scope) {
|
||||
if (!singleplayerServer.publishServer(scope, this.port)) {
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Wed, 7 Oct 2026 22:57:43 -0400
|
||||
Subject: [PATCH] gui: Start singleplayer's server worker while the world list
|
||||
or world creation shows
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Gui.java b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
index 3922f2f5b5628bed187739b9a5fd012dc0a22095..27b11d180739e5d80e1f1b2709e324c5263bdd46 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
@@ -267,2 +267,5 @@
|
||||
this.screen = screen;
|
||||
+ // Incari start: singleplayer's server worker started ahead of a world being opened (ADR 0041)
|
||||
+ incari.client.singleplayer.WorkerWorlds.screenShown(screen);
|
||||
+ // Incari end
|
||||
if (this.screen != null) {
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 9 Oct 2026 00:35:08 -0400
|
||||
Subject: [PATCH] gui: Keep the Unicode font's glyphs packed when Incari packs
|
||||
them
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/font/providers/UnihexProvider.java b/src/main/java/net/minecraft/client/gui/font/providers/UnihexProvider.java
|
||||
index 86c204697d89170e0b91eed4a7aba6edb2e8eecc..c9e27c60544fc1dc12422f820e4643e4983b7e4c 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/font/providers/UnihexProvider.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/font/providers/UnihexProvider.java
|
||||
@@ -43,2 +43,5 @@
|
||||
private final CodepointMap<UnihexProvider.Glyph> glyphs;
|
||||
+ // Incari start: the glyphs packed into arrays instead, when they are
|
||||
+ private incari.client.memory.@Nullable PackedUnihex packed;
|
||||
+ // Incari end
|
||||
|
||||
@@ -50,2 +53,5 @@
|
||||
public @Nullable UnbakedGlyph getGlyph(final int codepoint) {
|
||||
+ // Incari start: made from the packed arrays
|
||||
+ if (this.packed != null) return this.packed.get(codepoint, UnihexProvider.Glyph::new);
|
||||
+ // Incari end
|
||||
return this.glyphs.get(codepoint);
|
||||
@@ -55,2 +61,5 @@
|
||||
public IntSet getSupportedGlyphs() {
|
||||
+ // Incari start: the packed arrays' codepoints
|
||||
+ if (this.packed != null) return this.packed.codepoints();
|
||||
+ // Incari end
|
||||
return this.glyphs.keySet();
|
||||
@@ -255,2 +264,9 @@
|
||||
});
|
||||
+ // Incari start: the glyphs packed, and their objects let go
|
||||
+ if (incari.client.memory.PackedUnihex.isEnabled()) {
|
||||
+ UnihexProvider packed = new UnihexProvider(new CodepointMap<>(UnihexProvider.Glyph[]::new, UnihexProvider.Glyph[][]::new));
|
||||
+ packed.packed = incari.client.memory.PackedUnihex.pack(glyphs, UnihexProvider.Glyph::contents, UnihexProvider.Glyph::left, UnihexProvider.Glyph::right);
|
||||
+ return packed;
|
||||
+ }
|
||||
+ // Incari end
|
||||
return new UnihexProvider(glyphs);
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 9 Oct 2026 19:21:12 -0400
|
||||
Subject: [PATCH] gui: Show players' heads in the tab list on offline-mode
|
||||
servers
|
||||
|
||||
The game shows them only where the server is in online mode. Incari's
|
||||
servers are offline-mode Eagler servers, whose skins come by Eagler's
|
||||
own messages, and Eagler clients show heads there.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java b/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
index b60868f6232b8fb859239efd676cfe46fe81fe7f..c8fc2a5567e21cbdf471684aeb232046ca60b13b 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
@@ -144,3 +144,5 @@
|
||||
|
||||
- boolean showHead = this.minecraft.getConnection().onlineMode();
|
||||
+ // Incari start: heads on offline-mode servers too, as Eagler clients show them
|
||||
+ boolean showHead = true;
|
||||
+ // Incari end
|
||||
int widthForScore;
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 9 Oct 2026 19:21:44 -0400
|
||||
Subject: [PATCH] gui: Draw passwords as stars in login commands and dialogs
|
||||
|
||||
A login plugin's /login or /register in chat, and a server dialog's
|
||||
text box labelled as a password, showed the password to anyone looking
|
||||
at the screen. Incari's HiddenPasswords draws it as stars; the text
|
||||
sent is unchanged.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java b/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
|
||||
index 3922e11ac74da5c5ac357c8cccb9173b53254b5d..927c7a0dc5600ef6f255deb32e378d2f8383bf11 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
|
||||
@@ -65,2 +65,5 @@
|
||||
this.input.setResponder(this::onEdited);
|
||||
+ // Incari start: a login command's password drawn as stars
|
||||
+ incari.client.gui.HiddenPasswords.hideInChat(this.input);
|
||||
+ // Incari end
|
||||
this.input.addFormatter(this::formatChat);
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/dialog/input/InputControlHandlers.java b/src/main/java/net/minecraft/client/gui/screens/dialog/input/InputControlHandlers.java
|
||||
index 60b421d56f2d8ffd81a8db7b9bbc7c5cdd9ce31e..6e409a87436d8a32608423233e7351100c263016 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/dialog/input/InputControlHandlers.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/dialog/input/InputControlHandlers.java
|
||||
@@ -168,2 +168,5 @@
|
||||
EditBox editBox = new EditBox(font, input.width(), 20, input.label());
|
||||
+ // Incari start: a login plugin's password box drawn as stars
|
||||
+ incari.client.gui.HiddenPasswords.hideInDialog(editBox, input.label());
|
||||
+ // Incari end
|
||||
editBox.setMaxLength(input.maxLength());
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 10:08:46 -0400
|
||||
Subject: [PATCH] gui: Let Incari move, add and remove a screen's widgets after
|
||||
each layout
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/Screen.java b/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
index bf95d2376e54d4493349ef22d9ff72c2fee3326d..635d89be27cf57f261bca829a79ad3e15ca16f2c 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
@@ -67,2 +67,9 @@
|
||||
private final List<Renderable> renderables = Lists.newArrayList();
|
||||
+ // Incari start: Incari's edits to this screen, made again after each layout (ScreenEdits)
|
||||
+ private final List<GuiEventListener> incariAdded = Lists.newArrayList();
|
||||
+
|
||||
+ private void incariEdit() {
|
||||
+ incari.client.ui.ScreenEdits.laidOut(this, this.incariAdded, this::addRenderableWidget, this::removeWidget);
|
||||
+ }
|
||||
+ // Incari end
|
||||
protected final Font font;
|
||||
@@ -339,2 +346,5 @@
|
||||
this.initialized = true;
|
||||
+ // Incari start: Incari's edits to this screen, made again after each layout (ScreenEdits)
|
||||
+ this.incariEdit();
|
||||
+ // Incari end
|
||||
this.triggerImmediateNarration(false);
|
||||
@@ -352,2 +362,5 @@
|
||||
this.setInitialFocus();
|
||||
+ // Incari start: Incari's edits to this screen, made again after each layout (ScreenEdits)
|
||||
+ this.incariEdit();
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -451,2 +464,5 @@
|
||||
this.repositionElements();
|
||||
+ // Incari start: Incari's edits to this screen, made again after each layout (ScreenEdits)
|
||||
+ this.incariEdit();
|
||||
+ // Incari end
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 10:09:13 -0400
|
||||
Subject: [PATCH] gui: Let Incari draw a screen of its own in place of one of
|
||||
the game's
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Gui.java b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
index 27b11d180739e5d80e1f1b2709e324c5263bdd46..ea0ee39979b3a7b58b694cd75ebaef826d70ccf6 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
@@ -266,2 +266,5 @@
|
||||
|
||||
+ // Incari start: a screen Incari draws in place of the game's (ScreenEdits)
|
||||
+ screen = incari.client.ui.ScreenEdits.replaced(screen);
|
||||
+ // Incari end
|
||||
this.screen = screen;
|
||||
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 10:27:23 -0400
|
||||
Subject: [PATCH] gui: Let Incari's skin draw the game's widgets
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/components/AbstractWidget.java b/src/main/java/net/minecraft/client/gui/components/AbstractWidget.java
|
||||
index e3775c2e5daaba52a1cc6e8364d76ef21afd923d..4ddc2df135032e2fd98f9ec004bf9c74aeef2e79 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/components/AbstractWidget.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/components/AbstractWidget.java
|
||||
@@ -58,2 +58,5 @@
|
||||
this.isHovered = graphics.containsPointInScissor(mouseX, mouseY) && this.areCoordinatesInRectangle(mouseX, mouseY);
|
||||
+ // Incari start: Incari's skin may draw the widget itself (Skins)
|
||||
+ if (!incari.client.ui.Skins.widget(graphics, this, mouseX, mouseY, a))
|
||||
+ // Incari end
|
||||
this.extractWidgetRenderState(graphics, mouseX, mouseY, a);
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 10:27:23 -0400
|
||||
Subject: [PATCH] gui: Let Incari's skin draw the GUI's sprites and textures
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java b/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java
|
||||
index c663485dc4f2b23b4a37db4a14a5f954e3e57da5..50c91a353014145fe0e38fa3d11ca6a2918bcdd7 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java
|
||||
@@ -366,2 +366,5 @@
|
||||
) {
|
||||
+ // Incari start: Incari's skin may draw the texture its own way (Skins)
|
||||
+ if (incari.client.ui.Skins.texture(this, texture, x, y, width, height, u, v, srcWidth, srcHeight, textureWidth, textureHeight, color)) return;
|
||||
+ // Incari end
|
||||
this.innerBlit(
|
||||
@@ -415,2 +418,5 @@
|
||||
) {
|
||||
+ // Incari start: Incari's skin may draw the sprite its own way (Skins)
|
||||
+ if (incari.client.ui.Skins.sprite(this, location, x, y, width, height, color)) return;
|
||||
+ // Incari end
|
||||
TextureAtlasSprite sprite = this.guiSprites.getSprite(location);
|
||||
@@ -459,2 +465,5 @@
|
||||
) {
|
||||
+ // Incari start: Incari's skin may draw the sprite its own way (Skins)
|
||||
+ if (incari.client.ui.Skins.spritePart(this, location, spriteWidth, spriteHeight, textureX, textureY, x, y, width, height, color)) return;
|
||||
+ // Incari end
|
||||
TextureAtlasSprite sprite = this.guiSprites.getSprite(location);
|
||||
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 10:27:23 -0400
|
||||
Subject: [PATCH] gui: Let Incari's skin draw screens' backdrops
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/Screen.java b/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
index 635d89be27cf57f261bca829a79ad3e15ca16f2c..9fef4a41c8164d0a93937265021b19202466d385 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
@@ -393,2 +393,5 @@
|
||||
public void extractBackground(final GuiGraphicsExtractor graphics, final int mouseX, final int mouseY, final float a) {
|
||||
+ // Incari start: Incari's skin may draw the backdrop its own way (Skins)
|
||||
+ if (!incari.client.ui.Skins.background(graphics, this, a))
|
||||
+ // Incari end
|
||||
if (this.isInGameUi()) {
|
||||
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 11:39:31 -0400
|
||||
Subject: [PATCH] gui: The Normal GUI preset's menu blur
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/renderer/GameRenderer.java b/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
index 947508fe42c283bd1bd0fc43cb46eb51fe08f372..065719768ccb489c4938eb3fe536cc5a904c14d4 100644
|
||||
--- a/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/renderer/GameRenderer.java
|
||||
@@ -761,3 +761,5 @@
|
||||
optionsState.ambientOcclusion = options.ambientOcclusion().get();
|
||||
- optionsState.menuBackgroundBlurriness = options.getMenuBackgroundBlurriness();
|
||||
+ // Incari start: the Normal GUI preset frosts menus even where the graphics preset turns the blur off
|
||||
+ optionsState.menuBackgroundBlurriness = incari.client.ui.Look.blurRadius(options.getMenuBackgroundBlurriness());
|
||||
+ // Incari end
|
||||
optionsState.panoramaSpeed = options.panoramaSpeed().get();
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 11:55:18 -0400
|
||||
Subject: [PATCH] gui: Smooth fonts drawn by the platform, at the GUI scale
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index 44a4026b5257eb23b588eb0c564aec9efb760760..d4cd82a2ee9709513a91d27b8f46c2b8a3df75bb 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1449,2 +1449,5 @@
|
||||
this.window.setGuiScale(guiScale);
|
||||
+ // Incari start: smooth fonts are drawn again at the new scale
|
||||
+ incari.client.ui.SmoothFont.guiScale(guiScale, this::updateFontOptions);
|
||||
+ // Incari end
|
||||
if (this.gui.screen() != null) {
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/font/providers/TrueTypeGlyphProviderDefinition.java b/src/main/java/net/minecraft/client/gui/font/providers/TrueTypeGlyphProviderDefinition.java
|
||||
index 9a573fc1aaa1953095da2a6d4afe93dd771d5bfd..a6031ed9c13ae98e8919586acbcf23a6f5c0cedd 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/font/providers/TrueTypeGlyphProviderDefinition.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/font/providers/TrueTypeGlyphProviderDefinition.java
|
||||
@@ -49,2 +49,6 @@
|
||||
private GlyphProvider load(final ResourceManager resourceManager) throws IOException {
|
||||
+ // Incari start: the platform draws TrueType fonts (the browser has no FreeType), at the GUI scale
|
||||
+ GlyphProvider smooth = incari.client.ui.SmoothFont.load(resourceManager, this.location, this.size, this.shift.x, this.shift.y, this.skip);
|
||||
+ if (smooth != null) return smooth;
|
||||
+ // Incari end
|
||||
FT_Face face = null;
|
||||
@@ -0,0 +1,28 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 12:03:07 -0400
|
||||
Subject: [PATCH] gui: The title screen in the client's look
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java b/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
index ee7507fe31820c1e07a621f6e2d98d8714ac6722..9243d41771b56b6dee3ef4b2faaba285ce04fe80 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/TitleScreen.java
|
||||
@@ -105,2 +105,5 @@
|
||||
protected void init() {
|
||||
+ // Incari start: the title screen in the client's look
|
||||
+ if (incari.client.look.TitleLook.init(this, this::addRenderableWidget)) return;
|
||||
+ // Incari end
|
||||
if (this.splash == null) {
|
||||
@@ -292,2 +295,10 @@
|
||||
public void extractRenderState(final GuiGraphicsExtractor graphics, final int mouseX, final int mouseY, final float a) {
|
||||
+ // Incari start: the title screen in the client's look
|
||||
+ if (incari.client.look.TitleLook.active(this)) {
|
||||
+ incari.client.look.TitleLook.extractBehind(this, graphics, mouseX, mouseY, a);
|
||||
+ super.extractRenderState(graphics, mouseX, mouseY, a);
|
||||
+ incari.client.look.TitleLook.extractFront(this, graphics, mouseX, mouseY, a);
|
||||
+ return;
|
||||
+ }
|
||||
+ // Incari end
|
||||
if (this.fadeInStart == 0L && this.fading) {
|
||||
@@ -0,0 +1,71 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 12:07:44 -0400
|
||||
Subject: [PATCH] gui: The HUD's text panels in the client's look
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index 84977420997b886d87f219ccb7a1b6dbafdf76d9..92b7a563bd1b79c0d10c8ef39938c8cf58434b74 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -726,4 +726,10 @@
|
||||
int headerY = bottom - entriesCount * 9;
|
||||
+ // Incari start: the sidebar on one glass card (HudLook)
|
||||
+ if (!incari.client.look.HudLook.scoreboard(graphics, left - 2, headerY - 9 - 1, right, bottom, headerY - 1)) {
|
||||
+ // Incari end
|
||||
graphics.fill(left - 2, headerY - 9 - 1, right, headerY - 1, headerBackgroundColor);
|
||||
graphics.fill(left - 2, headerY - 1, right, bottom, backgroundColor);
|
||||
+ // Incari start
|
||||
+ }
|
||||
+ // Incari end
|
||||
graphics.text(this.getFont(), objectiveDisplayName, left + width / 2 - objectiveDisplayNameWidth / 2, headerY - 9, -1, false);
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/components/ChatComponent.java b/src/main/java/net/minecraft/client/gui/components/ChatComponent.java
|
||||
index 1e1e3229fb3968d0c074f2c27c18e0fabf67abf7..2e94103c187c9b5fa1102cb003e3f32980c4f279 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/components/ChatComponent.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/components/ChatComponent.java
|
||||
@@ -166,3 +166,5 @@
|
||||
int entryTop = entryBottom - entryHeight;
|
||||
- graphics.fill(-4, entryTop, maxWidth + 4 + 4, entryBottom, ARGB.black(alphax * backgroundOpacity));
|
||||
+ // Incari start: chat's lines on the look's cold tint (HudLook)
|
||||
+ graphics.fill(-4, entryTop, maxWidth + 4 + 4, entryBottom, incari.client.look.HudLook.chatLine(ARGB.black(alphax * backgroundOpacity)));
|
||||
+ // Incari end
|
||||
});
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java b/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
index c8fc2a5567e21cbdf471684aeb232046ca60b13b..4cbc749dbf5a17b8d1d3a36c5329473e18f87bdc 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
@@ -181,2 +181,5 @@
|
||||
if (headerLines != null) {
|
||||
+ // Incari start: the tab list on rounded glass (HudLook)
|
||||
+ if (!incari.client.look.HudLook.tabBox(graphics, screenWidth / 2 - maxLineWidth / 2 - 1, yyo - 1, screenWidth / 2 + maxLineWidth / 2 + 1, yyo + headerLines.size() * 9, true, false))
|
||||
+ // Incari end
|
||||
graphics.fill(
|
||||
@@ -194,2 +197,5 @@
|
||||
|
||||
+ // Incari start: the tab list on rounded glass (HudLook)
|
||||
+ if (!incari.client.look.HudLook.tabBox(graphics, screenWidth / 2 - maxLineWidth / 2 - 1, yyo - 1, screenWidth / 2 + maxLineWidth / 2 + 1, yyo + rows * 9, headerLines == null, footerLines == null))
|
||||
+ // Incari end
|
||||
graphics.fill(screenWidth / 2 - maxLineWidth / 2 - 1, yyo - 1, screenWidth / 2 + maxLineWidth / 2 + 1, yyo + rows * 9, Integer.MIN_VALUE);
|
||||
@@ -202,2 +208,5 @@
|
||||
int yo = yyo + row * 9;
|
||||
+ // Incari start: the tab list on rounded glass (HudLook)
|
||||
+ if (!incari.client.look.HudLook.tabRow(graphics, xo, yo, xo + slotWidth, yo + 8))
|
||||
+ // Incari end
|
||||
graphics.fill(xo, yo, xo + slotWidth, yo + 8, background);
|
||||
@@ -229,2 +238,5 @@
|
||||
yyo += rows * 9 + 1;
|
||||
+ // Incari start: the tab list on rounded glass (HudLook)
|
||||
+ if (!incari.client.look.HudLook.tabBox(graphics, screenWidth / 2 - maxLineWidth / 2 - 1, yyo - 1, screenWidth / 2 + maxLineWidth / 2 + 1, yyo + footerLines.size() * 9, false, true))
|
||||
+ // Incari end
|
||||
graphics.fill(
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java b/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
|
||||
index 927c7a0dc5600ef6f255deb32e378d2f8383bf11..cb1277e1aec2152d319b11d62a5e2da82865887d 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/ChatScreen.java
|
||||
@@ -277,2 +277,5 @@
|
||||
public void extractRenderState(final GuiGraphicsExtractor graphics, final int mouseX, final int mouseY, final float a) {
|
||||
+ // Incari start: the chat field as a rounded well (HudLook)
|
||||
+ if (!incari.client.look.HudLook.chatField(graphics, 2, this.height - 14, this.width - 2, this.height - 2))
|
||||
+ // Incari end
|
||||
graphics.fill(2, this.height - 14, this.width - 2, this.height - 2, this.minecraft.options.getBackgroundColor(Integer.MIN_VALUE));
|
||||
@@ -0,0 +1,31 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sat, 10 Oct 2026 12:09:31 -0400
|
||||
Subject: [PATCH] gui: Containers' labels in the client's look
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/inventory/AbstractContainerScreen.java b/src/main/java/net/minecraft/client/gui/screens/inventory/AbstractContainerScreen.java
|
||||
index 765580001bed31c67bfce29681b572f0e97dd72e..f3ca7a2c663ed79780570f017d006864123a9393 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/inventory/AbstractContainerScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/inventory/AbstractContainerScreen.java
|
||||
@@ -189,4 +189,6 @@
|
||||
protected void extractLabels(final GuiGraphicsExtractor graphics, final int xm, final int ym) {
|
||||
- graphics.text(this.font, this.title, this.titleLabelX, this.titleLabelY, -12566464, false);
|
||||
- graphics.text(this.font, this.playerInventoryTitle, this.inventoryLabelX, this.inventoryLabelY, -12566464, false);
|
||||
+ // Incari start: light labels on the containers the look redraws as glass
|
||||
+ graphics.text(this.font, this.title, this.titleLabelX, this.titleLabelY, incari.client.ui.ContainerSkin.label(this, -12566464), false);
|
||||
+ graphics.text(this.font, this.playerInventoryTitle, this.inventoryLabelX, this.inventoryLabelY, incari.client.ui.ContainerSkin.label(this, -12566464), false);
|
||||
+ // Incari end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/inventory/InventoryScreen.java b/src/main/java/net/minecraft/client/gui/screens/inventory/InventoryScreen.java
|
||||
index 6ed06d48f83abdf1d6d3660c7b9fda51630fec53..e9b70548a5832f06d10c8711cf14c7919317e48f 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/inventory/InventoryScreen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/inventory/InventoryScreen.java
|
||||
@@ -73,3 +73,5 @@
|
||||
protected void extractLabels(final GuiGraphicsExtractor graphics, final int xm, final int ym) {
|
||||
- graphics.text(this.font, this.title, this.titleLabelX, this.titleLabelY, -12566464, false);
|
||||
+ // Incari start: light labels on the containers the look redraws as glass
|
||||
+ graphics.text(this.font, this.title, this.titleLabelX, this.titleLabelY, incari.client.ui.ContainerSkin.label(this, -12566464), false);
|
||||
+ // Incari end
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sun, 11 Oct 2026 12:19:21 -0400
|
||||
Subject: [PATCH] gui: Let Incari's own render states take the clip
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java b/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java
|
||||
index 50c91a353014145fe0e38fa3d11ca6a2918bcdd7..f6f4c58e778226928dfa36d5ee0a4c418179c40e 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/GuiGraphicsExtractor.java
|
||||
@@ -157,2 +157,7 @@
|
||||
|
||||
+ // Incari start: Incari's own render states join the GUI with its clip (RoundRects, Circles)
|
||||
+ public @Nullable ScreenRectangle incariScissor() { return this.scissorStack.peek(); }
|
||||
+ public void incariSubmit(final net.minecraft.client.renderer.state.gui.GuiElementRenderState state) { this.guiRenderState.addGuiElement(state); }
|
||||
+ // Incari end
|
||||
+
|
||||
public void horizontalLine(int x0, int x1, final int y, final int col) {
|
||||
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Sun, 11 Oct 2026 13:48:46 -0400
|
||||
Subject: [PATCH] gui: Keep a skin's picture while it holds still
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/render/pip/GuiSkinRenderer.java b/src/main/java/net/minecraft/client/gui/render/pip/GuiSkinRenderer.java
|
||||
index 8014e95a1bd5e6b4bcb5ddffe530f13833f1e249..fcd0f78eda44d5e26a96d627cb39425972a8733b 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/render/pip/GuiSkinRenderer.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/render/pip/GuiSkinRenderer.java
|
||||
@@ -28,2 +28,7 @@
|
||||
|
||||
+ // Incari start: the picture kept while the model holds still (SkinPictures)
|
||||
+ private final incari.client.gui.SkinPictures.Last incariLast = new incari.client.gui.SkinPictures.Last();
|
||||
+ @Override protected boolean textureIsReadyToBlit(final GuiSkinRenderState skinState) { return this.incariLast.unchanged(skinState); }
|
||||
+ // Incari end
|
||||
+
|
||||
@Override
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Mon, 12 Oct 2026 22:46:20 -0400
|
||||
Subject: [PATCH] gui: Draw the screen recorder's REC with the profiler's
|
||||
overlay
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Gui.java b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
index ea0ee39979b3a7b58b694cd75ebaef826d70ccf6..7fa65ecef9ed81313fc726ca6c364dc3cb44f864 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Gui.java
|
||||
@@ -213,4 +213,4 @@
|
||||
|
||||
- // Incari start: the profiler's overlay
|
||||
- incari.client.profiler.ProfilerOverlay.extract(graphics);
|
||||
+ // Incari start: the profiler's overlay and the screen recorder's REC (ADR 0062)
|
||||
+ incari.client.gui.TopOverlays.extract(graphics);
|
||||
// Incari end
|
||||
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 20:19:39 -0400
|
||||
Subject: [PATCH] gui: The menus' photo instead of the panorama
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/screens/Screen.java b/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
index 9fef4a41c8164d0a93937265021b19202466d385..e642e55c53805f7cbfba4b2f8c10c2fbc1e081d0 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/screens/Screen.java
|
||||
@@ -418,3 +418,5 @@
|
||||
protected void extractPanorama(final GuiGraphicsExtractor graphics, final float a) {
|
||||
- this.minecraft.gameRenderer.panorama().extractRenderState(graphics, this.width, this.height);
|
||||
+ // Incari start: the menus' photo instead of the panorama, as on every other menu (MenuBackdrop)
|
||||
+ incari.client.ui.MenuBackdrop.extract(graphics, this.width, this.height);
|
||||
+ // Incari end
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 20:57:25 -0400
|
||||
Subject: [PATCH] gui: Incari's badge before Incari players' names in the tab
|
||||
list
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java b/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
index 4cbc749dbf5a17b8d1d3a36c5329473e18f87bdc..f47e0bdb48900b1d8b70dded96c9a88ae2b0d348 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/components/PlayerTabOverlay.java
|
||||
@@ -105,3 +105,5 @@
|
||||
for (PlayerInfo info : playerInfos) {
|
||||
- Component playerName = this.getNameForDisplay(info);
|
||||
+ // Incari start: Incari's badge before Incari players' names, as on their name tags
|
||||
+ Component playerName = incari.client.cosmetics.Cosmetics.tabListName(info.getProfile().id(), this.getNameForDisplay(info));
|
||||
+ // Incari end
|
||||
maxNameWidth = Math.max(maxNameWidth, this.minecraft.font.width(playerName));
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Thu, 15 Oct 2026 17:42:00 -0400
|
||||
Subject: [PATCH] gui: Auto GUI scale is one step below the largest that fits
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index a349a50049e75179aa64e528553d4e6dcdf3302d..26bc167966e04c64cf4b94ad70bc0bc29417275d 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1454,3 +1454,5 @@
|
||||
public void resizeGui() {
|
||||
- int guiScale = this.window.calculateScale(this.options.guiScale().get(), this.isEnforceUnicode());
|
||||
+ // Incari start: Auto, the default, is one step below the largest scale that fits
|
||||
+ int guiScale = incari.client.ui.AutoGuiScale.of(this.window, this.options.guiScale().get(), this.isEnforceUnicode());
|
||||
+ // Incari end
|
||||
this.window.setGuiScale(guiScale);
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Wed, 4 Nov 2026 22:43:03 -0500
|
||||
Subject: [PATCH] gui: The effect icons move below Incari's HUD elements in the
|
||||
top right
|
||||
|
||||
Signed-off-by: bedrock3359 <181285672+nobuildersnotools@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/Hud.java b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
index 05dcf5d0fd23b85b84eeaf4449277dc288d0f885..ef983c26058038107b0b097bf9774da66d993148 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/Hud.java
|
||||
@@ -514,2 +514,6 @@
|
||||
int harmfulCount = 0;
|
||||
+ // Incari start: below Incari's HUD elements in the top right (the minimap)
|
||||
+ incari.framework.ModuleSystem incariModules = incari.client.modules.IncariModules.current();
|
||||
+ int incariShift = incariModules == null ? 0 : incariModules.effectIconsShift(graphics.guiWidth(), graphics.guiHeight());
|
||||
+ // Incari end
|
||||
|
||||
@@ -523,2 +527,5 @@
|
||||
}
|
||||
+ // Incari start: below Incari's HUD elements in the top right
|
||||
+ y += incariShift;
|
||||
+ // Incari end
|
||||
|
||||
Reference in New Issue
Block a user