Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CGCM

Members
  • Joined

  • Last visited

  1. Hi, Image increasing size in GUI overlay: Print: http://i.prntscr.com/tD5jfDL7Rymrwx-ZZ9q03w.png Code: package Thirst; import java.lang.annotation.ElementType; import java.util.HashMap; import java.util.Map; import org.lwjgl.opengl.GL11; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLServerStartingEvent; import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.server.MinecraftServer; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.common.MinecraftForge; @Mod(modid = Main.MODID, version = Main.VERSION) public class Main { public static final String MODID = "thistmod"; public static final String VERSION = "1.0.0"; public static final String CLIENT_PROXY = "Thirst.ClientProxy"; public static final String COMMON_PROXY = "Thirst.CommonProxy"; @Instance(MODID) public static Main instance; @SidedProxy(clientSide = CLIENT_PROXY, serverSide = COMMON_PROXY) public static CommonProxy proxy; @EventHandler public void load() { } @EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void Init(FMLInitializationEvent event) { } @EventHandler public void postInit(FMLPostInitializationEvent event) { //MinecraftForge.EVENT_BUS.register(new GUIRenderEventClass()); MinecraftForge.EVENT_BUS.register(new GUIRenderEventClassd()); } public static class GUIRenderEventClassd { @SubscribeEvent(priority = EventPriority.NORMAL) public void onRenderGameOverlay(RenderGameOverlayEvent event) { if(!event.isCancelable() && event.type == net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType.EXPERIENCE) { Minecraft mc = Minecraft.getMinecraft(); if(!mc.thePlayer.capabilities.isCreativeMode) { //int posX = (event.resolution.getScaledWidth() / 2)*20; //int posY = ((event.resolution.getScaledHeight() / 2)*32) + ((event.resolution.getScaledHeight() /2) *2); int posX = (event.resolution.getScaledWidth() / 2); int posY = (event.resolution.getScaledHeight() / 2); //GL11.glPushMatrix(); // save the current matrix //GL11.glScalef(0.05F, 0.05F, 0.05F); // scale the matrix mc.renderEngine.bindTexture(new ResourceLocation("thistmod:textures/gui/Nhec.png")); mc.ingameGUI.drawTexturedModalRect(posX, posY, 64,64,112, 128); //GL11.glPopMatrix(); //GL11.glPushMatrix(); //GL11.glScalef(0.5F, 0.5F, 0.5F); //mc.fontRenderer.drawStringWithShadow("ATA", posX, posY, 0xFFFFFF); //GL11.glPopMatrix(); } } } } }

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.