
Def IconButton(Id, Text)
  StandardButton(
    Vertical {
      ViewId(5, {Id})
      Height 10 {}
      Position(MIDDLE, Label(Text))
      Height 10 {}
    }
  )
End

Def IconButtonInactive(Id, Text)
  StandardButtonInactive(
    Vertical {
      ViewId(5, {Id})
      Height 10 {}
      Position(MIDDLE, Label(text = Text color = ColorId LIGHT_GRAY))
      Height 10 {}
    }
  )
End

{
  ExitButtons()
  FocusKeysHorizontal()
  Window(
    Horizontal {
      Using "save" IconButton("portal", "Save and exit")
      Width 20 {}
      Using "options" IconButton("gnome", "Settings")
      Width 20 {}
      Using "retire" IconButton("throne", "Retire")
      Using "retire_inactive" IconButtonInactive("throne", "Retire")
      Width 20 {}
      Using "abandon" IconButton("grave", "Abandon game")
    }
  )
}

