Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-03-23, 03:03 PM   #1
Beardedrasta
A Murloc Raider
Join Date: Aug 2018
Posts: 7
Target Dropdown not detecting right click

This is my code it successfully allows me to left click target but no successful right click menu, It just does nothing with right click.

Code:
local frame1 = CreateFrame("BUTTON", "MyParty1", UIParent, "SecureUnitButtonTemplate")
frame1:SetSize(200, 40)
frame1:SetBackdrop({ bgFile = "Interface\\BUTTONS\\WHITE8X8", tile = true, tileSize = 8 })
frame1:SetBackdropColor(0, 0, 0)
frame1:SetMovable(true)
frame1:ClearAllPoints()
frame1:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
frame1:SetUserPlaced(true)
frame1:SetMovable(false)
frame1:EnableMouse(true)
frame1:RegisterForClicks("LeftButtonUp", "RightButtonUp")
frame1:SetAttribute('unit', 'party1')
RegisterUnitWatch(frame1)
frame1:SetAttribute('*type1', 'target')
frame1:SetAttribute('*type2', 'togglemenu')
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Target Dropdown not detecting right click


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off