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-overridenearbyrespawnpointpage
Official Hytale UI: OverrideNearbyRespawnPointPage - Container layout with buttons with text elements
Example Code
$C = "../Common.ui";
$Sounds = "../Sounds.ui";
$C.@PageOverlay {
LayoutMode: Middle;
$C.@DecoratedContainer {
Anchor: (Width: 500);
#Title {
$C.@Title {
@Text = %server.customUI.overrideNearbyRespawnPoint.title;
}
}
#Content {
Group {
Anchor: (Top: 10, Bottom: 20);
Padding: (Horizontal: 12);
Label #DescriptionLabel {
Style: (...$C.@DefaultLabelStyle, Wrap: true, HorizontalAlignment: Center);
Text: %server.customUI.overrideNearbyRespawnPoint.label;
}
}
Group #RespawnPointList {
LayoutMode: Top;
}
Group {
Anchor: (Height: 2, Vertical: 6);
Background: #292b2a;
}
Group {
Padding: (Horizontal: 30, Top: 15, Bottom: 10);
LayoutMode: Top;
Label {
Text: %server.customUI.respawnName;
Style: (RenderBold: true, RenderUppercase: true, TextColor: #94a7bb);
}
Label #Error {
Style: (RenderBold: true, TextColor: #bb3333);
Visible: false;
}
$C.@TextField #NameInput {
Anchor: (Top: 10, Height: 44);
}
Group {
LayoutMode: Center;
Anchor: (Top: 8);
$C.@TextButton #ConfirmButton {
@Sounds = $Sounds.@SaveSettings;
@Anchor = (Right: 4);
Text: %server.customUI.confirm;
FlexWeight: 1;
}
$C.@SecondaryTextButton #CancelButton {
@Sounds = $Sounds.@ButtonsCancel;
@Anchor = (Left: 4);
Text: %server.customUI.cancel;
FlexWeight: 1;
}
}
}
}
}
}
$C.@BackButton {}