WoWInterface SVN OpenRDX

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/RDX/Designs/Complexes
    from Rev 646 to Rev 658
    Reverse comparison

Rev 646 → Rev 658

CombatLogs.lua
38,15 → 38,19
end
 
------------------ Paint function
function __LWApplyData(cell, data, pos)
function __LWApplyData(tbl, cell, data, pos)
local cols = cell.col;
local rowType = data.y;
local str = nil;
local stWhole, stFrac;
 
for i = 1, table.getn(cols) do
if cols[i]._type == "Time" then
if data.tm then
str = date("%H:%M:%S", data.tm);
--str = date("%H:%M:%S", data.tm);
stWhole, stFrac = VFL.modf( (tbl.timeOffset + data.tm) / 10);
str = date("%H:%M:%S", stWhole);
--str = str .. string.format(".%1d", stFrac*10);
cols[i]:SetText("|cFFAAAAAA" .. str .. "|r");
end
elseif cols[i]._type == "Source" then
152,8 → 156,10
OmniEvents:Bind("TABLE_DATA_CHANGED", nil, function(tbl) if tbl.path == "]] .. desc.tablelog .. [[" then btn:Update(); end; end, "]] .. objname .. [[");
btn:Rebuild();
btn.tablelog = RDXDB.GetObjectInstance("]] .. desc.tablelog .. [[");
btn:SetDataSource(__LWApplyData, __LastNLiterator(btn.tablelog.data, ]] .. desc.line .. [[));
 
btn:SetDataSource(function(cell, data, pos, absPos) __LWApplyData(btn.tablelog, cell, data, pos); end, __LastNLiterator(btn.tablelog.data, ]] .. desc.line .. [[));
Omni._ApplyColSpecToList(btn, colspec);
 
btn:Update();
local cc = VFLUI.AcquireFrame("Button");
VFLUI.StdSetParent(cc, btn);