Thread Tools Display Modes
01-08-23, 09:34 AM   #1
techniqs
A Defias Bandit
Join Date: Jan 2023
Posts: 2
Letting right-click passthrough on frame

Hi!
Im trying to modify the current version of sArena (Updated) which are basically better arena frames.
On left-click you can select the target and on right-click you set a focus on the target. What I am trying to achieve is leaving the left-click functionality but letting the right-click passthrough, so I can use my right-click to move the camera even on the frames. I already disabled the focusing via right-click but even after checking code and reading through the widget API documentation I couldnt find a way how to leave mouseEnabled for the frame and at the same time only let *type2 (right-click) passthrough.
What I also tried was to somehow modify the functionality on mouseUp/mouseDown for *type2 but I am not well versed enough in the wow addon development-space to know how I could enable the camera movement.

Side note I also found the method CameraOrSelectOrMoveStart but it is protected/restricted.

Any help is appreciated!
If I should provide more detailed information about anything from the Addon let me know.

EDIT:
I found MouselookStart() and MouselookStop(), problem I have now is if I have MouseLookStart on a mouseDown event for whatever reason on the same click a mouseUp Event will also be triggered. Any ideas?

Last edited by techniqs : 01-08-23 at 10:13 AM. Reason: found something
  Reply With Quote
01-08-23, 06:01 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
There's also frame:SetPassThroughButtons() if you want to give that a shot. The documentation is lacking, but it looks like something worth investigating.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
01-08-23, 06:25 PM   #3
techniqs
A Defias Bandit
Join Date: Jan 2023
Posts: 2
Originally Posted by SDPhantom View Post
There's also frame:SetPassThroughButtons() if you want to give that a shot. The documentation is lacking, but it looks like something worth investigating.
How could I miss that! Thanks a lot!!
Good old oneliner did the trick:
Code:
 self:SetPassThroughButtons("RightButton")
Closed.
  Reply With Quote
01-11-23, 07:15 AM   #4
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Would be great if someone could update the wiki if it's lacking
  Reply With Quote
01-14-23, 05:52 AM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
My WoWPedia account stopped working when they transferred from Curse to Fandom.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Letting right-click passthrough on frame

Thread Tools
Display Modes

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