Jump to content

Inventory icons not aligned properly?


Recommended Posts

So I have a GUI populated with a player's inventory.  In default Minecraft resolution, the inventory icons line up properly.  But when I maximize, the items are a bit to the left and too high up on the screen.  Any idea why this might be?


Also, I can't seem to pick up any of the items... clicking the items seems to drop them on the ground.


Relevant code:

for (int row = 0; row < 3; row++)
                for (int slot = 0; slot < 9; slot++)
                        addSlotToContainer(new Slot(playerInv, slot + row * 9+9, 133 + slot * 18, 141 + row * 18));

        for (int slot = 0; slot < 9; slot++)
                addSlotToContainer(new Slot(playerInv, slot, 133 + slot * 18, 199));

Link to comment
Share on other sites

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.

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.