View Single Post
02/24/15, 09:29 PM   #57
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Is it intended that you get "item repaired" alerts even in "keyboard" mode?

I believe that those alerts are from ZO_GamepadStoreManager:
Lua Code:
  1. -- part of the ZO_GamepadStoreManager:Initialize(control) function
  2.     local function OnItemRepaired(bagId, slotIndex)
  3.         if self.isRepairingAll then
  4.             if self.numberItemsRepairing > 0 then
  5.                 self.numberItemsRepairing = self.numberItemsRepairing - 1
  6.                 if self.numberItemsRepairing == 0 then
  7.                     self:RepairMessageBox()
  8.                     self.isRepairingAll = false
  9.                 end
  10.             end
  11.         else
  12.             self:RepairMessageBox(bagId, slotIndex)
  13.         end
  14.     end
  15.  
  16.     SHARED_INVENTORY:RegisterCallback("ItemRepaired", OnItemRepaired)
  17. ---
  18.  
  19. function ZO_GamepadStoreManager:RepairMessageBox(bagId, slotId)
  20.     if not bagId then
  21.         local message = zo_strformat(SI_GAMEPAD_REPAIR_ALL_SUCCESS)
  22.         ZO_AlertNoSuppression(UI_ALERT_CATEGORY_ALERT, nil, message)
  23.     else
  24.         local name = zo_strformat(SI_TOOLTIP_ITEM_NAME, GetItemName(bagId, slotId))
  25.         local message = zo_strformat(SI_GAMEPAD_REPAIR_ITEM_SUCCESS, name)
  26.         if message then
  27.             ZO_AlertNoSuppression(UI_ALERT_CATEGORY_ALERT, nil, message)
  28.         end
  29.     end
  30. end
  Reply With Quote