{
  "$schema": "http://www.lavishsoft.com/schema/lgui2Package.json",
  "type": "stackpanel",
  "name": "mr.quest_writer.run_path_properties",
  "_dock": "bottom",
  "borderBrush": {
    "color": "#f4f3ee"
  },
  "templates": {
    "property_header": {
      "type": "panel",
      "borderBrush": {
        "color": "#f4f3ee"
      },
      "borderThickness": [0, 0, 0, 1],
      "margin": [0, 0, 0, 15]
    },
    "property_group": {
      "type": "stackpanel",
      "orientation": "vertical",
      "borderBrush": {
        "color": "#f4f3ee"
      },
      "borderThickness": [1, 1, 1, 1],
      "padding": [5, 5, 5, 5],
      "margin": [5, 5, 5, 5]
    },
    "mr.quest_writer.run_path_properties.quest_item": {
      "type": "textblock",
      "padding": 2,
      "textBinding": {
        "pullFormat": "${_CONTEXTITEMDATA_.Get[name]}",
        "pullReplaceNull": ""
      }
    }
  },
  "borderThickness": [0, 2, 0, 0],
  "header": "test",
  "children": [
    {
      "type": "panel",
      "visibility": "hidden",
      "name": "mr.quest_writer.run_path_properties.events.events"
    },
    {
      "type": "panel",
      "jsonTemplate": "property_header",
      "children": [
        {
          "type": "textblock",
          "text": "Kill Mobs Properties",
          "font": {
            "bold": true,
            "heightFactor": 1.2
          },
          "horizontalAlignment": "center",
          "widthFactor": 1
        }
      ]
    },
    {
      "type": "stackpanel",
      "jsonTemplate": "property_group",
      "children": [
        {
          "type": "textblock",
          "text": "Target Name:",
          "widthFactor": 1,
          "horizontalAlignment": "left",
          "margin": [0, 0, 0, 15],
          "borderBrush": {
            "color": "#f4f3ee"
          },
          "borderThickness": [0, 0, 0, 1],
          "font": {
            "heightFactor": 0.9
          }
        },
        {
          "type": "stackpanel",
          "orientation": "horizontal",
          "children": [
            {
              "type": "button",
              "content": "◎",
              "tooltip": "Set the name to the currently targeted mob.",
              "margin": [0, 0, 5, 0],
              "eventHandlers": {
                "onRelease": [
                  "method",
                  "MRKillMobsPropertiesController",
                  "OnSetTargetNameButtonClick"
                ]
              }
            },
            {
              "type": "textblock",
              "widthFactor": 1,
              "text": "${MRKillMobsPropertiesController.CurrentTarget}"
            }
          ]
        }
      ]
    },
    {
      "type": "stackpanel",
      "orientation": "vertical",
      "jsonTemplate": "property_group",
      "children": [
        {
          "type": "textblock",
          "text": "Hunting Path",
          "widthFactor": 1,
          "horizontalAlignment": "left"
        },
        {
          "type": "button",
          "name": "mr.quest_writer.run_path_properties.add_point",
          "content": "Add Point",
          "tooltip": "Add a point.",
          "horizontalAlignment": "stretch",
          "eventHandlers": {
            "onRelease": [
              "method",
              "MRRunPathPropertiesController",
              "OnAddPointClick"
            ]
          }
        },
        {
          "type": "stackpanel",
          "widthFactor": 1,
          "children": [
            {
              "type": "textblock",
              "text": "Distance From Last",
              "horizontalAlignment": "left",
              "widthFactor": 1
            },
            {
              "type": "textblock",
              "horizontalAlignment": "left",
              "widthFactor": 1,
              "textBinding": {
                "pullFormat": "${MRRunPathPropertiesController.GetDistanceFromLastPoint}"
              }
            }
          ]
        }
      ]
    },
    {
      "type": "stackpanel",
      "jsonTemplate": "property_group",
      "horizontalContentAlignment": "left",
      "children": [
        {
          "type": "textblock",
          "text": "Kill Quest Step",
          "tooltip": "This is the step we will check to see when this action is finished."
        },
        {
          "type": "stackpanel",
          "orientation": "horizontal",
          "margin": [0, 0, 0, 15],
          "children": [
            {
              "type": "combobox",
              "widthFactor": 0.8,
              "eventHandlers": {
                "onSelectionChanged": [
                  "method",
                  "MRKillMobsPropertiesController",
                  "OnQuestSelectionChanged"
                ]
              },
              "itemsBinding": {
                "pullFormat": "${MRKillMobsPropertiesController.QuestList}",
                "pullReplaceNull": "",
                "pullOnce": true
              },
              "popup": {
                "jsonTemplate": "combobox.popup",
                "maxSize": [250, 300]
              }
            },
            {
              "type": "button",
              "content": "⟳",
              "tooltip": "Refresh the quest steps.",
              "margin": [5, 0, 0, 0],
              "eventHandlers": {
                "onRelease": [
                  "method",
                  "MRKillMobsPropertiesController",
                  "OnRefreshQuestList"
                ]
              }
            }
          ]
        },
        {
          "type": "combobox",
          "widthFactor": 0.8,
          "itemsBinding": {
            "pullFormat": "${MRKillMobsPropertiesController.QuestStepList}",
            "pullReplaceNull": "",
            "pushFormat": [
              "MRKillMobsPropertiesController.SelectedStep:Set[",
              "]"
            ]
          },
          "popup": {
            "jsonTemplate": "combobox.popup",
            "maxSize": [250, 300]
          }
        }
      ]
    }
  ]
}
