Back to Home

ESO Lua File v101037

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
ZO_TargetMarkerWheel_Shared = ZO_InteractiveRadialMenuController:Subclass()
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()
    local icons = IsInGamepadPreferredMode() and TARGET_MARKER_ICONS_GAMEPAD or TARGET_MARKER_ICONS_KEYBOARD
    for iconIndex, iconPath in ipairs(ZO_GetPlatformTargetMarkerIconTable()) do
        self.menu:AddEntry("", iconPath, iconPath, function() AssignTargetMarkerToReticleTarget(iconIndex) end, iconIndex)
    end
end
-----------------------------
-- Global Functions
-----------------------------
end