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-shopelementbutton
Official Hytale UI: ShopElementButton with buttons
Example Code
Button #Button {
Padding: (Full: 6);
LayoutMode: Left;
Style: (
Hovered: (
Background: #000000(0.2),
)
);
Group #Icon {
Anchor: (Width: 64, Height: 64, Left: 0);
Padding: (Full: 5);
}
Label #Name {
Style: (RenderBold: true);
FlexWeight: 1;
}
Label #Description {
FlexWeight: 1;
}
Label #Cost {
FlexWeight: 1;
}
}