Skip to content

Commit ad3a0a8

Browse files
committed
Add StyLua and format all files
1 parent fa64ccb commit ad3a0a8

17 files changed

+3339
-3173
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true

basicOptions.lua

Lines changed: 233 additions & 233 deletions
Large diffs are not rendered by default.

browser.lua

Lines changed: 304 additions & 301 deletions
Large diffs are not rendered by default.

cspell.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "0.2",
3+
"language": "en-US",
4+
"ignorePaths": [
5+
"libs",
6+
".luacheckrc"
7+
],
8+
"words": [
9+
"ADDONCATEGORIES",
10+
"Ambiguate",
11+
"Cata",
12+
"cffaaaaff",
13+
"cffaaffaa",
14+
"cffffaaaa",
15+
"cffffffff",
16+
"cvar",
17+
"cvars",
18+
"Debuff",
19+
"Debuffs",
20+
"Dont",
21+
"Lerp",
22+
"Luacheck",
23+
"nebularg",
24+
"NUMDIALOGS",
25+
"upvalue",
26+
"UVARINFO",
27+
"uvars",
28+
"WAGO",
29+
"WOWI"
30+
]
31+
}

cvars.lua

Lines changed: 1173 additions & 1039 deletions
Large diffs are not rendered by default.

gui/CVarConfigPanel.lua

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
21
local _, addon = ...
32

43
-- Constants
54
local THIRD_WIDTH = 1.25
65

7-
86
-------------------------------------------------------------------------
97
-------------------------------------------------------------------------
108

119
function addon:CreateCVarOptions()
12-
local cvarOptions = {
13-
type = "group",
14-
childGroups = "tree",
15-
name = "",
16-
args = {
17-
-- Left Empty --
18-
}
19-
}
10+
local cvarOptions = {
11+
type = "group",
12+
childGroups = "tree",
13+
name = "",
14+
args = {
15+
-- Left Empty --
16+
},
17+
}
2018

21-
return cvarOptions
19+
return cvarOptions
2220
end

gui/ChatConfigPanel.lua

Lines changed: 62 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,73 @@
1-
21
local _, addon = ...
32

43
-- Constants
54
local THIRD_WIDTH = 1.25
65

7-
86
-------------------------------------------------------------------------
97
-------------------------------------------------------------------------
108

