Thread Tools Display Modes
06-06-11, 04:45 AM   #1
gagou
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 16
oUF and @mouseover macro binded to mouse button

I've made my own oUF layout it's working as expected

I've just one question concerning interaction between an oUF layout and @Mouseover macros :
Is it possible to make @mouseover macro binded to mouse button work without clique?

On my current test if I bind my macro to the keyboard it's working well, if I bind it to my mouse it's not working at all. I have to use clique to make it work.
  Reply With Quote
06-06-11, 06:25 AM   #2
LutziBF
A Kobold Labourer
Join Date: May 2011
Posts: 1
Hi, you can do mouseover macros (as you know them with @mouseover) - but they interact with Frames, the "playermodels" themself and the Nameplates.

Like Clique and other AddOns shows it's possible to interact mouseover only with special unit frames like raidframes. But you can't handle it with a macro because of the character limit of 255.
So its not possible atm to mouseover only raidframes (and nothing else) without addons.
  Reply With Quote
06-06-11, 06:37 AM   #3
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
You can use SetAttribute for this. For header units it has to be from within the factory function or else you'll get errors because of combat lockdown. For single spawned units it could be done from the style function too.

This is how I bound a spell based on the player's class:

lua Code:
  1. local spellName = GetSpellInfo(cfg.clickSpell[playerClass] or 6603) -- 6603 Auto Attack
  2. ... some code missing ...
  3. party = self:SpawnHeader(
  4.     "oUF_Rain_Party", nil, "party, raid",
  5.     "showParty", true,
  6.     "showRaid", true,
  7.     "maxColumns", 4,
  8.     "unitsPerColumn", 1,
  9.     "columnAnchorPoint", "LEFT",
  10.     "columnSpacing", 9.5,
  11.     "oUF-initialConfigFunction", ([[
  12.         self:SetWidth(110)
  13.         self:SetHeight(22)
  14.         self:SetAttribute("type3", "spell")
  15.         self:SetAttribute("spell3", "%s")
  16.     ]]):format(spellName)
  17. )

and the clickSpell from the config file:
lua Code:
  1. clickSpell = {
  2.     ["DEADKNIGHT"] = 61999, -- Raise Ally (61999)
  3.     ["DRUID"] = 29166,      -- Innervate (29166)
  4.     ["HUNTER"] = 34477,     -- Misdirection (34477)
  5.     ["MAGE"] = 475,         -- Remove Curse (475)
  6.     ["PALADIN"] = 31789,    -- Righteous Defense (31789)
  7.     ["PRIEST"] = 73325,     -- Leap of Faith (73325)
  8.     ["ROGUE"] = 57934,      -- Tricks of the Trade (57934)
  9.     ["SHAMAN"] = 546,       -- Water Walking (546)
  10.     ["WARRIOR"] = 3411,     -- Intervene (3411)
  11.     ["WARLOCK"] = 80398,    -- Dark Intent (80398)
  12. }

Haven't tested whether this interferes with Clique though.

Here you could find more on that topic

Last edited by Rainrider : 06-06-11 at 06:39 AM.
  Reply With Quote
06-08-11, 12:03 PM   #4
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Originally Posted by gagou View Post
I've made my own oUF layout it's working as expected

I've just one question concerning interaction between an oUF layout and @Mouseover macros :
Is it possible to make @mouseover macro binded to mouse button work without clique?

On my current test if I bind my macro to the keyboard it's working well, if I bind it to my mouse it's not working at all. I have to use clique to make it work.
Öhm, I'm quite sure this works as expected...

lua Code:
  1. #showtooltip
  2. /cast [target=mouseover] [] SPELL

Bind this to a key/mousebutton and it should work.
__________________
  Reply With Quote
06-08-11, 06:52 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Unit frames eat clicks. Your mouse button is a mouse click not a button (key) press.

It is possible to manually bind your mouse button to the macro as a keybind, though, if you wish to go that route.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF and @mouseover macro binded to mouse button


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