Become a premium member to remove ads

Notice

The Chaotic United Wiki is currently in beta. As such, some pages may display incorrectly, and some content may be inaccurate. If you find any issues, be sure to let us know on the bug tracker!


Custom GUI Techniques

 Share


Throughout the lifetime of the MC server, several approaches have been used to create custom GUIs, or Graphical User Interfaces. Virtually all custom GUIs are created using fake containers, with one of a few possible techniques for designing them.


Classic GUI Technique

The traditional technique for creating custom GUIs that can be found almost univerally across many plugins, both public and private, is to blank out unused slots with getitem.php?item=black_stained_glass_pan Black Stained Glass Panes or to simply leave them blank. Various items are used for buttons and interactive elements. This technique remains the only technique used in most of the gamemodes within Chaotic United outside of Survival.

 

Slot Mask Technique

An early attempt to raise the bar for custom GUIs was to leverage a series of 'Slot Mask' items. Most commonly used was the GUI Slot Mask item, which is used to block out an entire inventory slot. Several additional items were also created to act as buttons and other GUI elements, which are listed below. While this technique has largely been succeeded by the GUI Overlay Technique, it is still used on rare occasion for specific use cases.

 

Generic Buttons
  • button_back.png Back
  • button_forward.png Next
  • button_cancel.png Cancel
  • button_confirm.png Confirm
  • button_refresh.png Refresh
Generic Icons
  • arrow_left_18.png Arrow Left
  • minus.png Subtract
  • plus.png Add
  • pointer2.png Pointer
CUMarketplace Add Buttons button_add_0.01.png button_add_0.1.png button_add_1.png button_add_5.png button_add_10.png button_add_20.png button_add_50.png button_add_100.png
CUMarketplace Subtract Buttons button_subtract_0.01.png button_subtract_0.1.png button_subtract_1.png button_subtract_5.png button_subtract_10.png button_subtract_20.png button_subtract_50.png button_subtract_100.png
CUMarketplace Miscellaneous Buttons
  • button_browse.png Browse Listings
  • button_browse_1.png Browse Listings (Alternate)
  • button_create_listing.png Add New Listing
  • button_my_listings.png My Listings
  • button_price_hover.png Price Hover Button (Unused)
  • set_custom_price.png Set Custom Listing Price
CUMarketplace Preset Price Buttons button_preset_150.png button_preset_200.png button_preset_300.png button_preset_400.png button_preset_500.png button_preset_600.png button_preset_800.png button_preset_1000.png
Generic Icons (Unused)
  • arrow_left.png Arrow Left (18px)
  • pointer.png Pointer (Alternate)

 

GUI Overlay Technique

The most advanced GUI technique is the GUI Overlay Technique. This is used exclusively in Survival, as it relies on the use of the server resource pack in order for GUIs to display properly.

 

This approach relies on overriding the textures of specific text characters in the in-game font with various "alignment helpers", as well as the actual textures of GUIs themselves. These characters are strategically placed within the title of a container, and can result in GUIs of a significantly higher quality than would usually be expected from a container-based GUI, despite being technically identical under the hood. Some examples of this technique can be found with the Upgrade Station GUI along with Crafting and Furnace recipe previews in the Recipe Guide (accessible by using /recipes ingame).

Published:

User Feedback

Recommended Comments

There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Minecraft Server

Items
Materials
Armor
Individual Items
Tools
Utility
Cosmetics
Internal
Unused
Unimplemented
Removed
Blocks
Resources
Building
Functional
Unused
Unimplemented
Removed
Mobs
Bosses
Unimplemented
Locations
Dungeons
Technical Resources
Plugins
Other