WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Target Dropdown not detecting right click (https://www.wowinterface.com/forums/showthread.php?t=59499)

Beardedrasta 02-03-23 03:03 PM

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')


Fizzlemizz 02-03-23 03:28 PM

Your code indicates you're using a private server we won't be able to help you with that.

Beardedrasta 02-03-23 03:29 PM

if i switch the togglemenu to target for right click it works fine so its the togglemenu thats not working.


I didnt know there was a difference i use these same codes for private and classic wotlk. My bad then.


All times are GMT -6. The time now is 09:31 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI