Mercurial > wow > askmrrobot
comparison CombatLog.lua @ 189:21a69c63fee8 v92
Added BfA auto-logging back for now.
author | yellowfive |
---|---|
date | Mon, 19 Oct 2020 11:19:56 -0700 |
parents | a3507735dfd9 |
children |
comparison
equal
deleted
inserted
replaced
188:29f11593d255 | 189:21a69c63fee8 |
---|---|
311 Amr:StopLogging() | 311 Amr:StopLogging() |
312 end | 312 end |
313 end | 313 end |
314 end | 314 end |
315 | 315 |
316 -- sometimes the game doesn't repaint checkboxes when it should... doing this forces it to do so | |
317 local function setCheckboxChecked(chk, val) | |
318 chk:SetChecked(val) | |
319 chk:SetChecked(not val) | |
320 chk:SetChecked(val) | |
321 chk:SetText(chk:GetText()) | |
322 end | |
323 | |
316 -- refresh the state of the tab based on current settings | 324 -- refresh the state of the tab based on current settings |
317 function Amr:RefreshLogUi() | 325 function Amr:RefreshLogUi() |
318 if not _btnToggle then return end | 326 if not _btnToggle then return end |
319 | 327 |
320 -- set state of logging button based on whether it is on or off | 328 -- set state of logging button based on whether it is on or off |
332 if _panelUndoWipe then | 340 if _panelUndoWipe then |
333 _panelUndoWipe:SetVisible(Amr.db.char.Logging.LastWipe and true or false) | 341 _panelUndoWipe:SetVisible(Amr.db.char.Logging.LastWipe and true or false) |
334 end | 342 end |
335 | 343 |
336 local all = isAllAutoLoggingEnabled() | 344 local all = isAllAutoLoggingEnabled() |
345 --setCheckboxChecked(_chkAutoAll, all) | |
337 _chkAutoAll:SetChecked(all) | 346 _chkAutoAll:SetChecked(all) |
338 | 347 |
339 for i, instanceId in ipairs(Amr.InstanceIdsOrdered) do | 348 for i, instanceId in ipairs(Amr.InstanceIdsOrdered) do |
340 if not Amr.db.profile.Logging.Auto[instanceId] then | 349 if not Amr.db.profile.Logging.Auto[instanceId] then |
341 Amr.db.profile.Logging.Auto[instanceId] = {} | 350 Amr.db.profile.Logging.Auto[instanceId] = {} |
342 end | 351 end |
343 for k, difficultyId in pairs(Amr.Difficulties) do | 352 for k, difficultyId in pairs(Amr.Difficulties) do |
344 _autoChecks[instanceId][difficultyId]:SetChecked(Amr.db.profile.Logging.Auto[instanceId][difficultyId]) | 353 setCheckboxChecked(_autoChecks[instanceId][difficultyId], Amr.db.profile.Logging.Auto[instanceId][difficultyId]) |
354 --_autoChecks[instanceId][difficultyId]:SetChecked(Amr.db.profile.Logging.Auto[instanceId][difficultyId]) | |
345 end | 355 end |
346 end | 356 end |
347 end | 357 end |
348 | 358 |
349 function Amr:IsLogging() | 359 function Amr:IsLogging() |