View Bug Report
Legendary motifs
Bug #: 1101
File: Harven's Trait and Style
Date: 10/19/14 10:30 AM
By: Garkin
Status: Flagged for Future Version
Option "Colorize style name" does not work for legendary styles (motifs).

Modified formatStyle function:
lua Code:
  1. local function formatStyle(styleIndex)
  2.     local style = GetString("SI_ITEMSTYLE", styleIndex)
  3.     if not g_savedVars.colorizeStyle or styleIndex == ITEMSTYLE_NONE then
  4.         return style
  5.     end
  6.  
  7.     local color
  8.     if styleIndex >= ITEMSTYLE_RACIAL_BRETON and styleIndex <= ITEMSTYLE_RACIAL_KHAJIIT then
  9.         color = GetItemQualityColor(ITEM_QUALITY_ARCANE)
  10.     elseif styleIndex == ITEMSTYLE_RACIAL_IMPERIAL or styleIndex == ITEMSTYLE_AREA_DWEMER then
  11.         color = GetItemQualityColor(ITEM_QUALITY_LEGENDARY)
  12.     else
  13.         color = GetItemQualityColor(ITEM_QUALITY_ARTIFACT)
  14.     end
  15.     return color:Colorize(style)
  16. end

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Harven - 10/27/14 04:05 AM
Hey Garkin,
thanks, I'll try to implement this fix and other discussed at the addon's comments page when I renew my subscription at november.