RefreshDropItemDisplayCommand.lua 665 B

123456789101112131415161718
  1. local RefreshDropItemDisplayCommand = class('RefreshDropItemDisplayCommand', framework.SimpleCommand)
  2. local optionsUtils = requireProxy( "optionsUtils" )
  3. function RefreshDropItemDisplayCommand:ctor()
  4. end
  5. function RefreshDropItemDisplayCommand:execute()
  6. local itemVec, nItemVec = global.dropItemManager:FindDropItemInCurrViewFieldAll()
  7. for i = 1, nItemVec do
  8. local actor = itemVec[i]
  9. if actor then
  10. optionsUtils:InitHUDVisibleValue(actor, global.MMO.HUD_NAMELabel_VISIBLE)
  11. optionsUtils:refreshHUDLabelNameVisible(actor)
  12. end
  13. end
  14. end
  15. return RefreshDropItemDisplayCommand