Skip to content

Commit

Permalink
Add StyLua and format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanzilla committed Jul 26, 2024
1 parent fa64ccb commit ad3a0a8
Show file tree
Hide file tree
Showing 17 changed files with 3,339 additions and 3,173 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
466 changes: 233 additions & 233 deletions basicOptions.lua

Large diffs are not rendered by default.

605 changes: 304 additions & 301 deletions browser.lua

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "0.2",
"language": "en-US",
"ignorePaths": [
"libs",
".luacheckrc"
],
"words": [
"ADDONCATEGORIES",
"Ambiguate",
"Cata",
"cffaaaaff",
"cffaaffaa",
"cffffaaaa",
"cffffffff",
"cvar",
"cvars",
"Debuff",
"Debuffs",
"Dont",
"Lerp",
"Luacheck",
"nebularg",
"NUMDIALOGS",
"upvalue",
"UVARINFO",
"uvars",
"WAGO",
"WOWI"
]
}
2,212 changes: 1,173 additions & 1,039 deletions cvars.lua

Large diffs are not rendered by default.

20 changes: 9 additions & 11 deletions gui/CVarConfigPanel.lua
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@

local _, addon = ...

-- Constants
local THIRD_WIDTH = 1.25


-------------------------------------------------------------------------
-------------------------------------------------------------------------

function addon:CreateCVarOptions()
local cvarOptions = {
type = "group",
childGroups = "tree",
name = "",
args = {
-- Left Empty --
}
}
local cvarOptions = {
type = "group",
childGroups = "tree",
name = "",
args = {
-- Left Empty --
},
}

return cvarOptions
return cvarOptions
end
126 changes: 62 additions & 64 deletions gui/ChatConfigPanel.lua
Original file line number Diff line number Diff line change
@@ -1,75 +1,73 @@

local _, addon = ...

-- Constants
local THIRD_WIDTH = 1.25


-------------------------------------------------------------------------
-------------------------------------------------------------------------

function addon:CreateChatOptions()
local chatOptions = {
type = "group",
childGroups = "tree",
name = "Chat",
args = {
instructions = {
type = "description",
name = "These options allow you to modify various chat settings that are no longer part of the default UI.",
fontSize = "medium",
order = 1,
},
header = {
type = "header",
name = "",
order = 10,
},
-------------------------------------------------
chatMouseScroll = {
type = "toggle",
name = CHAT_MOUSE_WHEEL_SCROLL,
desc = OPTION_TOOLTIP_CHAT_MOUSE_WHEEL_SCROLL,
get = function()
return C_CVar.GetCVarBool("chatMouseScroll")
end,
set = function(_, value)
self:SetCVar("chatMouseScroll", value)
end,
width="full",
order = 11,
},
removeChatDelay = {
type = "toggle",
name = REMOVE_CHAT_DELAY_TEXT,
desc = OPTION_TOOLTIP_REMOVE_CHAT_DELAY_TEXT,
get = function()
return C_CVar.GetCVarBool("removeChatDelay")
end,
set = function(_, value)
self:SetCVar("removeChatDelay", value)
end,
width="full",
order = 12,
},
chatClassColorOverride = {
type = "toggle",
name = "Disable Class Colors",
desc = "Disables Class Colors in Chat",
get = function()
return C_CVar.GetCVarBool("chatClassColorOverride")
end,
set = function(_, value)
self:SetCVar("chatClassColorOverride", value)
end,
hidden = function()
return not self.IsClassicEra() and not self.IsClassic()
end,
width="full",
order = 13,
},
}
}
local chatOptions = {
type = "group",
childGroups = "tree",
name = "Chat",
args = {
instructions = {
type = "description",
name = "These options allow you to modify various chat settings that are no longer part of the default UI.",
fontSize = "medium",
order = 1,
},
header = {
type = "header",
name = "",
order = 10,
},
-------------------------------------------------
chatMouseScroll = {
type = "toggle",
name = CHAT_MOUSE_WHEEL_SCROLL,
desc = OPTION_TOOLTIP_CHAT_MOUSE_WHEEL_SCROLL,
get = function()
return C_CVar.GetCVarBool("chatMouseScroll")
end,
set = function(_, value)
self:SetCVar("chatMouseScroll", value)
end,
width = "full",
order = 11,
},
removeChatDelay = {
type = "toggle",
name = REMOVE_CHAT_DELAY_TEXT,
desc = OPTION_TOOLTIP_REMOVE_CHAT_DELAY_TEXT,
get = function()
return C_CVar.GetCVarBool("removeChatDelay")
end,
set = function(_, value)
self:SetCVar("removeChatDelay", value)
end,
width = "full",
order = 12,
},
chatClassColorOverride = {
type = "toggle",
name = "Disable Class Colors",
desc = "Disables Class Colors in Chat",
get = function()
return C_CVar.GetCVarBool("chatClassColorOverride")
end,
set = function(_, value)
self:SetCVar("chatClassColorOverride", value)
end,
hidden = function()
return not self.IsClassicEra() and not self.IsClassic()
end,
width = "full",
order = 13,
},
},
}