119
function addon:CreateChatOptions()
12-
local chatOptions = {
13-
type = "group",
14-
childGroups = "tree",
15-
name = "Chat",
16-
args = {
17-
instructions = {
18-
type = "description",
19-
name = "These options allow you to modify various chat settings that are no longer part of the default UI.",
20-
fontSize = "medium",
21-
order = 1,
22-
},
23-
header = {
24-
type = "header",
25-
name = "",
26-
order = 10,
27-
},
28-
-------------------------------------------------
29-
chatMouseScroll = {
30-
type = "toggle",
31-
name = CHAT_MOUSE_WHEEL_SCROLL,
32-
desc = OPTION_TOOLTIP_CHAT_MOUSE_WHEEL_SCROLL,
33-
get = function()
34-
return C_CVar.GetCVarBool("chatMouseScroll")
35-
end,
36-
set = function(_, value)
37-
self:SetCVar("chatMouseScroll", value)
38-
end,
39-
width="full",
40-
order = 11,
41-
},
42-
removeChatDelay = {
43-
type = "toggle",
44-
name = REMOVE_CHAT_DELAY_TEXT,
45-
desc = OPTION_TOOLTIP_REMOVE_CHAT_DELAY_TEXT,
46-
get = function()
47-
return C_CVar.GetCVarBool("removeChatDelay")
48-
end,
49-
set = function(_, value)
50-
self:SetCVar("removeChatDelay", value)
51-
end,
52-
width="full",
53-
order = 12,
54-
},
55-
chatClassColorOverride = {
56-
type = "toggle",
57-
name = "Disable Class Colors",
58-
desc = "Disables Class Colors in Chat",
59-
get = function()
60-
return C_CVar.GetCVarBool("chatClassColorOverride")
61-
end,
62-
set = function(_, value)
63-
self:SetCVar("chatClassColorOverride", value)
64-
end,
65-
hidden = function()
66-
return not self.IsClassicEra() and not self.IsClassic()
67-
end,
68-
width="full",
69-
order = 13,
70-
},
71-
}
72-
}
10+
local chatOptions = {
11+
type = "group",
12+
childGroups = "tree",
13+
name = "Chat",
14+
args = {
15+
instructions = {
16+
type = "description",
17+
name = "These options allow you to modify various chat settings that are no longer part of the default UI.",
18+
fontSize = "medium",
19+
order = 1,
20+
},
21+
header = {
22+
type = "header",
23+
name = "",
24+
order = 10,
25+
},
26+
-------------------------------------------------
27+
chatMouseScroll = {
28+
type = "toggle",
29+
name = CHAT_MOUSE_WHEEL_SCROLL,
30+
desc = OPTION_TOOLTIP_CHAT_MOUSE_WHEEL_SCROLL,
31+
get = function()
32+
return C_CVar.GetCVarBool("chatMouseScroll")
33+
end,
34+
set = function(_, value)
35+
self:SetCVar("chatMouseScroll", value)
36+
end,
37+
width = "full",
38+
order = 11,
39+
},
40+
removeChatDelay = {
41+
type = "toggle",
42+
name = REMOVE_CHAT_DELAY_TEXT,
43+
desc = OPTION_TOOLTIP_REMOVE_CHAT_DELAY_TEXT,
44+
get = function()
45+
return C_CVar.GetCVarBool("removeChatDelay")
46+
end,
47+
set = function(_, value)
48+
self:SetCVar("removeChatDelay", value)
49+
end,
50+
width = "full",
51+
order = 12,
52+
},
53+
chatClassColorOverride = {
54+
type = "toggle",
55+
name = "Disable Class Colors",
56+
desc = "Disables Class Colors in Chat",
57+
get = function()
58+
return C_CVar.GetCVarBool("chatClassColorOverride")
59+
end,
60+
set = function(_, value)
61+
self:SetCVar("chatClassColorOverride", value)
62+
end,
63+
hidden = function()
64+
return not self.IsClassicEra() and not self.IsClassic()
65+
end,
66+
width = "full",
67+
order = 13,
68+
},
69+
},
70+
}
7371

74-
return chatOptions
72+
return chatOptions
7573
end

gui/CombatConfigPanel.lua

Lines changed: 75 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,86 @@
1-
21
local _, addon = ...
32

43
-- Constants
54
local THIRD_WIDTH = 1.25
65

7-
86
-------------------------------------------------------------------------
97
-------------------------------------------------------------------------
108

