Code Patterns
Copy-paste examples for common plugin tasks. Commands, events, ECS, GUI, and more.
Gui Patterns
75Create custom styled buttons in native .ui files with different colors for default, hovered, and pressed states.
Create custom UI pages by extending InteractiveCustomUIPage. Define data codec for event handling.
InteractiveCustomUIPage implementation
Official Hytale UI: ArgumentTypeItem with text elements
Official Hytale UI: BarterGridSpacer
Official Hytale UI: BarterPage - Container layout with buttons with text elements
Official Hytale UI: BarterTradeRow - Container layout with buttons with text elements
Official Hytale UI: BasicTextButton with buttons with text elements
Official Hytale UI: BulletPoint with text elements
Official Hytale UI: ChangeModelPage - Container layout with buttons with text elements
Official Hytale UI: ChestMarker - Container layout with text elements
Official Hytale UI: CommandListPage - Container layout with buttons with text elements
Official Hytale UI: ConfigureInstanceBlockPage - Container layout with buttons with text elements
Official Hytale UI: DroppedItemSlot with text elements
Official Hytale UI: EntitySpawnPage - Container layout with buttons with text elements with item grid
Official Hytale UI: ImageImportPage - Container layout with buttons with text elements
Official Hytale UI: InstanceListPage - Container layout with buttons with text elements
Official Hytale UI: ItemRepairElement with buttons with text elements
Official Hytale UI: ItemRepairPage - Container layout with buttons with text elements
Official Hytale UI: LaunchPadSettingsPage - Container layout with buttons with text elements
Official Hytale UI: MemoriesCategory with buttons with text elements
Official Hytale UI: MemoriesCategoryPanel - Container layout with buttons with text elements
Official Hytale UI: MemoriesPanel - Container layout with buttons with text elements
Official Hytale UI: MemoriesUnlocked with buttons with text elements
Official Hytale UI: Memory with buttons with text elements
Official Hytale UI: NameRespawnPointPage - Container layout with buttons with text elements
Official Hytale UI: ObjImportPage - Container layout with buttons with text elements
Official Hytale UI: OverrideNearbyRespawnPointPage - Container layout with buttons with text elements
Official Hytale UI: OverrideRespawnPointButton with buttons with text elements
Official Hytale UI: ParameterItem with text elements
Official Hytale UI: ParticleSpawnPage - Container layout with buttons with text elements
Official Hytale UI: Pill with text elements
Official Hytale UI: PlaySoundPage - Container layout with buttons with text elements
Official Hytale UI: PluginListButton with buttons with text elements
Official Hytale UI: PluginListPage - Container layout with buttons with text elements
Official Hytale UI: PortalDeviceActive - Container layout with buttons with text elements
Official Hytale UI: PortalDeviceError - Container layout with buttons with text elements
Official Hytale UI: PortalDeviceSummon - Container layout with buttons with text elements
Official Hytale UI: Portals with text elements
Official Hytale UI: PrefabBrowser with text elements
Official Hytale UI: PrefabEditorExitConfirm - Container layout with buttons with text elements
Official Hytale UI: PrefabEditorSaveSettings - Container layout with buttons with text elements
Official Hytale UI: PrefabEditorSettings - Container layout with buttons with text elements
Official Hytale UI: PrefabListPage - Container layout with buttons with text elements
Official Hytale UI: PrefabSavePage - Container layout with buttons with text elements
Official Hytale UI: PrefabSpawnerSettingsPage - Container layout with buttons with text elements
Official Hytale UI: PrefabTeleportPage - Container layout with buttons with text elements
Official Hytale UI: RespawnPage - Container layout with buttons with text elements
Official Hytale UI: ScriptedBrushListPage - Container layout with buttons with text elements
Official Hytale UI: SelectOverrideRespawnPointPage - Container layout with buttons with text elements
Official Hytale UI: ShopElementButton with buttons
Official Hytale UI: ShopPage - Container layout with buttons with text elements
Official Hytale UI: SubcommandCard with buttons with text elements
Official Hytale UI: Teleporter - Container layout with buttons with text elements
Official Hytale UI: TintChunkPage - Container layout with buttons with text elements
Official Hytale UI: VariantCard with buttons with text elements
Official Hytale UI: WarpEntryButton with buttons with text elements
Official Hytale UI: WarpListPage - Container layout with buttons with text elements
InteractiveCustomUIPage implementation
CustomUIHud implementation
InteractiveCustomUIPage implementation
InteractiveCustomUIPage implementation
Set up native .ui files for custom UI pages. Files must be in Common/UI/Custom/Pages/ in JAR but referenced as Pages/ in Java code. Requires IncludesAssetPack in manifest.
CustomUIHud implementation
InteractiveCustomUIPage implementation
BasicCustomUIPage implementation
InteractiveCustomUIPage implementation
InteractiveCustomUIPage implementation
InteractiveCustomUIPage implementation
Reference built-in Hytale UI components from Common.ui in your custom .ui files.
Create dropdown menus in custom UI with selectable options.
Style labels in native .ui files with custom fonts, colors, and alignment.
InteractiveCustomUIPage implementation
InteractiveCustomUIPage implementation
InteractiveCustomUIPage implementation