-
Notifications
You must be signed in to change notification settings - Fork 1
/
Register_TBC.lua
37 lines (31 loc) · 1 KB
/
Register_TBC.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--[[
Register custom functions, to-dos, categories, and lists for TBC WoW
]]
local ADDON_NAME, Internal = ...
local External = _G[ADDON_NAME]
local L = Internal.L
local DEFAULT_COMPLETED_FUNCTION = "return self:IsFlaggedCompleted()"
local DEFAULT_TEXT_FUNCTION = [[return self:IsCompleted() and Images.COMPLETE or "-"]]
local DEFAULT_CLICK_FUNCTION = [[self:SetFlaggedCompleted(not self:IsFlaggedCompleted())]]
-- DST doesnt effect daily/weekly/halfweekly resets so these should always be accurate
local SECONDS_PER_HOUR = 60 * 60
local SECONDS_PER_WEEK = 60 * 60 * 24 * 7
local SECONDS_PER_HALF_WEEK = 60 * 60 * 24 * 3.5
External.RegisterTodos({
})
External.RegisterLists({
{
id = "btwtodo:default",
name = L["Default"],
todos = {
{
id = "btwtodo:itemlevel",
category = "btwtodo:character",
},
{
id = "btwtodo:gold",
category = "btwtodo:character",
},
},
},
})