Jump to content

Recommended Posts

Posted

Hey everyone,

 

I am having trouble while creating a new ResourceLocation using a 64x32 file and then rendering that into a Gui. As far as I am aware, a Gui can only use 256x256 ResourceLocation objects, otherwise your whole Gui could possibly get messed up, and nobody wants that. So my question is, what is the equivalent to a ResourceLocation for non 256x256 files, and why is a Gui not capable of rendering smaller?

 

I know it's probably extremely simple, but thanks in advance,

 

Dr E.

Follow me on twitter! @keepablock

Read up on whats new! www.catacombs.co

width=700 height=60http://electronic-chronic.com/assets/keep-a-block/wikilink/wikilink_logo.png[/img]

Posted

You could overlay the texture onto the GUI.  I'm not sure how that would work, but you could render the player skins into the foreground of your GUI, in the drawGuiContainerForeground method, and have the background be just an empty 256 x 256 texture.

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.

×
×
  • Create New...

Important Information

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