Crate Main Menu
Apparence du menu principal
Définition de l'apparence du menu principal des caisses.
Felder
| Feld | Typ | Standard | Beschreibung | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
size | Int | 54 | Taille du menu en nombre de slots (multiple de 9) | ||||||||||||||||||||||||||||
title | Var<String> | Crates | Titre du menu (placeholders: %crate_<id>_keys%, %crate_<id>_keys_used%, %crate_<id>_openings%, %crate_<id>_last_open%, %crate_<id>_milestone% ) | ||||||||||||||||||||||||||||
buttons | List<CrateButtonSlot> | empty | Boutons personnalisés dans le menu principal
|
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
type | CrateButtonType | INFORMATION | Type du boutonWerte:INFORMATIONNEXTPREVIOUSFILL |
x | Int | 0 | Position X dans la grille (0-8) |
y | Int | 0 | Position Y dans la grille (0-5) |
item | Var<Item> | — | Item personnalisé du bouton |
lore | List<Var<String>> | empty | Description de l'item (placeholders: %crate_<id>_keys%, %crate_<id>_keys_used%, %crate_<id>_openings%, %crate_<id>_last_open%, %crate_<id>_milestone%) |
action | Ref<out TriggerableEntry> | — | Action exécutée lors du clic |
frameItemVar<Item>itemsPerPageInt0paginationColumnInt-1guiLayoutCrateGuiLayoutPAGINATEDPAGINATEDFLEXSIMPLEHow to use it
Add one entry to restyle /tw crate menu; the first one found is used. size is a multiple of 9 up to 54, buttons are placed at x (0 to 8) and y (0 to 5), and a FILL button is copied to every empty slot. itemsPerPage and paginationColumn control the crate icons per page and the column kept for the arrows. Crate icons are placed using each crate's own icon.x and icon.y. Without this entry, the menu is sized from the icon positions.