WoWInterface SVN DagAssist

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches
    from Rev 5 to Rev 6
    Reverse comparison

Rev 5 → Rev 6

4.03/DagAssist.lua
237,7 → 237,7
if (IsMounted()) then
Dismount();
else
local companionID = GetCompanionID(self.Action.DA_ActionSubType, self.Action.DA_ActionData);
local companionID = DagAssistGetCompanionID(self.Action.DA_ActionSubType, self.Action.DA_ActionData);
CallCompanion(self.Action.DA_ActionSubType, companionID);
end
end);
4.03/ChangeLog.txt
7,6 → 7,8
* Added move up/down buttons to the section editor
* Pressing ESC will now close the menu except while in combat
* Menu items are prepopulated with some defaults when first installed
* Fixed bug preventing the pickup of spells once placed in the menu
* Fixed taint issue if you tried to change the menu items while in combat
 
4.01
* Configurable!
4.03/DagAssistConfig.lua
235,6 → 235,10
--]]
 
function DagAssistRetrieveCursorItem(self, event, ...)
if (InCombatLockdown() == 1) then
return;
end
 
if (GetCursorInfo()) then
local oldActionType, oldActionData, oldActionSubType;
if (self.DA_ActionData) then
338,10 → 342,7
elseif actionType == "macro" then
PickupMacro(actionData);
elseif actionType == "spell" then
local spellBookID = DagAssistGetSpellBookID(actionData, actionSubType);
if (spellBookID) then
PickupSpell(spellBookID, actionSubType);
end
PickupSpell(actionData);
end
end
 
359,22 → 360,12
end
end
 
function DagAssistGetSpellBookID(spellID, actionSubType)
local i = 1;
local link = GetSpellLink(i, actionSubType);
 
while (link) do
local absoluteID = string.match(link, "Hspell:([^\124]+)\124");
if (absoluteID == spellID) then
return i;
end
 
i = i + 1;
link = GetSpellLink(i, actionSubType);
end
end
 
function DagAssistOnDragStart(self, event, ...)
if (InCombatLockdown() == 1) then
return;
end
 
local cursorType, cursorData, cursorSubType;
if (GetCursorInfo()) then
cursorType, cursorData, cursorSubType = GetCursorInfo();