Code Patterns

Copy-paste examples for common plugin tasks. Commands, events, ECS, GUI, and more.

← Back to Patterns
gui

hytale-scriptedbrushlistpage

Official Hytale UI: ScriptedBrushListPage - Container layout with buttons with text elements

Example Code

java
$C = "../Common.ui";
$Browser = "PrefabBrowser.ui";

$C.@PageOverlay {}

$C.@Container {
  Anchor: (Width: 600, Height: 700);

  #Title {
    $C.@Title {
      @Text = "SCRIPTED BRUSHES";
    }
  }

  #Content {
    $Browser.@PrefabBrowserContent {}
  }
}

$C.@BackButton {}