Files 2
Downloads 209,955
Favorites 382
View Bug Report
UI error
Bug #: 929
File: Show Motifs
Date: 07/05/14 09:13 AM
By: Garkin
Status: Not a Bug
Code:
2014-07-05T17:01:21.623+01:00 |cff0000Lua Error: user:/AddOns/ShowMotifs/ShowMotifsSettings.lua:62: attempt to index a nil value
stack traceback:
	user:/AddOns/ShowMotifs/ShowMotifsSettings.lua:62: in function 'ShowMotifs.ShowMotifsSettings:GetMotif'
	user:/AddOns/ShowMotifs/ShowMotifs.lua:150: in function 'CheckMotifID'
	user:/AddOns/ShowMotifs/ShowMotifs.lua:272: in function 'AddMotifIndicatorToSlot'
	user:/AddOns/ShowMotifs/ShowMotifs.lua:506: in function 'setupCallback'
	EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:1239: in function 'ZO_ScrollList_UpdateScroll'
	(tail call): ?
	(tail call): ?
	(tail call): ?
	(tail call): ?
	EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:1000: in function 'ZO_ScrollList_Commit'|r

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Garkin - 07/05/14 10:01 AM
Sorry I found the issue - I had an error in saved variables.

But at least I will post style I use:
Code:
	["Style Material"] = {
		[ITEMSTYLE_RACIAL_HIGH_ELF] = {
			texture = "EsoUI/Art/Icons/grafting_gems_adamantine.dds", --Adamantite
		},
		[ITEMSTYLE_AREA_ANCIENT_ELF] = {
			texture = "EsoUI/Art/Icons/crafting_ore_palladium.dds", --Palladium
		},
		[ITEMSTYLE_RACIAL_ARGONIAN] = {
			texture = "EsoUI/Art/Icons/crafting_smith_potion_standard_f_002.dds", --Flint
		},
		[ITEMSTYLE_AREA_REACH] = {
			texture = "EsoUI/Art/Icons/crafting_smith_potion_standard_f_001.dds", --Copper
		},
		[ITEMSTYLE_RACIAL_WOOD_ELF] = {
			texture = "EsoUI/Art/Icons/crafting_gems_daedra_skull.dds", --Bone
		},
		[ITEMSTYLE_RACIAL_BRETON] = {
			texture = "EsoUI/Art/Icons/crafting_metals_molybdenum.dds", --Molybdenum
		},
		[ITEMSTYLE_ENEMY_DAEDRIC] = {
			texture = "EsoUI/Art/Icons/crafting_walking_dead_mort_heart.dds", --Daedra Heart
		},
		[ITEMSTYLE_RACIAL_DARK_ELF] = {
			texture = "EsoUI/Art/Icons/crafting_metals_graphite.dds", --Obsidian
		},
		[ITEMSTYLE_RACIAL_KHAJIIT] = {
			texture = "EsoUI/Art/Icons/crafting_smith_plug_sp_names_001.dds", --Moonstone
		},
		[ITEMSTYLE_RACIAL_IMPERIAL] = {
			texture = "EsoUI/Art/Icons/crafting_heavy_armor_sp_names_001.dds", --Nickel
		},
		[ITEMSTYLE_RACIAL_NORD] = {
			texture = "EsoUI/Art/Icons/crafting_metals_corundum.dds", --Corundum
		},
		[ITEMSTYLE_RACIAL_ORC] = {
			texture = "EsoUI/Art/Icons/crafting_metals_manganese.dds", --Manganese
		},
		[ITEMSTYLE_ENEMY_PRIMITIVE] = {
			texture = "EsoUI/Art/Icons/crafting_metals_argentum.dds", --Argentum
		},
		[ITEMSTYLE_RACIAL_REDGUARD] = {
			texture = "EsoUI/Art/Icons/crafting_medium_armor_sp_names_002.dds", --Starmetal
		},
		[ITEMSTYLE_NONE] = {
			texture = "EsoUI/Art/Crafting/crafting_tooltip_glow_center.dds", --transparent
		},
	},
Code:
	["Style Material"] = {
		[ARMORTYPE_LIGHT] = {
			texture = "EsoUI/Art/CharacterCreate/CharacterCreate_bodyIcon_up.dds",
			letter =  [[ShowMotifs/themes/Alphabetic/lightarmor_letter.dds]],
			},
		[ARMORTYPE_MEDIUM] = {
			texture = "EsoUI/Art/Campaign/overview_indexIcon_scoring_up.dds",
			letter =  [[ShowMotifs/themes/Alphabetic/mediumarmor_letter.dds]],
		},
		[ARMORTYPE_HEAVY] = {
			texture = "EsoUI/Art/Inventory/inventory_tabIcon_armor_up.dds",
			letter =  [[ShowMotifs/themes/Alphabetic/heavyarmor_letter.dds]],
		},
	},
By: mra4nii - 07/07/14 02:05 AM
I should check this style and include as an option.
Thanks
By: Garkin - 07/08/14 07:11 AM
Just do not enable quality colors for this style. Preview:

By: mra4nii - 07/08/14 07:50 AM
i see your icon position is far right. You use addon position slider?
How does it work with guild store?
By: Garkin - 07/08/14 04:44 PM
- I have armor type disabled, as I feel I do not need it with advanced filters.
- Yes I have positioned it using the slider (["position"] = 78).
- Store:
By: Garkin - 10/16/14 06:35 PM
Update 5 (PTS) adds a new style - Dwemer - so I have added a new icon:
lua Code:
  1. [ITEMSTYLE_AREA_DWEMER] = {
  2.     texture = [[EsoUI/Art/Icons/crafting_dwemer_shiny_tube.dds]], --Dwemer Frame
  3. },

Also it seems that position of the icon is now different, I have to use 40 instead of 78. It is because inventory row template "ZO_PlayerInventorySlot" has now different layout - stat value is closer to the sell price and name is wider.
By: Garkin - 10/19/14 10:16 AM
New Dwemer motif is legendary, so I have changed code this way:

lua Code:
  1. if ( MotifID == ITEMSTYLE_AREA_ANCIENT_ELF or MotifID == ITEMSTYLE_AREA_REACH or MotifID == ITEMSTYLE_ENEMY_PRIMITIVE or MotifID == ITEMSTYLE_ENEMY_DAEDRIC ) then
  2.     MotifControl:SetDimensions(SMSettings:GetMotifTextureSize() - 2, SMSettings:GetMotifTextureSize() - 2)
  3.     MotifControlBG:SetColor(GetItemQualityColor(ITEM_QUALITY_ARTIFACT):UnpackRGBA())
  4.     MotifControlBG:SetHidden(false)
  5. elseif ( MotifID == ITEMSTYLE_RACIAL_IMPERIAL or MotifID == ITEMSTYLE_AREA_DWEMER ) then
  6.     MotifControl:SetDimensions(SMSettings:GetMotifTextureSize() - 2, SMSettings:GetMotifTextureSize() - 2)
  7.     MotifControlBG:SetColor(GetItemQualityColor(ITEM_QUALITY_LEGENDARY):UnpackRGBA())
  8.     MotifControlBG:SetHidden(false)
  9. else
  10.     MotifControlBG:SetHidden(true)
  11. end
  12. MotifControl:SetHidden(false)


New motif book:
By: mra4nii - 10/24/14 08:31 AM
yep, i already took a look. Planning to add akaviri and yokudan icons styles too.
Thanks for info about quality.