HunterTaskLabel < Label
  height: 24
  text-offset: 6 3
  focusable: true
  color: #dddddd
  background-color: #333333
  $checked:
    background-color: #3d3d3d
  $focus:
    background-color: #665020
    color: #fff2b0

MainWindow
  id: hunterTasksWindow
  size: 510 430
  text: Taski Lowcy
  @onEscape: modules.game_huntertasks.hide()

  Label
    id: info
    anchors.top: parent.top
    anchors.left: parent.left
    anchors.right: parent.right
    height: 34
    text-wrap: true
    text: Lista zadan dostepnych u NPC Lowca. Zadania wykonuje sie kolejno.
    color: #e8d89c

  TextList
    id: taskList
    anchors.top: info.bottom
    anchors.left: parent.left
    width: 245
    anchors.bottom: bottomSep.top
    margin-top: 6
    margin-bottom: 8
    focusable: false
    vertical-scrollbar: taskScroll

  VerticalScrollBar
    id: taskScroll
    anchors.top: taskList.top
    anchors.bottom: taskList.bottom
    anchors.right: taskList.right
    step: 24
    pixels-scroll: true

  Panel
    id: details
    anchors.top: taskList.top
    anchors.left: taskList.right
    anchors.right: parent.right
    anchors.bottom: taskList.bottom
    margin-left: 12
    padding: 12
    background-color: #292929
    border-width: 1
    border-color: #777777

    Label
      id: taskName
      anchors.top: parent.top
      anchors.left: parent.left
      anchors.right: parent.right
      text-align: center
      font: verdana-11px-rounded
      color: #ffd86b
      text: Wybierz task

    Label
      id: kills
      anchors.top: taskName.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 20
      text: Wymagane zabicia: -

    Label
      id: experience
      anchors.top: kills.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 12
      text: Doswiadczenie: -

    Label
      id: money
      anchors.top: experience.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 12
      text: Zloto: -

    Label
      anchors.top: money.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      margin-top: 24
      text-wrap: true
      color: #aaaaaa
      text: Podejdz do NPC Lowca. Przycisk rozpoczyna aktualne zadanie, a Raport oddaje je po wykonaniu.

  HorizontalSeparator
    id: bottomSep
    anchors.left: parent.left
    anchors.right: parent.right
    anchors.bottom: startButton.top
    margin-bottom: 8

  Button
    id: closeButton
    anchors.right: parent.right
    anchors.bottom: parent.bottom
    width: 70
    text: Zamknij
    @onClick: modules.game_huntertasks.hide()

  Button
    id: reportButton
    anchors.right: closeButton.left
    anchors.bottom: parent.bottom
    margin-right: 6
    width: 90
    text: Raport
    @onClick: modules.game_huntertasks.reportTask()

  Button
    id: startButton
    anchors.right: reportButton.left
    anchors.bottom: parent.bottom
    margin-right: 6
    width: 110
    text: Rozpocznij
    @onClick: modules.game_huntertasks.startTask()
