From 72118423d214b964ea9bd3d2a1411c72941c5f90 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <12willettsh@gmail.com> Date: Sun, 20 Mar 2022 11:37:24 +0000 Subject: a few small things and a couple GUI starting things --- .../java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java') diff --git a/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java b/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java index b9882d0..e825be9 100644 --- a/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java +++ b/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java @@ -42,7 +42,7 @@ public class TickableTexture { frametime = jsonObject.get("frametime").getAsInt(); if (frametime == 0) { frametime = 1; - themeLog.warn("You cannot have a frame tick time of 0. This will mean there is no animation as it will happen way too fast. Defaulting to 1, as we assume you wanted it fast."); + themeLog.warn("You cannot have a frame tick time of 0. This will mean there is no animation as it will happen impossibly fast. Defaulting to 1, as we assume you wanted it fast."); } } catch (Exception e) { themeLog.error("failed to load metadata for tickable texture (" + element.location + "). Setting default (5)"); -- cgit From 2696141f9790fd6c8d3df1148f46d298512c4902 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Mon, 21 Mar 2022 14:48:22 +0700 Subject: stuff (#1) * new: use archloom instead of forgegradle * misc: reformat code * update archloom --- .../io/polyfrost/oneconfig/themes/textures/TickableTexture.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java') diff --git a/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java b/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java index e825be9..5fe1242 100644 --- a/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java +++ b/src/main/java/io/polyfrost/oneconfig/themes/textures/TickableTexture.java @@ -2,7 +2,6 @@ package io.polyfrost.oneconfig.themes.textures; import com.google.gson.JsonObject; import com.google.gson.JsonParser; -import io.polyfrost.oneconfig.themes.textures.ThemeElement; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.renderer.GlStateManager; @@ -23,10 +22,10 @@ public class TickableTexture { private final int framesToSkip; private final BufferedImage image; private final int sizeX, sizeY, frames; - private int tick; - private int tick2; private final ThemeElement thisElement; private final ResourceLocation location; + private int tick; + private int tick2; public TickableTexture(ThemeElement element) throws IOException { thisElement = element; @@ -53,7 +52,7 @@ public class TickableTexture { public void draw(int x, int y) { GlStateManager.enableBlend(); - GlStateManager.color(1f,1f,1f,1f); + GlStateManager.color(1f, 1f, 1f, 1f); Minecraft.getMinecraft().getTextureManager().bindTexture(location); if (tick < frames) { Gui.drawModalRectWithCustomSizedTexture(x, y, 0, (tick * sizeX), sizeX, sizeX, sizeX, sizeX); -- cgit