return chatOptions
return chatOptions
end
152 changes: 75 additions & 77 deletions gui/CombatConfigPanel.lua
Original file line number Diff line number Diff line change
@@ -1,88 +1,86 @@

local _, addon = ...

-- Constants
local THIRD_WIDTH = 1.25


-------------------------------------------------------------------------
-------------------------------------------------------------------------

function addon:CreateCombatOptions()
local combatOptions = {
type = "group",
childGroups = "tree",
name = "Combat",
args = {
instructions = {
type = "description",
name = "These options allow you to modify Combat Options.",
fontSize = "medium",
order = 1,
},
header = {
type = "header",
name = "",
order = 10,
},
-------------------------------------------------
stopAutoAttackOnTargetChange = {
type = "toggle",
name = STOP_AUTO_ATTACK,
desc = OPTION_TOOLTIP_STOP_AUTO_ATTACK,
get = function()
return C_CVar.GetCVarBool("stopAutoAttackOnTargetChange")
end,
set = function(_, value)
self:SetCVar("stopAutoAttackOnTargetChange", value)
end,
width="full",
order = 11,
},
assistAttack = {
type = "toggle",
name = ASSIST_ATTACK,
desc = OPTION_TOOLTIP_ASSIST_ATTACK,
get = function()
return C_CVar.GetCVarBool("assistAttack")
end,
set = function(_, value)
self:SetCVar("assistAttack", value)
end,
width="full",
order = 12,
},
ActionButtonUseKeyDown = {
type = "toggle",
name = ACTION_BUTTON_USE_KEY_DOWN,
desc = OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN,
get = function()
return C_CVar.GetCVarBool("ActionButtonUseKeyDown")
end,
set = function(_, value)
self:SetCVar("ActionButtonUseKeyDown", value)
end,
width="full",
order = 13,
},
SpellQueueWindow = {
type = "range",
name = LAG_TOLERANCE,
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.",
min = 0,
max = 400,
step = 1,
get = function()
return tonumber(C_CVar.GetCVar("SpellQueueWindow"))
end,
set = function(_, value)
self:SetCVar("SpellQueueWindow", value)
end,
width = THIRD_WIDTH,
order = 14,
},
}
}
local combatOptions = {
type = "group",
childGroups = "tree",
name = "Combat",
args = {
instructions = {
type = "description",
name = "These options allow you to modify Combat Options.",
fontSize = "medium",
order = 1,
},
header = {
type = "header",
name = "",
order = 10,
},
-------------------------------------------------
stopAutoAttackOnTargetChange = {
type = "toggle",
name = STOP_AUTO_ATTACK,
desc = OPTION_TOOLTIP_STOP_AUTO_ATTACK,
get = function()
return C_CVar.GetCVarBool("stopAutoAttackOnTargetChange")
end,
set = function(_, value)
self:SetCVar("stopAutoAttackOnTargetChange", value)
end,
width = "full",
order = 11,
},
assistAttack = {
type = "toggle",
name = ASSIST_ATTACK,
desc = OPTION_TOOLTIP_ASSIST_ATTACK,
get = function()
return C_CVar.GetCVarBool("assistAttack")
end,
set = function(_, value)
self:SetCVar("assistAttack", value)
end,
width = "full",
order = 12,
},
ActionButtonUseKeyDown = {
type = "toggle",
name = ACTION_BUTTON_USE_KEY_DOWN,
desc = OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN,
get = function()
return C_CVar.GetCVarBool("ActionButtonUseKeyDown")
end,
set = function(_, value)
self:SetCVar("ActionButtonUseKeyDown", value)
end,
width = "full",
order = 13,
},
SpellQueueWindow = {
type = "range",
name = LAG_TOLERANCE,
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.",
min = 0,
max = 400,
step = 1,
get = function()
return tonumber(C_CVar.GetCVar("SpellQueueWindow"))
end,
set = function(_, value)
self:SetCVar("SpellQueueWindow", value)
end,
width = THIRD_WIDTH,
order = 14,
},
},
}

return combatOptions
return combatOptions
end
Loading

0 comments on commit ad3a0a8

Please sign in to comment.