|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
-- These are flags for a bitmask.
ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES =
{
HAS_KEYBINDS = 1,
HIDDEN_BY_INTERACTIVE_WHEEL = 2,
-- Next value: 4
}
local LOOT_PRIORITY = 1
local INSTANCE_KICK_PRIORITY = 2
local TUTORIAL_PRIORITY = 3
local SYNERGY_PRIORITY = 4
local RAM_PRIORITY = 5
local FLAG_CAPTURE_PRIORITY = 6
local PLAYER_TO_PLAYER_PRIORITY = 7
local ACTS_PRIORITY = 8
local NO_CATEGORIES = nil
self.prioritizedVisibility:RegisterCallback("VisibleObjectChanged", self.OnVisibleObjectChanged, self)
end
self.prioritizedVisibility:Add(lootWindow, LOOT_PRIORITY, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HAS_KEYBINDS, "Loot")
end
self.prioritizedVisibility:Add(tutorial, TUTORIAL_PRIORITY, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HIDDEN_BY_INTERACTIVE_WHEEL, "Tutorial")
end
self.prioritizedVisibility:Add(synergy, SYNERGY_PRIORITY, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HAS_KEYBINDS, "Synergy")
end
end
end
self.prioritizedVisibility:Add(playerToPlayer, PLAYER_TO_PLAYER_PRIORITY, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HAS_KEYBINDS, "PlayerToPlayer")
end
end
self.prioritizedVisibility:Add(instanceKick, INSTANCE_KICK_PRIORITY, ZO_SHARED_INFORMATION_AREA_SUPPRESSION_CATEGORIES.HAS_KEYBINDS, "InstanceKick")
end
end
-- Returns true if the specified object has requested to be hidden.
end
-- Returns true if all objects are globally suppressed.
end
end
-- Requests to show or hide the specified object.
if hidden ~= isCurrentlyHidden then
end
end
-- Globally suppresses/unsuppresses the display of all objects.
-- Note that 'descriptor' should be a globally unique identifier of the system issuing the request.
descriptor = descriptor or caller
self.prioritizedVisibility:SetCategoriesSuppressed(suppressed, ZO_PRIORITIZED_VISIBILITY_CATEGORIES.ALL, descriptor)
end
-- Suppresses or unsuppresses the specified categories.
-- Note that 'descriptor' should be a globally unique identifier of the system issuing the request.
descriptor = descriptor or caller
self:FireCallbacks("CategoriesSuppressionStateChanged", suppressed, categoriesMask, descriptor, caller)
end
-- If 'suppressed' is true, suppresses the specified categories and unsuppresses all other categories;
-- otherwise, unsuppresses the specified categories and suppresses all other categories.
-- Note that 'descriptor' should be a globally unique identifier of the system issuing the request.
descriptor = descriptor or caller
self:FireCallbacks("CategoriesMaskSuppressionStateChanged", suppressed, categoriesMask, descriptor, caller)
end
|