v3.1.5 released on esoui

His Dad [12-10-14 - 09:06]
v3.1.5 released on esoui
2014-12-09 V3.1.5
New Feature
Show Dwemer Motifs (not tested, the author doesn't have any)  by rkuhnjr
Bugs Fixed
None
Filename
AIResearchGrid.lua
changelog
diff --git a/AIResearchGrid.lua b/AIResearchGrid.lua
index d94ddcf..7bf8895 100644
--- a/AIResearchGrid.lua
+++ b/AIResearchGrid.lua
@@ -1,12 +1,13 @@
 -- AI Research Grid Addon for Elder Scrolls Online
 -- Author: Stormknight/LCAmethyst
 -- "All" and "Relative"  functionality by His Dad
+-- Dwemer Motif by rkuhnjr

 local _
 AIRG = {}

 AIRG.name = "AIResearchGrid"
-AIRG.version = "3.1.4"
+AIRG.version = "3.1.5"
 AIRG.initialised = false
 AIRG.processing = false
 AIRG.all = " #ALL"  -- displayname for Virtual character
@@ -313,11 +314,11 @@ function AIRG.initUI()
     -- It's set-up inside a container frame to make hiding or showing the whole lot simpler.
     AIRG.UI.motifSection = WINDOW_MANAGER:CreateControl("AIResearchMotifSection", AIResearchGrid, CT_CONTROL)
     AIRG.UI.motifSection:SetDimensions(760, 50)
-    AIRG.UI.motifSection:SetAnchor(BOTTOMLEFT, AIResearchGrid, BOTTOMLEFT, 0, 0)
+    AIRG.UI.motifSection:SetAnchor(BOTTOMLEFT, AIResearchGrid, BOTTOMLEFT, -40, 0)
     AIRG.UI.motifSection:SetHidden(not AIRG.vars.showMotifs)
     AIResearchGrid:SetHeight(AIRG.vars.showMotifs and 706 or 636)
     AIRG.UI.motifButtons = {}
-    for i = 1, 14 do
+    for i = 1, 15 do
         AIRG.UI.motifButtons[i] = WINDOW_MANAGER:CreateControl("AIResearchGridMotifButton" .. tostring(i), AIRG.UI.motifSection, CT_TEXTURE)
         AIRG.UI.motifButtons[i]:SetDimensions(40, 40)
         AIRG.UI.motifButtons[i]:SetAnchor(TOPLEFT, AIRG.UI.motifSection, TOPLEFT, 42*i +124, 0)
@@ -505,7 +506,7 @@ end -- AIRG.PopulateMatrix
 function AIRG.PopulateStyleData()
     AIRG.vars.styles[AIRG.playerName] = {}    -- create a table for this character's matrix
     local i, j, known
-    for i = 1, 14 do
+    for i = 1, 15 do
         j = AIRG.styleLookupItem[i]
         known = IsSmithingStyleKnown(j, 1) --patternIndex set to 1, temporary workaround for changes introduced in Update 4
         AIRG.vars.styles[AIRG.playerName][i] = known
@@ -542,7 +543,7 @@ function AIRG.PopulateAll()
 function AIRG.DisplayStyles()
     local i
     if (AIRG.vars.styles[AIRG.curCharacter] == nil) then
-        for i = 1, 14 do
+        for i = 1, 15 do
             AIRG.UI.motifButtons[i]:SetTexture(AIRG.styleLookupIcons[i] .. "up.dds")
             AIRG.UI.motifButtons[i]:SetColor(1, 1, 1, 0.7)   -- grey
         end
@@ -662,6 +663,7 @@ function AIRG.AssignStyleLookups()
     AIRG.styleLookupIcons[12] = "ESOUI/art/progression/progression_indexicon_weapons_"
     AIRG.styleLookupIcons[13] = "ESOUI/art/progression/progression_indexicon_weapons_"
     AIRG.styleLookupIcons[14] = "ESOUI/art/progression/progression_indexicon_weapons_"
+    AIRG.styleLookupIcons[15] = "ESOUI/art/progression/progression_indexicon_weapons_"
     -- Translate the icon position to the in-game type. Used for text look-up
     AIRG.styleLookupValue = {}
     AIRG.styleLookupValue[1] = ITEMSTYLE_RACIAL_HIGH_ELF
@@ -678,6 +680,8 @@ function AIRG.AssignStyleLookups()
     AIRG.styleLookupValue[12] = ITEMSTYLE_AREA_REACH
     AIRG.styleLookupValue[13] = ITEMSTYLE_ENEMY_DAEDRIC
     AIRG.styleLookupValue[14] = ITEMSTYLE_ENEMY_PRIMITIVE
+    AIRG.styleLookupValue[15] = ITEMSTYLE_AREA_DWEMER
+
     -- This is a bit of a hack, but only because of the way ESO uses Style Items with different index to styles.
     AIRG.styleLookupItem = {}
     AIRG.styleLookupItem[1] = 8     -- Altmer       = Adamantite
@@ -694,6 +698,7 @@ function AIRG.AssignStyleLookups()
     AIRG.styleLookupItem[12] = 18   -- Barbarian    = Copper
     AIRG.styleLookupItem[13] = 21   -- Daedric      = Daedra Heart
     AIRG.styleLookupItem[14] = 20   -- Primal       = Argentum
+    AIRG.styleLookupItem[15] = 15   -- Dwemer       = Dwemer Frame
 end -- AIRG.AssignStyleLookups


diff --git a/changelog b/changelog
index 4ab970b..731dab3 100644
--- a/changelog
+++ b/changelog
@@ -28,3 +28,9 @@
 	Bugs Fixed
 	None
 	Note: this file does not have a txt extension, for good reason!
+
+2014-12-09 V3.1.5
+	New Feature
+	Show Dwemer Motifs (not tested, the author doesn't have any)  by rkuhnjr
+	Bugs Fixed
+	None
\ No newline at end of file