MiniWindow
  id: adminAgentLabWindow
  !text: tr('Agent Lab')
  height: 360
  icon: /images/topbuttons/options
  @onClose: modules.game_admin_agentlab.onMiniWindowClose()
  &save: true
  &autoOpen: 0

  MiniWindowContents
    Label
      id: status
      anchors.top: parent.top
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 3
      margin-left: 3
      margin-right: 3
      text-wrap: true
      text-auto-resize: true
      text: Admin Agent Lab listo.

    HorizontalSeparator
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 5
      margin-left: 2
      margin-right: 2

    Button
      id: startRoute
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 6
      margin-left: 3
      margin-right: 3
      height: 24
      text: Ruta inicial
      @onClick: modules.game_admin_agentlab.runFirstHoursRoute()

    Button
      id: progress
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 4
      margin-left: 3
      margin-right: 3
      height: 24
      text: Progreso
      @onClick: modules.game_admin_agentlab.runProgressCheck()

    Button
      id: phase4
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 4
      margin-left: 3
      margin-right: 3
      height: 24
      text: Phase4 completa
      @onClick: modules.game_admin_agentlab.runPhase4Smoke()

    Button
      id: playerState
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 4
      margin-left: 3
      margin-right: 3
      height: 24
      text: Estado jugador
      @onClick: modules.game_admin_agentlab.inspectPlayer()

    Button
      id: externalPlan
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 4
      margin-left: 3
      margin-right: 3
      height: 24
      text: Ejecutar plan externo
      @onClick: modules.game_admin_agentlab.runExternalPlan()

    Button
      id: cleanup
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 4
      margin-left: 3
      margin-right: 3
      height: 24
      text: Limpiar fixture
      @onClick: modules.game_admin_agentlab.runCleanup()

    HorizontalSeparator
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 6
      margin-left: 2
      margin-right: 2

    Label
      id: footer
      anchors.top: prev.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      anchors.bottom: parent.bottom
      margin-top: 5
      margin-left: 3
      margin-right: 3
      text-wrap: true
      text: Herramientas visibles solo en modo Admin.
