Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I was wondering if there's already an external or forge-implemented API for adding tabs, specifically to the player's inventory screen (<E> Key.) The effect I'm looking for is something like what Tinkers' Construct has for its extra armor/accessories tab and its knapsack tab (Direwolf20 shows it off in his mod spotlight found in that link at 25:00 minutes.)

 

Now, I know I can fake it by drawing on tabs in the tick handler when the current gui screen is the player inventory, but handling that and disabling/enabling inventories to only draw when a certain tab is active is going to get very tricky and/or messy, which is why I'm wondering if there's a better, probably more streamlined and compatible (E.g. so my tabs won't draw on top or under Tinkers' tabs) way to do it.

 

Thanks in advance.

 

P.S. I haven't yet updated my mod from 1.5.2 to 1.6.2. If the method to do this is 1.6.2 only, that'd be good to know ;D

width=336 height=83http://img836.imageshack.us/img836/1237/cooltext624963071.png[/img]

I make games, minecraft mods/plugins, and some graphic art.

 

Current Project: LoECraft - An industrial minecraft server with its own modpack and custom launcher.

I would suggest looking into vanilla creative inventory code. That would allow you to see how the tabs are added and such.

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.