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-namerespawnpointpage
Official Hytale UI: NameRespawnPointPage - 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.nameRespawnPoint.title;
}
}
#Content {
Padding: (Vertical: 32, Horizontal: 45);
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 #SetButton {
@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 {}