Mercurial > wow > degaine
changeset 19:03f50393cd9c
Add notes to .toc
author | contrebasse |
---|---|
date | Fri, 10 Dec 2010 19:31:02 +0100 |
parents | 57e83c900a08 |
children | 4da97c12564f |
files | Degaine.lua Degaine.toc |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Degaine.lua Fri Dec 10 19:08:14 2010 +0100 +++ b/Degaine.lua Fri Dec 10 19:31:02 2010 +0100 @@ -65,12 +65,19 @@ -- Events to watch local events = { -- no args to watch GOSSIP_SHOW = function() + -- isGossipClosed : + -- if the gossip is already opened, no need to draw weapon + -- UnitName("npc")==UnitName("target") : + -- hack gossips again because there's no emote with non npc + -- you have to target the npc to interact with it + -- things such as boards can't be targeted and start no emote local returnvalue = isGossipClosed and UnitName("npc")==UnitName("target") isGossipClosed = false return returnvalue end, MERCHANT_SHOW = function() - -- hack for the cases where the merchant's frame is opened from a gossip frame + -- hack for the cases where the merchant's frame is opened from a gossip frame : + -- the gossip is closed and the merchant opened but the weapon is not stealthed if (GetTime() - t_lastGossipClosed) < 0.5 then return not wasGossipOpened else
--- a/Degaine.toc Fri Dec 10 19:08:14 2010 +0100 +++ b/Degaine.toc Fri Dec 10 19:31:02 2010 +0100 @@ -1,5 +1,7 @@ ## Interface: 40000 ## Title: Degaine +## Notes: Automagically draw your weapons ! +## Notes-fr: Dégaine vos armes automagiquement ! ## Author: Nodd Tisse-Airain ## Version: @project-version@ ## SavedVariablesPerCharacter: Degaine_isAuto