[hack] 修改 CraftStore 藍圖列表顏色

CraftStore 藍圖列表,不像食譜列表,用品質區分
如果沒學會就一堆紅色必須把滑鼠移上去才知道
個人因素覺得不舒服,所以為調整了一下,供參考

此方式是直接修改 addon 的程式碼
所以如果有更新的話可能要自己再次修改
此文章使用的版本是
CraftStore Fixed and Improved 1.1 (1.1.0.9)

需修改的檔案為
D:\Users\ xxxxxxxxxx \Documents\Elder Scrolls Online\live\AddOns\CraftStoreFixedAndImproved\CraftStore.lua

請先找到這一個段落

function CS.BlueprintShow(id,inc,known)
  local color, mark, control
  if CS.Account.furnisher.ingredients[CS.Furnisher.recipe[id].id] then mark = '|t22:22:esoui/art/inventory/newitem_icon.dds|t ' else mark = '' end
  if CS.Furnisher.recipe[id].known then color = CS.Quality[CS.Furnisher.recipe[id].quality]; known = known + 1; else color = {1,0,0,1} end
  control = WM:GetControlByName('CraftStoreFixed_BlueprintPanelScrollChildButton'..inc)
  control:SetNormalFontColor(color[1],color[2],color[3],color[4])
  control:SetText(mark..'('..CS.Furnisher.recipe[id].level..') '..CS.Furnisher.recipe[id].name)
  control:SetHidden(false)
  control.data = {link = CS.Furnisher.recipe[id].link, rec = id, id = CS.Furnisher.recipe[id].id, buttons = {CS.Loc.TT[7],CS.Loc.TT[6]}}
  return inc + 1, known
end

然後修改為

function CS.BlueprintShow(id,inc,known)
  local color, mark, control
  if CS.Account.furnisher.ingredients[CS.Furnisher.recipe[id].id] then mark = '|t22:22:esoui/art/inventory/newitem_icon.dds|t ' else mark = '' end
  -- if CS.Furnisher.recipe[id].known then 
    color = CS.Quality[CS.Furnisher.recipe[id].quality]; known = known + 1; 
  -- else 
    -- color = {1,0,0,1} 
  -- end
  control = WM:GetControlByName('CraftStoreFixed_BlueprintPanelScrollChildButton'..inc)
  if CS.Furnisher.recipe[id].known then 
    control:SetNormalFontColor(color[1],color[2],color[3],color[4])
  else 
    control:SetNormalFontColor(color[1],color[2],color[3],0.3)
  end
  control:SetText(mark..'('..CS.Furnisher.recipe[id].level..') '..CS.Furnisher.recipe[id].name)
  control:SetHidden(false)
  control.data = {link = CS.Furnisher.recipe[id].link, rec = id, id = CS.Furnisher.recipe[id].id, buttons = {CS.Loc.TT[7],CS.Loc.TT[6]}}
  return inc + 1, known
end

最後 reload ui 就可以了
效果如下列圖片