Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • AquatuzMagnus

AquatuzMagnus

Members
 View Profile  See their activity
  • Content Count

    2
  • Joined

    October 21, 2017
  • Last visited

    November 26, 2020

Community Reputation

0 Neutral

About AquatuzMagnus

  • Rank
    Tree Puncher
  1. AquatuzMagnus

    [Solved] Forge 1.12.2 Simple HUD Help

    AquatuzMagnus replied to AquatuzMagnus's topic in Modder Support

    Ok I actually fixed it by just changing this: ScaledResolution scaled = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); To: ScaledResolution scaled = new ScaledResolution(mc); Not sure why that worked, but it did.
    • October 24, 2017
    • 2 replies
  2. AquatuzMagnus

    [Solved] Forge 1.12.2 Simple HUD Help

    AquatuzMagnus posted a topic in Modder Support

    I am using this code: package com.AquatuzMagnus.avatarmod.client.gui; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.ScaledResolution; public class BendingGuiOverlay extends Gui { String text = "Hello world!"; public BendingGuiOverlay(Minecraft mc) { ScaledResolution scaled = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); int width = scaled.getScaledWidth(); int height = scaled.getScaledHeight(); drawCenteredString(mc.fontRenderer, text, width / 2, (height / 2) - 4, Integer.parseInt("FFAA00", 16)); } } To make a simple HUD but I am getting an error on this line: ScaledResolution scaled = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); It says: "The Constructor ScaledResolution(Minecraft mc, int, int) is undefined" I got the code from a tutorial here: https://emxtutorials.wordpress.com/simple-in-game-gui-overlay/
    • October 21, 2017
    • 2 replies
  • All Activity
  • Home
  • AquatuzMagnus
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community