Fix district icons and error messaging
Scott Yeskie [06-02-16 - 23:39]
Fix district icons and error messaging
diff --git a/CyrHUD.lua b/CyrHUD.lua
index 3ab7482..83628be 100644
--- a/CyrHUD.lua
+++ b/CyrHUD.lua
@@ -45,7 +45,7 @@ CyrHUD.errors = {}
function CyrHUD:error(val)
if not self.errors[val] then
self.errors[val] = 1
- d("|cFF0000ERROR (CyrHUD): " .. val .. "\n|CCCCCCCPlease file this bug info at |CEEEEFFesoui.com")
+ d("|cFF0000ERROR (CyrHUD): " .. val .. "\n|CCCCCCCPlease file this bug info with a screenshot at |CEEEEFFesoui.com (CyrHUD)")
end
end
diff --git a/CyrHUD.txt b/CyrHUD.txt
index 6563ee3..fe6e04b 100644
--- a/CyrHUD.txt
+++ b/CyrHUD.txt
@@ -1,6 +1,6 @@
-## APIVersion: 100014
+## APIVersion: 100015
## Title: CyrHUD
-## Version: 1.2.5
+## Version: 1.3.0
## Author: Sasky
## SavedVariables: CyrHUD_SavedVars
## OptionalDependsOn: LibAddonMenu-2.0
diff --git a/classes/Info.lua b/classes/Info.lua
index 716d767..fbd99e3 100644
--- a/classes/Info.lua
+++ b/classes/Info.lua
@@ -62,14 +62,15 @@ CyrHUD.info[EP].flag = "/esoui/art/ava/ava_allianceflag_ebonheart.dds"
CyrHUD.icons = {}
CyrHUD.icons[KEEPTYPE_KEEP] = "/esoui/art/mappins/ava_largekeep_neutral.dds"
CyrHUD.icons[KEEPTYPE_OUTPOST] = "/esoui/art/mappins/ava_outpost_neutral.dds"
+CyrHUD.icons[KEEPTYPE_IMPERIAL_CITY_DISTRICT] = "/esoui/art/mappins/ava_imperialdistrict_neutral.dds"
CyrHUD.icons[10 + RESOURCETYPE_FOOD] = "/esoui/art/mappins/ava_farm_neutral.dds"
CyrHUD.icons[10 + RESOURCETYPE_ORE] = "/esoui/art/mappins/ava_mine_neutral.dds"
CyrHUD.icons[10 + RESOURCETYPE_WOOD] = "/esoui/art/mappins/ava_lumbermill_neutral.dds"
--For no icon fallback
setmetatable(CyrHUD.icons, {__index = function(_,k)
- CyrHUD.error("Bad icon lookup: " .. k)
+ CyrHUD:error("Bad icon lookup: " .. k)
return "/esoui/art/mappins/ava_largekeep_neutral.dds"
end})
--/esoui/art/campaign/overview_scrollicon_aldmeri.dds
--/esoui/art/campaign/overview_scrollicon_daggefall.dds
---/esoui/art/campaign/overview_scrollicon_ebonheart.dds
\ No newline at end of file
+--/esoui/art/campaign/overview_scrollicon_ebonheart.dds