Code Patterns

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

← Back to Patterns
gui

hytale-warpentrybutton

Official Hytale UI: WarpEntryButton with buttons with text elements

Example Code

java

Button #Button {
  Padding: (Full: 6);
  LayoutMode: Left;
  Style: (
    Hovered: (
      Background: #000000(0.2),
    )
  );

  Label #Name {
    Style: (RenderBold: true);
    FlexWeight: 1;
  }

  Label #World {
    Style: (TextColor: #ffffff(0.2), RenderItalics: true);
  }
}