diff options
author | inglettronald <inglettronald@gmail.com> | 2023-01-28 15:30:58 -0600 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-01-28 15:30:58 -0600 |
commit | 7b6fef2966838dffcdecb5870204d363811f4b4f (patch) | |
tree | de6f37e760c313a6187a2a06361ce36d5a08052d /src/main/kotlin/dulkirmod/features/ScalableTooltips.kt | |
parent | d13f43266a82c81962af8471f471a7824a0bcf7b (diff) | |
download | DulkirMod-7b6fef2966838dffcdecb5870204d363811f4b4f.tar.gz DulkirMod-7b6fef2966838dffcdecb5870204d363811f4b4f.tar.bz2 DulkirMod-7b6fef2966838dffcdecb5870204d363811f4b4f.zip |
More tooltip rendering logic and adding vanquisher trigger
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/ScalableTooltips.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/ScalableTooltips.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt index a3ce2f1..e471849 100644 --- a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt +++ b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt @@ -5,6 +5,7 @@ import net.minecraft.client.Minecraft import net.minecraft.client.gui.FontRenderer import net.minecraft.client.renderer.GlStateManager import net.minecraft.client.renderer.RenderHelper +import net.minecraft.item.ItemStack import net.minecraftforge.fml.client.config.GuiUtils import org.lwjgl.input.Keyboard import org.lwjgl.input.Mouse @@ -15,6 +16,7 @@ object ScalableTooltips { // Checks to see if large tooltips should be snapped (for larger than can fit on screen code) var snapFlag: Boolean = true var scaleScale: Float = 0f + var previousStack: ItemStack? = null fun drawScaledHoveringText( textLines: List<String>, |