Staff++
latest
latest
  • Staff++
  • General information
    • Quick start
    • Reload Configuration
    • Multi Server Setup
    • General Configuration
    • Other
      • Text parsing
      • Styling the GUIs
        • Gui structure
        • Selectors
      • Configuring command hooks
  • Permissions & Commands
    • Commands
    • Permissions
      • Legacy permissions
  • Features
    • Alerts
      • X-Ray
    • Alt account detection
    • Authentication
    • Banning
      • IP Banning
        • Messages
      • Fixed Ban Reason
      • Templates
    • Blacklist
    • Broadcasting
    • Chat module
    • Chest/Inventory Interaction
    • Command detection
    • Examine players
    • Freezing
      • Command hooks
      • Luckperms integration
      • Chat channels
    • Infractions
    • Investigate
      • Command hooks
    • Join messages
    • Player IPs
    • Kicking
    • Muting
      • Appealing
    • Protection
    • Player information
    • Player notes
    • Reporting
      • Command hooks
      • Messages
      • Finding reports
      • Report types & Reasons
      • Chat channels
    • Staff Chat
    • Staff Mode
      • Multiple modes
      • Staff Modules
      • Custom Staff Modules
        • State dependent modules
      • Command hooks
      • Luckperms integration
    • Staff Locations
    • Teleporting
    • Vanish
      • Luckperms integration
    • Warnings
      • Quick start
      • Severity levels
      • Thresholds
      • Actions (punishments)
      • Appealing
      • Warning workflow
  • Web Platform
    • Register Players
    • Setup Web Platform
    • Architecture
  • Integrations
    • Discord Integration
      • Staff Chat
      • Template Packs
      • Customize Discord Templates
    • Trello Integration
    • PAPI expansion
      • PAPI Examples
  • Migration guides
    • Staff+ migration guide
    • Migrating to >=V1.16.43
    • Upgrading Discord Integration to 1.16.51
  • Developers
    • API guide
Powered by GitBook
On this page
  • GUIs structure
  • IDs and Classes

Was this helpful?

  1. General information
  2. Other
  3. Styling the GUIs

Gui structure

PreviousStyling the GUIsNextSelectors

Last updated 3 years ago

Was this helpful?

GUIs structure

GUIs in staff++ have these main components:

  • Container -> The inventory as we see it.

  • Item -> One item in the container represented by an itemstack.

  • Text -> Text consists of one or more TextParts.

  • TextPart -> A TextPart holds certain written context.

Using the configuration files we can and change their styling.

Container

The container is the inventory we are showing. Using styling we can change:

  • The color of the title

  • The size of the GUI

Item

An Item is a wrapper around an itemstack. Using styling we can change.

  • The location of the item

  • The color of the name

Text & TextParts

The Text component is used whenever we want to display some sort of text inside the component. The component contains one or more TextParts. Text is used for the title of the GUI and the name or Lore of an ItemStack. Every TextPart can be changed using styling:

  • TextPart can be hidden/shown

  • Color of TextPart can be changed.

IDs and Classes

The above components can all be assigned 1 id and multiple classes.

ID

An id is given to a component to identify it, we can use this id to reference the component inside our style configuration.

Class

A class, just like an id, is used to reference a component. The main difference is that a class can reference multiple components. While an id must only reference one.

A class is also more lenient in how it can reference components.

select components