Back to Home

ESO Lua File v101044

ingame/targetmarker/targetmarkerwheel_shared.lua

[◄ back to folders ]
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
ZO_TargetMarkerWheel_Shared = ZO_InteractiveRadialMenuController:Subclass()
function ZO_TargetMarkerWheel_Shared:Initialize(...)
    ZO_InteractiveRadialMenuController.Initialize(self, ...)
    self.menu:SetShowKeybinds(function() return ZO_AreTogglableWheelsEnabled() end)
    self.menu:SetKeybindActionLayer(GetString(SI_KEYBINDINGS_LAYER_ACCESSIBLE_QUICKWHEEL))
end
function ZO_TargetMarkerWheel_Shared:SetupEntryControl(entryControl, data)
    local NOT_SELECTED = false
    ZO_SetupSelectableItemRadialMenuEntryTemplate(entryControl, NOT_SELECTED)
end
function ZO_TargetMarkerWheel_Shared:PrepareForInteraction()
    if not SCENE_MANAGER:IsShowing("hud") then
        return false
    end
    return true
end
function ZO_TargetMarkerWheel_Shared:PopulateMenu()
    for iconIndex, iconPath in ipairs(ZO_GetPlatformTargetMarkerIconTable()) do
        self.menu:AddEntry("", iconPath, iconPath, function() AssignTargetMarkerToReticleTarget(iconIndex) end, iconIndex)
    end
end
-----------------------------
-- Global Functions
-----------------------------
end