WoWInterface SVN OneCompanion

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 31 to Rev 30
    Reverse comparison

Rev 31 → Rev 30

OneCompanion/frames/templates.lua
197,23 → 197,13
btn[i] = slot
OneCompanionOptions:ToggleShowTooltips(nil, spellID, btn[i])
slot:SetScript("OnClick", function()
if IsModifiedClick("CHATLINK") then
if MacroFrame and MacroFrame:IsShown() then
local spellName = GetSpellInfo(spellID);
ChatEdit_InsertLink(spellName);
else
local spellLink = GetSpellLink(spellID)
ChatEdit_InsertLink(spellLink);
end
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("MOUNT", i);
if active then
DismissCompanion("MOUNT", i)
PlaySound("igMainMenuOptionCheckBoxOn")
else
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("MOUNT", i);
if active then
DismissCompanion("MOUNT", i)
PlaySound("igMainMenuOptionCheckBoxOn")
else
CallCompanion("MOUNT", i)
PlaySound("igMainMenuOptionCheckBoxOff")
end
CallCompanion("MOUNT", i)
PlaySound("igMainMenuOptionCheckBoxOff")
end
end)
end
228,23 → 218,13
btn[id] = slot
OneCompanionOptions:ToggleShowTooltips(nil, spellID, btn[id])
slot:SetScript("OnClick", function()
if IsModifiedClick("CHATLINK") then
if MacroFrame and MacroFrame:IsShown() then
local spellName = GetSpellInfo(spellID);
ChatEdit_InsertLink(spellName);
else
local spellLink = GetSpellLink(spellID)
ChatEdit_InsertLink(spellLink);
end
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("CRITTER", i)
if active then
DismissCompanion("CRITTER", i)
PlaySound("igMainMenuOptionCheckBoxOn")
else
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("CRITTER", i)
if active then
DismissCompanion("CRITTER", i)
PlaySound("igMainMenuOptionCheckBoxOn")
else
CallCompanion("CRITTER", i)
PlaySound("igMainMenuOptionCheckBoxOff")
end
CallCompanion("CRITTER", i)
PlaySound("igMainMenuOptionCheckBoxOff")
end
end)
end