Tutorial/Example

Example


This is the screen file that creates the screenshot on the main page.

screens:
- text: Admin GUI
  num_columns: 8
  info: The main page
  controls:
  - type: button
    row: 1
    col: 1
    col_span: 2
    text: Set day
    stay_open: yes
    command: /set day
  - type: button
    text: Go to...
    row: 1
    col: 3
    col_span: 2
  - type: button
    row: 1
    col: 5
    text: Set sunny
    col_span: 2
    text_color: 0,255,0
    hover_color: 0,0,255
  - type: button
    row: 1
    col: 7
    text: Kick
    col_span: 2
  - type: button
    row: 2
    col: 1
    text: Set night
    col_span: 2
  - type: button
    row: 2
    col: 3
    text: Bring here...
    col_span: 2
  - type: button
    row: 2
    col: 5
    text: Set Creative
    col_span: 2
  - type: button
    row: 2
    col: 7
    text: Ban
    col_span: 2
  - type: button
    row: 4
    col: 1
    text: Teleport to...
    col_span: 2
  - type: text_box
    row: 4
    col: 3
    col_span: 2
  - type: text_box
    row: 4
    col: 5
    col_span: 2
  - type: text_box
    row: 4
    col: 7
    col_span: 2
  - type: button
    row: 5
    col: 1
    text: Give
    info: Parameters&&----------&&player item data amount
    command: /give ^givep^ ^item_id^ ^item_data^ ^amount^
    col_span: 2
  - type: slider
    col: 3
    row: 5
    col_span: 2
    name: givep
    mode: online_players
  - type: text_box
    row: 5
    col: 5
    name: item_id
  - type: text_box
    row: 5
    col: 6
    name: item_data
  - type: slider
    row: 5
    col: 7
    name: amount
    col_span: 2
    max: 64
    text: Amount =
    default: 32
  - type: button
    row: 7
    col: 4
    col_span: 2
    col_span: 2
    text: Reload
    command: /rgc
  - type: slider
    row: 9
    col: 1
    col_span: 8
    name: pp
    mode: online_players
  - type: slider
    row: 10
    col: 1
    col_span: 7
    mode: offline_players
  - type: combo_box
    row: 10
    col: 8
    text: Choose a number
    items:
    - text: one
      selected_value: 1
    - text: two
      selected_value: 2