View Feature Request
Icons for Gear Set
Feature #: 1725
File: Dressing Room 2018
Date: 08/28/18 01:08 AM
By: Scootworks
Status: Under Review
For me it's easier to see the gear icon instead just the text. Here is one suggestion:

lua Code:
  1. local function GetWornGear()
  2.   local gear = {emptySlots = {}}
  3.   local gearName = {}
  4.   for _, gearSlot in ipairs(DressingRoom.gearSlots) do
  5.     local itemId = GetItemUniqueId(BAG_WORN, gearSlot)
  6.     if itemId then
  7.       gear[Id64ToString(itemId)] = gearSlot
  8.       local icon = GetItemInfo(BAG_WORN, gearSlot)
  9.       gearName[#gearName+1] = ZO_CachedStrFormat("|t100%:100%:<<1>>|t <<t:2>>", icon, GetItemLink(BAG_WORN, gearSlot, LINK_STYLE_DEFAULT))
  10.     elseif not ((gearSlot == EQUIP_SLOT_OFF_HAND and DressingRoom.twoHanded[GetItemWeaponType(BAG_WORN, EQUIP_SLOT_MAIN_HAND)])
  11.              or (gearSlot == EQUIP_SLOT_BACKUP_OFF and DressingRoom.twoHanded[GetItemWeaponType(BAG_WORN, EQUIP_SLOT_BACKUP_MAIN)])) then
  12.       -- save empty slots; off-hand is not considered empty if a two-handed weapon is equipped
  13.       table.insert(gear.emptySlots, gearSlot)
  14.     end
  15.   end
  16.   return gear, gearName
  17. end