-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
DatabaseDefaults.lua
74 lines (68 loc) · 1.83 KB
/
DatabaseDefaults.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
-- DevTool is a World of Warcraft® addon development tool.
-- Copyright (c) 2021-2024 Britt W. Yazel
-- Copyright (c) 2016-2021 Peter aka "Varren"
-- This code is licensed under the MIT license (see LICENSE for details)
local _, addonTable = ... --make use of the default addon namespace
local DevTool = addonTable.DevTool
-- Default settings
-- this variable will be used only on first load so it is just default init with empty values.
-- will be replaced with DevTool_Settings at 2-nd start
DevTool.DatabaseDefaults = {
profile = {
-- selected list in gui. one of 3 list from settings: history or function call logs or events
sideBarTabSelected = "history",
-- UI saved state
isWndOpen = false,
isSideBarOpen = true,
-- stores history of recent calls to /dev
MAX_HISTORY_SIZE = 50,
collResizeWidth = 250,
history = {
-- examples
"DevTool",
"find LFR",
"find SLASH",
"find Data DevTool",
"startswith DevTool",
"DevTool.settings.history",
},
logs = {--{
-- fnName = "functionNameHere",
-- parentTableName = "DevTool.sometable",
-- active = false
--},
},
-- stores arguments for function calls --todo implement
tArgs = {},
fontSize = 10, -- font size for default table
colorVals = {
["table"] = { 0.41, 0.80, 0.94, 1 },
["string"] = { 0.67, 0.83, 0.45, 1 },
["number"] = { 1, 0.96, 0.41, 1 },
["function"] = { 1, 0.49, 0.04, 1 },
["default"] = { 1, 1, 1, 1 },
},
-- events to monitor
-- format ({event = "EVENT_NAME", unit = "player", active = true}, ...)
-- default events inactive
events = {
{
event = "ALL",
active = false
},
{
event = "COMBAT_LOG_EVENT_UNFILTERED",
active = false
},
{
event = "UNIT_AURA",
unit = "player",
active = false
},
{
event = "UPDATE_UI_WIDGET",
active = false
}
},
}
}