Alex_Richard Posted March 22, 2015 Posted March 22, 2015 I know how to code a solid bar GUI to represent a value, but how do i use multiple textures like the vanilla health and armor bars? Is it just a lot of this? if (value > number && value1 < number { render one image else if (value > number && value1 < number { render one image next to other image Quote
Ernio Posted March 22, 2015 Posted March 22, 2015 Pretty much yeah, I remember having fun with editing it without events pre-1.6 (I actually overriden whole GuiIngame that time) and rendering was a loop of drawTexturedModalRect methods that were set by player's health and food etc. Quote 1.7.10 is no longer supported by forge, you are on your own.
LexManos Posted March 22, 2015 Posted March 22, 2015 https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/client/GuiIngameForge.java#L258 Loops are your friend. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.