WoWInterface SVN OneCompanion

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/OneCompanion/opts
    from Rev 28 to Rev 29
    Reverse comparison

Rev 28 → Rev 29

options.lua
10,8 → 10,9
Description: OneCompanion is an alternative to the default companion frame introduced in WotLK that combines all your companions and mounts into one fully customizable frame
]]
 
local WotLK = select(4,GetBuildInfo()) >= 30000
if not WotLK then return end
if not (select(4,GetBuildInfo()) >= 30000) then return end
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+"))
if MINOR_VERSION > _G.OneCompanion_MINOR_VERSION then G.OneCompanion_MINOR_VERSION = MINOR_VERSION end
 
OneCompanionOptions = {}
local L = LibStub("AceLocale-3.0"):GetLocale("OneCompanion")
319,7 → 320,7
OCstop = function() fra.base:StopMovingOrSizing() fra:SetAnchors(fra.base) end
end
for i, j in pairs(fra) do
if type(fra[i]) ~= "function" and i ~= "breanni" and i ~= "grip" and i ~= "slider" then
if type(fra[i]) ~= "function" and i ~= "breanni" and i ~= "grip" and i ~= "slider" and i ~= "footerText" and i ~= "footerRev" then
if i == "scrollindex" then fra[i]:SetFrameLevel(0) end
fra[i]:SetScript("OnMouseDown", OCstart)
fra[i]:SetScript("OnMouseUp", OCstop)
404,6 → 405,14
end
end
end
local f, s, p = fra.footerText:GetFont()
if fra.footer:GetWidth() < 140 then
fra.footerText:SetFont(f, 8, p)
fra.footerText:SetPoint("BOTTOMRIGHT", fra.footerRev, "TOPRIGHT", 0, 0)
else
fra.footerText:SetFont(f, 12, p)
fra.footerText:SetPoint("BOTTOMRIGHT", fra.footerRev, "TOPLEFT", 0, -4)
end
fra.ShowSlider()
end