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-subcommandcard
Official Hytale UI: SubcommandCard with buttons with text elements
Example Code
Button {
Anchor: (Width: 240, Bottom: 10, Right: 10);
Padding: (Full: 12);
Background: (Color: #1a1a1a(0.6));
LayoutMode: Top;
Style: (
Hovered: (
Background: #2a2a2a(0.8),
),
Pressed: (
Background: #3a3a3a(0.9),
)
);
Label #SubcommandName {
Style: (
FontSize: 14,
RenderBold: true,
TextColor: #ffffff
);
Anchor: (Bottom: 5);
}
Label #SubcommandUsage {
Style: (
FontSize: 11,
TextColor: #7a9cc6
);
Anchor: (Bottom: 5);
}
Label #SubcommandDescription {
Style: (
FontSize: 11,
TextColor: #ffffff(0.7)
);
}
}