119
function addon:CreateCombatOptions()
12-
local combatOptions = {
13-
type = "group",
14-
childGroups = "tree",
15-
name = "Combat",
16-
args = {
17-
instructions = {
18-
type = "description",
19-
name = "These options allow you to modify Combat Options.",
20-
fontSize = "medium",
21-
order = 1,
22-
},
23-
header = {
24-
type = "header",
25-
name = "",
26-
order = 10,
27-
},
28-
-------------------------------------------------
29-
stopAutoAttackOnTargetChange = {
30-
type = "toggle",
31-
name = STOP_AUTO_ATTACK,
32-
desc = OPTION_TOOLTIP_STOP_AUTO_ATTACK,
33-
get = function()
34-
return C_CVar.GetCVarBool("stopAutoAttackOnTargetChange")
35-
end,
36-
set = function(_, value)
37-
self:SetCVar("stopAutoAttackOnTargetChange", value)
38-
end,
39-
width="full",
40-
order = 11,
41-
},
42-
assistAttack = {
43-
type = "toggle",
44-
name = ASSIST_ATTACK,
45-
desc = OPTION_TOOLTIP_ASSIST_ATTACK,
46-
get = function()
47-
return C_CVar.GetCVarBool("assistAttack")
48-
end,
49-
set = function(_, value)
50-
self:SetCVar("assistAttack", value)
51-
end,
52-
width="full",
53-
order = 12,
54-
},
55-
ActionButtonUseKeyDown = {
56-
type = "toggle",
57-
name = ACTION_BUTTON_USE_KEY_DOWN,
58-
desc = OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN,
59-
get = function()
60-
return C_CVar.GetCVarBool("ActionButtonUseKeyDown")
61-
end,
62-
set = function(_, value)
63-
self:SetCVar("ActionButtonUseKeyDown", value)
64-
end,
65-
width="full",
66-
order = 13,
67-
},
68-
SpellQueueWindow = {
69-
type = "range",
70-
name = LAG_TOLERANCE,
71-
desc = "Determines how far ahead of the \'end of a spell\' start-recovery spell system can be, before allowing spell request to be sent to the server. Ie this controls the built-in lag for the ability queuing system. Ideally, you\'ll want to set this to your in-game latency.",
72-
min = 0,
73-
max = 400,
74-
step = 1,
75-
get = function()
76-
return tonumber(C_CVar.GetCVar("SpellQueueWindow"))
77-
end,
78-
set = function(_, value)
79-
self:SetCVar("SpellQueueWindow", value)
80-
end,
81-
width = THIRD_WIDTH,
82-
order = 14,
83-
},
84-
}
85-
}
10+
local combatOptions = {
11+
type = "group",
12+
childGroups = "tree",
13+
name = "Combat",
14+
args = {
15+
instructions = {
16+
type = "description",
17+
name = "These options allow you to modify Combat Options.",
18+
fontSize = "medium",
19+
order = 1,
20+
},
21+
header = {
22+
type = "header",
23+
name = "",
24+
order = 10,
25+
},
26+
-------------------------------------------------
27+
stopAutoAttackOnTargetChange = {
28+
type = "toggle",
29+
name = STOP_AUTO_ATTACK,
30+
desc = OPTION_TOOLTIP_STOP_AUTO_ATTACK,
31+
get = function()
32+
return C_CVar.GetCVarBool("stopAutoAttackOnTargetChange")
33+
end,
34+
set = function(_, value)
35+
self:SetCVar("stopAutoAttackOnTargetChange", value)
36+
end,
37+
width = "full",
38+
order = 11,
39+
},
40+
assistAttack = {
41+
type = "toggle",
42+
name = ASSIST_ATTACK,
43+
desc = OPTION_TOOLTIP_ASSIST_ATTACK,
44+
get = function()
45+
return C_CVar.GetCVarBool("assistAttack")
46+
end,
47+
set = function(_, value)
48+
self:SetCVar("assistAttack", value)
49+
end,
50+
width = "full",
51+
order = 12,
52+
},
53+
ActionButtonUseKeyDown = {
54+
type = "toggle",
55+
name = ACTION_BUTTON_USE_KEY_DOWN,
56+
desc = OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN,
57+
get = function()
58+
return C_CVar.GetCVarBool("ActionButtonUseKeyDown")
59+
end,
60+
set = function(_, value)
61+
self:SetCVar("ActionButtonUseKeyDown", value)
62+
end,
63+
width = "full",
64+
order = 13,
65+
},
66+
SpellQueueWindow = {
67+
type = "range",
68+
name = LAG_TOLERANCE,
69+
desc = "Determines how far ahead of the 'end of a spell' start-recovery spell system can be, before allowing spell request to be sent to the server. Ie this controls the built-in lag for the ability queuing system. Ideally, you'll want to set this to your in-game latency.",
70+
min = 0,
71+
max = 400,
72+
step = 1,
73+
get = function()
74+
return tonumber(C_CVar.GetCVar("SpellQueueWindow"))
75+
end,
76+
set = function(_, value)
77+
self:SetCVar("SpellQueueWindow", value)
78+
end,
79+
width = THIRD_WIDTH,
80+
order = 14,
81+
},
82+
},
83+
}
8684

87-
return combatOptions
85+
return combatOptions
8886
end

0 commit comments

Comments
 (0)