Jump to content

Singleplayer tabs?


mathiasrocker

Recommended Posts

Hi, ima making a mod there i need some new things to the singleplayer inventory called "Singleplayer tabs".

It's not creative tabs..

It's the singleplayer inventory when you open up you see a little tab up there.

It's like the "Galacticraft" where you must have it so you can have air in the space.

 

Hope someone can help.

Link to comment
Share on other sites

Okay, What you'll wan't to do is take all of the textures used in the singleplayer inventory. You can find them by opening up the default texture pack. This is the building block for your new GUI, Everyone else is correct, you will have to build one from scratch, but you can use this as a starting point. Now you'll wan't to create a new Class that extends:  InventoryEffectRenderer 

 

Open up that class and study it. We aren't going to give you answers to such a broad problem because theres 1000 different ways to solve it, and each one would take three or four pages to explain in depth what is going on. So your job is to now Study, Study the GuiInventory, & GuiContainerCreative classes to understand how Inventory GUI's are created and maintained by the game.

 

Notice they all extend the above class: InventoryEffectRenderer, which means when you create your own you'll want to also extend that. These are good hints and great starting points. Now, go and do your homework :P

Link to comment
Share on other sites

1. VSWE's interface course teaches a lot of things, including tabs.

 

2. I'd suggest looking into who tabs are, as in what they really are in the logical sense. Look into how tabs are made for other things outside minecraft, in other java games/applications. Hell even tabs in scripts could give you a clue to the general idea :)

 

As stated above, there is many ways to do this. Like any other logic problem, it has hundreds of solutions. You just have to find out which ones work for your needs and/or develop your own version(s) :)

If you guys dont get it.. then well ya.. try harder...

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.

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.