comparison ObjectiveTracker/Frame.lua @ 36:a487841050be

- attempts to solve the mystery of disappearing objectives
author Nenue
date Sun, 17 Apr 2016 13:00:31 -0400
parents 69d03f8e293e
children e84d645c8ab8
comparison
equal deleted inserted replaced
35:69d03f8e293e 36:a487841050be
284 --- Adds the given line to the current content and advances the anchor pointer to that new line for the following call. 284 --- Adds the given line to the current content and advances the anchor pointer to that new line for the following call.
285 Default.AddLine = function(handler, block, text, attachment, template) 285 Default.AddLine = function(handler, block, text, attachment, template)
286 local print = lprint 286 local print = lprint
287 local lineIndex = block.currentLine + 1 287 local lineIndex = block.currentLine + 1
288 local line = handler:GetLine(block, lineIndex) 288 local line = handler:GetLine(block, lineIndex)
289
289 line.index = lineIndex 290 line.index = lineIndex
290 if template then 291 if template then
291 if line.schema ~= template then 292 if line.schema ~= template then
292 print(' |cFF00FF00change schema', template) 293 print(' |cFF00FF00change schema', template)
293 T.UpdateSchema('line', template) 294 T.UpdateSchema('line', template)
334 end 335 end
335 336
336 print(' |cFF0088FFsetting line #'..lineIndex..' for|r', block.info.title, "\n |cFF0088FFsize:|r", line.height, 337 print(' |cFF0088FFsetting line #'..lineIndex..' for|r', block.info.title, "\n |cFF0088FFsize:|r", line.height,
337 "|cFF0088FFpoint:|r", debug_points, "|cFF0088FFwidget:|r", (line.widget and 'Y' or 'N')) 338 "|cFF0088FFpoint:|r", debug_points, "|cFF0088FFwidget:|r", (line.widget and 'Y' or 'N'))
338 block.currentLine = lineIndex 339 block.currentLine = lineIndex
339 block.endPoint = line.statusbg -- edge used for the next block 340 block.endPoint = line -- edge used for the next block
340 341
341 return lineIndex 342 return lineIndex
342 end 343 end
343 344
344 --- Creates or retrieves a complete line data object 345 --- Creates or retrieves a complete line data object