diff options
author | nextdaydelivery <12willettsh@gmail.com> | 2022-02-12 09:24:51 +0000 |
---|---|---|
committer | nextdaydelivery <12willettsh@gmail.com> | 2022-02-12 09:24:51 +0000 |
commit | 88df999a8ff35ea30b8fa9cf94c46dd748215581 (patch) | |
tree | 8cf665d5460fc07e15f62f9d01d9889eca76ef2b /src/main/java/io/polyfrost/oneconfig/gui | |
download | OneConfig-88df999a8ff35ea30b8fa9cf94c46dd748215581.tar.gz OneConfig-88df999a8ff35ea30b8fa9cf94c46dd748215581.tar.bz2 OneConfig-88df999a8ff35ea30b8fa9cf94c46dd748215581.zip |
swoosh
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui')
17 files changed, 110 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/Window.java b/src/main/java/io/polyfrost/oneconfig/gui/Window.java new file mode 100644 index 0000000..ed420aa --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/Window.java @@ -0,0 +1,46 @@ +package io.polyfrost.oneconfig.gui; + +import io.polyfrost.oneconfig.renderer.Renderer; +import net.minecraft.client.gui.Gui; +import net.minecraft.client.gui.GuiScreen; +import net.minecraft.client.renderer.GlStateManager; +import net.minecraft.util.ResourceLocation; + +import java.awt.*; + +import static io.polyfrost.oneconfig.renderer.Renderer.easeOut; + +public class Window extends GuiScreen { + private static ResourceLocation location = new ResourceLocation("oneconfig", "textures/hudsettings128.png"); + private float currentProgress = 0f; + public static Window currentWindow; + + public Window() { + super.initGui(); + currentWindow = this; + } + + public boolean doesGuiPauseGame() { + return false; + } + + public void drawScreen(int mouseX, int mouseY, float partialTicks) { + super.drawScreen(mouseX, mouseY, partialTicks); + currentProgress = easeOut(currentProgress, 1f); + int alphaVal = (int) (50 * currentProgress); + //drawGradientRect(0, 0, super.width, super.height, new Color(80, 80, 80, alphaVal).getRGB(), new Color(80, 80, 80, alphaVal + 10).getRGB()); + drawWindow(); + + } + + public void drawWindow() { + Renderer.drawScaledImage(location, 10, 10, 64 ,64); + Renderer.drawRoundRectangle(50,50,100,100,10,-1); + } + + public static Window getWindow() { + return currentWindow; + } + + +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/OCBlock.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCBlock.java new file mode 100644 index 0000000..774d936 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCBlock.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements; + +public class OCBlock { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/OCButton.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCButton.java new file mode 100644 index 0000000..4df6f93 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCButton.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements; + +public class OCButton { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/OCColorPicker.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCColorPicker.java new file mode 100644 index 0000000..e055d25 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCColorPicker.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements; + +public class OCColorPicker { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/OCSelector.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCSelector.java new file mode 100644 index 0000000..83805fa --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCSelector.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements; + +public class OCSelector { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/OCTextField.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCTextField.java new file mode 100644 index 0000000..da0df96 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/OCTextField.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements; + +public class OCTextField { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigButton.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigButton.java new file mode 100644 index 0000000..de21d9d --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigButton.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +public class OConfigButton { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigColor.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigColor.java new file mode 100644 index 0000000..299c4f2 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigColor.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +public class OConfigColor { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSelector.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSelector.java new file mode 100644 index 0000000..cc76814 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSelector.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +public class OConfigSelector { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSlider.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSlider.java new file mode 100644 index 0000000..38bacf7 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSlider.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +public class OConfigSlider { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSwitch.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSwitch.java new file mode 100644 index 0000000..c9d6091 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigSwitch.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +public class OConfigSwitch { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigText.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigText.java new file mode 100644 index 0000000..68f2b8b --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/OConfigText.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.elements.config; + +public class OConfigText { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/BasicWindowPage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/BasicWindowPage.java new file mode 100644 index 0000000..0d09526 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/BasicWindowPage.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.pages; + +public class BasicWindowPage { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java new file mode 100644 index 0000000..65ad1e9 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/HomePage.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.pages; + +public class HomePage { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java new file mode 100644 index 0000000..4cbda94 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/ModsPage.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.pages; + +public class ModsPage { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/SettingsPage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/SettingsPage.java new file mode 100644 index 0000000..9fecc75 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/SettingsPage.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.pages; + +public class SettingsPage { +} diff --git a/src/main/java/io/polyfrost/oneconfig/gui/pages/StorePage.java b/src/main/java/io/polyfrost/oneconfig/gui/pages/StorePage.java new file mode 100644 index 0000000..4aa1616 --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/gui/pages/StorePage.java @@ -0,0 +1,4 @@ +package io.polyfrost.oneconfig.gui.pages; + +public class StorePage { +} |