Andromeda

Andromeda

26.4k Downloads

how can i use the NOTIFICATION.Frame.clickFunc ?

Smallinger opened this issue ยท 3 comments

commented

Hey i want to add a function on the rare.lua in notification, so that i create a map pin marker if i click on the notification.

how i can use the NOTIFICATION.Frame.clickFunc ?

commented

i fount out if i add this

local mapPoint = UiMapPoint.CreateFromVector2D(mapID, position) C_Map.SetUserWaypoint(mapPoint)

to following file modules/notification/rare.lua 44-45

then i get every time a waypoint after a notification was made, how can i add a left click ?

commented

modules/notification/rare.lua 34
replace nil with the func you add

like this

local function myClickFunc()
        -- do something
end

F:CreateNotification(
            _G.GARRISON_MISSION_RARE,
            tex .. (info.name or ''),
            myClickFunc,
            'Interface\\ICONS\\INV_Misc_Map_01'
        )
commented

hey thx i made a pull request would love to see the changes in the next release.
#159