Thread Tools Display Modes
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
02-03-23, 03:28 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Your code indicates you're using a private server we won't be able to help you with that.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
02-03-23, 03:29 PM   #3
Beardedrasta
A Murloc Raider
Join Date: Aug 2018
Posts: 7
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.
  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