-
Notifications
You must be signed in to change notification settings - Fork 1
Main Menu
The Main Menu of the mod. This allows the player to enable or disable various mods that they see fit. There are several main components of this element:
- Scrollable elements
- Toggleable elements
- Draggable elements
- Dropdown elements
- Cycle Elements
Scrollable elements are elements that can contain any number of sub children, which can be seen by scrolling over them. Scrollable elements can also be dragged around, and are a type of dropdown element. Scrollable elements are indicated by a scrollbar on the right side of the element.
Toggleable elements that contain two finite states - on and off. These elements can be clicked on causing a state change. Toggleable elements are indicated by a checkmark or an empty box indicating the current state.
Draggable elements allow the user to drag them around. There is no current way to indicate whether an element is draggable or not. All elements in the main menu are draggable, whereas the elements in the settings menu are not.
Dropdown elements are elements that can contain any number of sub children, which can be seen by click on the parent element. Dropdown elements are indicated by a dropdown arrow on the right side of the element, showing which direction the dropdown will open.
Cycle elements are elements that upon being clicked, will cycle through a finite number of states. Most commonly, these states are colors. Cycle elements are currently indicated by being the color that the cycle is currently on.
- None.
- Foreground Color
- The color of all text within GUIs.
- Background Color
- The default background color of all GUIs and disabled toggle buttons.
- Enabled Color
- The color of enabled toggle buttons.
- Sounds
- Whether a button click sound is played when a button is clicked, or a chest open/close sound is played when a menu is open or closed.
.gui
- Opens the main menu.
.resetgui
- Resets the position of all elements in the main menu.