WoWInterface SVN zzcommon

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 110 to Rev 111
    Reverse comparison

Rev 110 → Rev 111

trunk/LibCommon/frames.lua
1,11 → 1,11
local name, addon = ...
 
local embed = addon:LibInit("zzCommon-Frames", 14, {'AddDrag','LoadFrame','GetFrameCoords','CreateSecureFrame'})
local embed = addon:LibInit("zzCommon-Frames", 15, {'AddDrag','LoadFrame','GetFrameCoords','CreateSecureFrame'})
if(type(embed) ~= 'function') then return end
local base = LibStub('zzCommon-Frames')
base['frames'] = base['frames'] or {}
 
local round = addon['round'] or function(num, idp)
local function round(num, idp)
return math.floor(num * (10^(idp or 0)) + 0.5) / (10^(idp or 0))
end
 
53,8 → 53,8
local uis = UIParent:GetScale()
x = x*s - GetScreenWidth()*uis/2
y = y*s - GetScreenHeight()*uis/2
db[fn]['xpos'] = addon:round(x/uis,0)
db[fn]['ypos'] = addon:round(y/uis,0)
db[fn]['xpos'] = round(x/uis,0)
db[fn]['ypos'] = round(y/uis,0)
end
 
local schedules = {}