Skip to content

Commit

Permalink
Add Quilt-colored patches resource pack
Browse files Browse the repository at this point in the history
  • Loading branch information
hibiii authored Apr 23, 2024
1 parent 83b9827 commit d9816b5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
import com.emmacypress.quilt_loading_screen.mixin.SplashOverlayAccessor;
import eu.midnightdust.lib.config.MidnightConfig;
import net.minecraft.client.util.ColorUtil;
import net.minecraft.text.Text;

import org.quiltmc.loader.api.ModContainer;
import org.quiltmc.qsl.base.api.entrypoint.client.ClientModInitializer;
import org.quiltmc.qsl.resource.loader.api.ResourceLoader;
import org.quiltmc.qsl.resource.loader.api.ResourcePackActivationType;

import static com.emmacypress.quilt_loading_screen.QuiltLoadingScreen.MODID;

Expand All @@ -24,6 +28,8 @@ public class QLSClientInit implements ClientModInitializer {
public void onInitializeClient(ModContainer mod) {
MidnightConfig.init(MODID, Config.class);

ResourceLoader.registerBuiltinResourcePack(QuiltLoadingScreen.id("stronger_quilt_branding"), mod, ResourcePackActivationType.NORMAL, Text.translatable("quilt_loading_screen.resource_pack.name"));

if (Config.modifyBackgroundColor)
SplashOverlayAccessor.setMojangRed(ColorUtil.ARGB32.getArgb(0, 35, 22, 56));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"quilt_loading_screen.midnightconfig.title": "Quilt Loading Screen Config",
"quilt_loading_screen.midnightconfig.prideQuiltsEnabled": "Enable Pride Quilts even when it's not June!",
"quilt_loading_screen.midnightconfig.modifyBackgroundColor": "Change the background color from red to purple.",
"quilt_loading_screen.midnightconfig.modifyBackgroundColor.tooltip": "Does not apply if monochrome logo is set.\nRequires restart to take effect."
"quilt_loading_screen.midnightconfig.modifyBackgroundColor.tooltip": "Does not apply if monochrome logo is set.\nRequires restart to take effect.",
"quilt_loading_screen.resource_pack.name": "Really Quilt Loading Screen",
"quilt_loading_screen.resource_pack.description": "Makes the loading screen look closer to Quilt's branding"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 15,
"description": {"translate": "quilt_loading_screen.resource_pack.description"}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d9816b5

Please sign in to comment.