Jump to content

[1.7.10] [Solved] How do you use part of a texture for a GUI


Recommended Posts

Posted

I am making a GUI for a energy storage block I made, and I want a bar indicating how much energy is stored in the storage block. I know you can have more than one texture in the same file, but how do I implant the texture? I am using

drawTexturedModalRect

for my main texture but how do I select a part of the image?

Posted

I can't figure out what coords to use there. Could you give me a image of which set of coords correspond to which places on the gui texture?

 

EDIT: Never mind, I figured it out. I was thinking about it to hard.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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