41 lines
2.3 KiB
Diff
41 lines
2.3 KiB
Diff
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:36:12 -0400
|
|
Subject: [PATCH] startup: The loading screen in the client's look
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/client/gui/screens/LoadingOverlay.java b/src/main/java/net/minecraft/client/gui/screens/LoadingOverlay.java
|
|
index 735b1b5fff4a3c384e0621682256af42b4fda4c3..18474910531f1633f12dfe4b8823ea32e4d2f623 100644
|
|
--- a/src/main/java/net/minecraft/client/gui/screens/LoadingOverlay.java
|
|
+++ b/src/main/java/net/minecraft/client/gui/screens/LoadingOverlay.java
|
|
@@ -86,3 +86,5 @@
|
|
graphics.nextStratum();
|
|
- graphics.fill(0, 0, width, height, replaceAlpha(BRAND_BACKGROUND.getAsInt(), alpha));
|
|
+ // Incari start: the menus' photo behind, not Mojang's red (LoadingLook)
|
|
+ incari.client.look.LoadingLook.background(graphics, width, height, alpha);
|
|
+ // Incari end
|
|
logoAlpha = 1.0F - Mth.clamp(fadeOutAnim - 1.0F, 0.0F, 1.0F);
|
|
@@ -97,3 +99,5 @@
|
|
graphics.nextStratum();
|
|
- graphics.fill(0, 0, width, height, replaceAlpha(BRAND_BACKGROUND.getAsInt(), alpha));
|
|
+ // Incari start: the menus' photo behind, not Mojang's red (LoadingLook)
|
|
+ incari.client.look.LoadingLook.background(graphics, width, height, alpha);
|
|
+ // Incari end
|
|
logoAlpha = Mth.clamp(fadeInAnim, 0.0F, 1.0F);
|
|
@@ -101,2 +105,3 @@
|
|
ARGB.setVector4fFromARGB32(this.minecraft.gameRenderer.gameRenderState().guiRenderState.clearColorOverride, BRAND_BACKGROUND.getAsInt());
|
|
+ incari.client.look.LoadingLook.background(graphics, width, height, 255); // Incari: the menus' photo (LoadingLook)
|
|
logoAlpha = 1.0F;
|
|
@@ -104,2 +109,11 @@
|
|
|
|
+ // Incari start: Incari's mark and loading bar, not Mojang's logo and bar (LoadingLook)
|
|
+ if (incari.client.look.LoadingLook.content(this, graphics, logoAlpha, this.reload.getActualProgress(), fadeOutAnim < 1.0F ? 1.0F - Mth.clamp(fadeOutAnim, 0.0F, 1.0F) : 0.0F)) {
|
|
+ if (fadeOutAnim >= 2.0F) {
|
|
+ this.minecraft.gui.setOverlay(null);
|
|
+ }
|
|
+ return;
|
|
+ }
|
|
+ // Incari end
|
|
+
|
|
int contentX = (int)(graphics.guiWidth() * 0.5);
|