I've tried different things, for example.
Lua Code:
local WorldMapDataProvider = CreateFromMixins(MapCanvasDataProviderMixin)
local WorldMapPinMixin = CreateFromMixins(MapCanvasPinMixin)
function WorldMapPinMixin:SetPassThroughButtons() end
function WorldMapPinMixin:OnLoad()
self:UseFrameLevelType('PIN_FRAME_LEVEL_MAP_HIGHLIGHT')
end
function WorldMapPinMixin:ApplyFrameLevel()
MapCanvasPinMixin.ApplyFrameLevel(self)
self:SetFrameLevel(self:GetFrameLevel() + self.frameOffset)
end
i also tried to add it directly like xxx:SetFrameLevel(5000)
sometimes my icon or the tooltip is over it and shows it is displayed correctly and sometimes not
but I just can't get it to work. If anyone has the time or desire to help me and tell me why my setframelevel doesn't work or what I forgot to make it work.