aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java
diff options
context:
space:
mode:
authornopothegamer <40329022+nopothegamer@users.noreply.github.com>2021-11-02 21:22:31 +1100
committerGitHub <noreply@github.com>2021-11-02 06:22:31 -0400
commit98c9718a3d54a74e7700f4015d2624948bd6df0c (patch)
treee2de362007fedba198561b90ade3f9ba8fc3eb8b /src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java
parent7c00af18febf6c0b833c7633b4fb60a9a1bb93af (diff)
downloadnotenoughupdates-98c9718a3d54a74e7700f4015d2624948bd6df0c.tar.gz
notenoughupdates-98c9718a3d54a74e7700f4015d2624948bd6df0c.tar.bz2
notenoughupdates-98c9718a3d54a74e7700f4015d2624948bd6df0c.zip
Adding skill overlays and hotm stuff in pv + other minor stuff (#15)
* idk where im commiting to * idk where im commiting to * made tita overlay and waypoints work with dwarven overlay off "fixed" divan rarity in neuah made eitherwarp block overlay turn off able * Added change notes * i stopped being pepega and worked out how neu config works * Added mining skill overlay * fixed mining overlay * add option to hide Mining waypoints in Dwarven mines when at location * better check location * Make cata xp in /pv be calculated on how many runs you have * Added master cata xp rates * Make gitignore not show as changed * Added warnings to some things in /neu * maybe fix hiding waypoints * Added a fishing skill overlay its kinda scuffed because of the interp stuff * Hopefully fix Rampart's quarry (for real now) * Moul said i could no one leak in general or smth * Cache itemstacks in miningoverlay and crystalhollows overlay (untested) * Fix preinit crash due to manager not existing yet * Make tab do the same as down button while in tab completion mode * remove debug print * Added pitch to farming overlay * Changed the panoramas back to the old one because ery is scuffed * isnt finished but should work for ery * Made it so if ur mining 60 it just says maxed level instead of b u g * Made skills not show int limit when at max level in skill overlays * wh :omegalul: made neu * sad you cant type that long in search bar * Hello don't mind me just improving your workflow * æ * Oh also this * Added the cata xp scaling(idk if m3 and 4 values are right) * Added Expertise Progress * Fix farming overlay * Added cult/crops to next cult level * Go to the other end of the tab-completion List when hitting the end * remove debug prints * added combat skill overlay and some changes to the others (combat doesnt work rn could someone look into it :prayge:) * Added cooldown to god pot showing in todo overlay * comment * Added option to remove enchant glint in storage gui * Added option to remove enchant glint in storage gui * please fix * please fix * Fixed the placement of help.png * Added fairy soul waypoints to misc * unclear not clear * Added dg partner cape * fix space cape * Fix space cape * Make it so you can hold down keys in sign GUIs * Added a button in storage menu to open the settings Added an option to change the click names for /pv to /ah * Made it so ur config doesnt reset * Added bhop (shhh dont tell anyone) * Added a help menu to /neuec * changed fisgifis overlay button no work * make working fishing tiemr * jani can you test this out for us * Added a gui locations tab * very important feature * Fixed wart hoe overlay if not alch 50 * Make it so the ding time is customizable * Added coins/m to farming overlay * Basic mining tab in pv * Just for jani * Just for jani v2 * works ig * my balls * hotm pv is mostly done missing some perks * hotm pv done * message goes here * push so i can pr jani * Final hotm pv texture + fix m3 and m4 cata xp * edit: didnt work * fixed up stuff dokm said * added image for hotm pv * Fixed previews for furf and dg capes * removed combat overlay from location gui menu in /neu * Start of a custom pv page * Removed custom pv because -2 people would use it Removed neubhop (found out bhop is bannable) * update build gradle Co-authored-by: Lulonaut <lulonaut@tutanota.de> Co-authored-by: Lulonaut <67191924+Lulonaut@users.noreply.github.com> Co-authored-by: DoKM <mcazzyman@gmail.com> Co-authored-by: TymanWasTaken <tyman@tyman.tech> Co-authored-by: MicrocontrollersDev <microcontrollersyt@gmail.com> Co-authored-by: jani270 <jani270@gmx.de>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java
index 6ba0b34b..87084199 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiEnchantColour.java
@@ -10,9 +10,11 @@ import io.github.moulberry.notenoughupdates.options.NEUConfig;
import io.github.moulberry.notenoughupdates.util.Constants;
import io.github.moulberry.notenoughupdates.util.Utils;
import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.GlStateManager;
+import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
@@ -31,6 +33,8 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import static io.github.moulberry.notenoughupdates.util.GuiTextures.help;
+
public class GuiEnchantColour extends GuiScreen {
public static final ResourceLocation custom_ench_colour = new ResourceLocation("notenoughupdates:custom_ench_colour.png");
@@ -183,6 +187,56 @@ public class GuiEnchantColour extends GuiScreen {
yIndex++;
}
renderSideBar(mouseX, mouseY, partialTicks);
+ FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
+ List<String> tooltipToDisplay = null;
+ GlStateManager.color(1, 1, 1, 1);
+ Minecraft.getMinecraft().getTextureManager().bindTexture(help);
+ Utils.drawTexturedRect(guiLeft + xSize + 3, guiTopSidebar - 18, 16, 16, GL11.GL_NEAREST);
+
+ if (mouseX >= guiLeft + xSize + 3 && mouseX < guiLeft + xSize + 19) {
+ if (mouseY >= guiTopSidebar - 18 && mouseY <= guiTopSidebar - 2) {
+ tooltipToDisplay = Lists.newArrayList(
+ EnumChatFormatting.AQUA+"NEUEC Colouring Guide",
+ EnumChatFormatting.GREEN+"",
+ EnumChatFormatting.GREEN+"How to use the GUI",
+ EnumChatFormatting.YELLOW+"Type the name of the enchant you want to colour in the left box",
+ EnumChatFormatting.YELLOW+"Change the comparison: ",
+ EnumChatFormatting.RED+"> "+EnumChatFormatting.YELLOW+"greater than a level ",
+ EnumChatFormatting.RED+"= "+EnumChatFormatting.YELLOW+"equals the level ",
+ EnumChatFormatting.RED+"< "+EnumChatFormatting.YELLOW+"less than a level",
+ EnumChatFormatting.YELLOW+"Put the level of enchant you want to color in the middle box",
+ EnumChatFormatting.YELLOW+"Put the color code you want to use here",
+ EnumChatFormatting.GREEN+"",
+ EnumChatFormatting.GREEN+"Available colour codes:",
+ Utils.chromaString("z = Chroma"),
+ EnumChatFormatting.DARK_BLUE+"1 = Dark Blue",
+ EnumChatFormatting.DARK_GREEN+"2 = Dark Green",
+ EnumChatFormatting.DARK_AQUA+"3 = Dark Aqua",
+ EnumChatFormatting.DARK_RED+"4 = Dark Red",
+ EnumChatFormatting.DARK_PURPLE+"5 = Dark Purple",
+ EnumChatFormatting.GOLD+"6 = Gold",
+ EnumChatFormatting.GRAY+"7 = Gray",
+ EnumChatFormatting.DARK_GRAY+"8 = Dark Gray",
+ EnumChatFormatting.BLUE+"9 = Blue",
+ EnumChatFormatting.GREEN+"a = Green",
+ EnumChatFormatting.AQUA+"b = Aqua",
+ EnumChatFormatting.RED+"c = Red",
+ EnumChatFormatting.LIGHT_PURPLE+"d = Purple",
+ EnumChatFormatting.YELLOW+"e = Yellow",
+ EnumChatFormatting.WHITE+"f = White",
+ "\u00A7ZZ = SBA Chroma"+EnumChatFormatting.RESET+EnumChatFormatting.GRAY+" (Requires SBA)",
+ "",
+ EnumChatFormatting.GREEN+"Available formatting:",
+ EnumChatFormatting.GRAY+""+EnumChatFormatting.BOLD+"B = "+EnumChatFormatting.BOLD+"Bold",
+ EnumChatFormatting.GRAY+""+EnumChatFormatting.STRIKETHROUGH+"S"+EnumChatFormatting.RESET+EnumChatFormatting.GRAY+" = "+EnumChatFormatting.STRIKETHROUGH+"Strikethrough",
+ EnumChatFormatting.GRAY+""+EnumChatFormatting.UNDERLINE+"U"+EnumChatFormatting.RESET+EnumChatFormatting.GRAY+" = "+EnumChatFormatting.UNDERLINE+"Underline",
+ EnumChatFormatting.GRAY+""+EnumChatFormatting.ITALIC+"I"+EnumChatFormatting.RESET+EnumChatFormatting.GRAY+" = "+EnumChatFormatting.ITALIC+"Italic"
+ );
+ Utils.drawHoveringText(tooltipToDisplay, mouseX, mouseY, width, height, -1, fr);
+ tooltipToDisplay = null;
+ }
+ }
+
}
private void renderSideBar(int mouseX, int mouseY, float partialTicks) {