Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

GUI System

EmosewaPixel edited this page Nov 19, 2019 · 2 revisions

Overview

GUIs are probably one of the least fun parts of creating a machine. Luckily PixelLib adds a simple to use modular GUI system, which can be put on top of anything (by default only JEI and machines). It's based on the idea of having GUI Books, consisting of multiple GUI Pages, which themselves consist of multiple GUI Components. What allows you to use them on top of anything is that what they're displaying is based on an IMachineProperty rather than a regular variable stored in a TE.

GUI Components

PixelLib provides a plethora of default GUI components, that you can of course add onto:

  • Boolean Button - a button based on a boolean property of the machine, which has 2 states
  • Color Button - a button based on an integer property of the machine that changes its color based on the state
  • Fluid Bar - a bar representing the amount of a certain fluid inside a machine
  • Fluid Slot - a slot used for putting fluids in and taking fluids out of the machine
  • Ghost Item Slot - an item slot that doesn't hold actual items. Useful for setting patterns
  • Image - just an image
  • Integer Button - a button based on an integer property of the machine that changes its texture based on the state
  • Item Slot - a slot used for putting items in and taking items out of the machine
  • Label - just a text label
  • Page Button - a button used for switching to a different GUI page
  • Player Slot - a slot used for interacting with the player's inventory
  • Progress Bar - a based representing how a big a value is compared to the max value for a property

Clone this wiki locally