Added more information on search form.

Pontus Welin [10-27-16 - 04:31]
Added more information on search form.
Filename
EnchantMaker.lua
diff --git a/EnchantMaker.lua b/EnchantMaker.lua
index 231fe51..28b5ba1 100644
--- a/EnchantMaker.lua
+++ b/EnchantMaker.lua
@@ -826,7 +826,7 @@ function EnchMaker.updateControls()
                 control.text = k.name
                 -- ZO_CheckButton_SetToggleFunction(control, EnchMaker.checkButtonClicked)
                 labelControl = CreateControlFromVirtual(controlName .. "Text", control, "EnchantMakerCheckBoxText")
-                labelControl:SetText(k.name)
+                labelControl:SetText(k.name .. " (+ " .. k.minLevel .."-".. k.maxLevel .. ")")
                 control:SetHandler("OnMouseUp", EnchMaker.checkboxInfo)
                 control.item = k
             else
@@ -847,7 +847,7 @@ function EnchMaker.updateControls()
                 control.text = k.name
                 -- ZO_CheckButton_SetToggleFunction(control, EnchMaker.checkButtonClicked)
                 labelControl = CreateControlFromVirtual(controlName .. "Text", control, "EnchantMakerCheckBoxText")
-                labelControl:SetText(k.name)
+                labelControl:SetText(k.name .. " (- " .. k.minLevel .."-".. k.maxLevel .. ")")
                 control:SetHandler("OnMouseUp", EnchMaker.checkboxInfo)
                 control.item = k
             else
@@ -870,16 +870,16 @@ function EnchMaker.updateControls()
             local labelControl = WINDOW_MANAGER:GetControlByName(controlName .. "Text")
             if control == nil then
                 control = CreateControlFromVirtual(controlName, EnchantMakerSearchBG, "EnchantMakerCheckBox")
-                control:SetSimpleAnchorParent(290, (control:GetHeight()+2)*(index-1))
+                control:SetSimpleAnchorParent(250, (control:GetHeight()+2)*(index-1))
                 control.text = k.name
                 -- ZO_CheckButton_SetToggleFunction(control, EnchMaker.checkButtonClicked)
                 labelControl = CreateControlFromVirtual(controlName .. "Text", control, "EnchantMakerCheckBoxText")
-                labelControl:SetText(k.name)
+                labelControl:SetText(k.name .. " (" .. k.translation .. ")")
                 control:SetHandler("OnMouseUp", EnchMaker.checkboxInfo)
                 control.item = k
             else
                 control:SetHidden(false)
-                control:SetSimpleAnchorParent(290, (control:GetHeight()+2)*(index-1))
+                control:SetSimpleAnchorParent(250, (control:GetHeight()+2)*(index-1))
             end
             EnchMaker.EssenceFilterControls[index] = control
             index = index + 1
@@ -895,7 +895,7 @@ function EnchMaker.updateControls()

     if #EnchMaker.AspectFilterControls == 0 then
         local index = 1
-        for _, k in pairs(EnchMaker.sortAndFlattenIngredients(EnchMaker.Inventory.runestones.aspect, function (a, b) if a.skillRequirement == b.skillRequirement then return a.name < b.name else return a.skillRequirement < b.skillRequirement end end)) do
+        for _, k in pairs(EnchMaker.sortAndFlattenIngredients(EnchMaker.Inventory.runestones.aspect, function (a, b) if a.quality == b.quality then return a.name < b.name else return a.quality < b.quality end end)) do
             local controlName = "EnchantMaker" .. k.name:gsub(" ", "") .. "CheckBox"
             local control = WINDOW_MANAGER:GetControlByName(controlName)
             local labelControl = WINDOW_MANAGER:GetControlByName(controlName .. "Text")
@@ -904,8 +904,10 @@ function EnchMaker.updateControls()
                 control:SetSimpleAnchorParent(500, (control:GetHeight()+2)*(index-1))
                 control.text = k.name
                 -- ZO_CheckButton_SetToggleFunction(control, EnchMaker.checkButtonClicked)
+				local qualityColor = GetItemQualityColor(k.quality)
+				thisQualityColor = EnchMaker.DEC_HEX(math.floor(((qualityColor["r"]) * 256) - 0.5)) .. EnchMaker.DEC_HEX(math.floor(((qualityColor["g"]) * 256) - 0.5)) .. EnchMaker.DEC_HEX(math.floor(((qualityColor["b"]) * 256) - 0.5))
                 labelControl = CreateControlFromVirtual(controlName .. "Text", control, "EnchantMakerCheckBoxText")
-                labelControl:SetText(k.name)
+                labelControl:SetText("|c" .. thisQualityColor .. k.name .. "|r")
                 control:SetHandler("OnMouseUp", EnchMaker.checkboxInfo)
                 control.item = k
             else