Code Patterns
Copy-paste examples for common plugin tasks. Commands, events, ECS, GUI, and more.
All
225
Command
60
Damage
2
Ecs
27
Entity
5
Gui
75
Interaction
2
Inventory
4
Moderation
3
Permission
2
Player
9
Plugin
4
Storage
2
Teleport
3
Ui
22
Util
5
← Back to Patterns
java
gui
hytale-chestmarker
Official Hytale UI: ChestMarker - Container layout with text elements
Example Code
$Common = "../../Common.ui";
@ChestGroup = Group {
Anchor: (Left: 0, Bottom: 0, Width: 40, Height: 40);
Visible: false;
TextTooltipShowDelay: 0.1;
LayoutMode: Bottom;
TextTooltipStyle: $Common.@DefaultTextTooltipStyle;
};
Group {
Group #ChestContainer {
Anchor: (Bottom: 18, Left: -2);
@ChestGroup #ChestDisabled {
Group {
Background: "MemoriesProgress/IconChestDisabled.png";
Anchor: (Width: 22, Height: 22, Bottom: 10);
}
}
@ChestGroup #ChestActive {
Group {
Background: "MemoriesProgress/IconChestActive.png";
Anchor: (Width: 22, Height: 22, Bottom: 10);
}
}
Group #Arrow {
Background: "MemoriesProgress/MemoriesBarArrow.png";
Anchor: (Left: 14, Width: 10, Height: 8, Bottom: 0);
Visible: false;
}
}
}