--- name: hytale-ui description: Custom user interface and HUD creation for Hytale. Covers NoesisGUI framework, custom HUD overlays, menus, inventory screens, and interactive UI elements. Use when creating custom interfaces, status displays, admin panels, or any visual UI components. --- # Hytale UI & HUD Create custom user interfaces and HUD elements for your Hytale mods. ## UI Framework Hytale uses **NoesisGUI** - a powerful XAML-based UI framework. ## UI Types | Type | Use For | Examples | |------|---------|----------| | **HUD** | Always-on-screen | Health, mana, minimap | | **Overlay** | Temporary display | Notifications, titles | | **Screen** | Full interface | Inventory, menus | | **Dialog** | Popups | Confirmations, NPC chat | | **Widget** | Reusable components | Buttons, bars, icons | --- ## Folder Structure ``` MyPack/ └── Common/ └── UI/ ├── hud/ │ ├── my_hud.xaml │ └── my_hud.xaml.cs ├── screens/ │ ├── custom_menu.xaml │ └── custom_inventory.xaml └── textures/ ├── button_bg.png └── icons/ ``` --- ## Basic HUD Element ### XAML Definition ```xml ``` ### JSON Registration ```json { "hudId": "mymod:mana_bar", "xaml": "ui/hud/mana_bar.xaml", "position": "top-left", "offset": { "x": 10, "y": 50 } } ``` --- ## HUD Positions | Position | Description | |----------|-------------| | `top-left` | Upper left corner | | `top-center` | Upper center | | `top-right` | Upper right corner | | `center` | Screen center | | `bottom-left` | Lower left | | `bottom-center` | Lower center | | `bottom-right` | Lower right | --- ## Common UI Components ### Progress Bar ```xml ``` ### Icon Button ```xml ``` ### Tooltip ```xml ``` --- ## Custom Screens ### Menu Screen ```xml