|
1 | 1 | ---@diagnostic disable: undefined-global |
2 | | -local addonName, addon = ... |
3 | | -local _G = _G |
| 2 | +local _, addon = ... |
4 | 3 |
|
5 | 4 | addon.combatProtected = { |
6 | 5 | -- List of cvars that can't be modified in combat |
@@ -235,13 +234,10 @@ addon.hiddenOptions = { |
235 | 234 | ["advancedWatchFrame"] = { prettyName = ADVANCED_OBJECTIVES_TEXT, description = OPTION_TOOLTIP_ADVANCED_OBJECTIVES_TEXT, type = "" }, |
236 | 235 | ["watchFrameIgnoreCursor"] = { prettyName = OBJECTIVES_IGNORE_CURSOR_TEXT, description = OPTION_TOOLTIP_OBJECTIVES_IGNORE_CURSOR, type = "boolean" }, |
237 | 236 | ["guildMemberNotify"] = { prettyName = GUILDMEMBER_ALERT, description = OPTION_TOOLTIP_GUILDMEMBER_ALERT, type = "boolean" }, |
238 | | - ["showArenaEnemyFrames"] = { prettyName = SHOW_ARENA_ENEMY_FRAMES_TEXT, description = OPTION_TOOLTIP_SHOW_ARENA_ENEMY_FRAMES, type = "boolean" }, |
239 | 237 | ["autoClearAFK"] = { prettyName = nil, description = OPTION_TOOLTIP_CLEAR_AFK, type = "boolean" }, |
240 | 238 | ["colorblindWeaknessFactor"] = { prettyName = nil, description = OPTION_TOOLTIP_ADJUST_COLORBLIND_STRENGTH, type = "boolean" }, |
241 | | - ["autoLootDefault"] = { prettyName = nil, description = OPTION_TOOLTIP_AUTO_LOOT_DEFAULT, type = "boolean" }, |
242 | 239 | ["autoLootRate"] = { prettyName = "Auto Loot Rate", description = "Rate in milliseconds to tick auto loot", type = "number" }, |
243 | 240 | ["ChatAmbienceVolume"] = { prettyName = nil, description = "", type = "boolean" }, |
244 | | - ["threatShowNumeric"] = { prettyName = nil, description = OPTION_TOOLTIP_SHOW_NUMERIC_THREAT, type = "boolean" }, |
245 | 241 | ["rightActionBar"] = { prettyName = nil, description = OPTION_TOOLTIP_SHOW_MULTIBAR3, type = "boolean" }, |
246 | 242 | ["emphasizeMySpellEffects"] = { prettyName = nil, description = OPTION_TOOLTIP_EMPHASIZE_MY_SPELLS, type = "boolean" }, |
247 | 243 | ["chatBubblesParty"] = { prettyName = nil, description = OPTION_TOOLTIP_PARTY_CHAT_BUBBLES, type = "boolean" }, |
@@ -376,7 +372,6 @@ addon.hiddenOptions = { |
376 | 372 | ["Sound_EnablePositionalLowPassFilter"] = { prettyName = ENABLE_SOFTWARE_HRTF, description = OPTION_TOOLTIP_ENABLE_SOFTWARE_HRTF, type = "boolean" }, |
377 | 373 |
|
378 | 374 | ["showTargetOfTarget"] = { prettyName = nil, description = OPTION_TOOLTIP_SHOW_TARGET_OF_TARGET, type = "boolean" }, |
379 | | - ["guildMemberNotify"] = { prettyName = nil, description = OPTION_TOOLTIP_GUILDMEMBER_ALERT, type = "boolean" }, |
380 | 375 | ["showTutorials"] = { prettyName = SHOW_TUTORIALS, description = OPTION_TOOLTIP_SHOW_TUTORIALS, type = "boolean" }, |
381 | 376 | ["lossOfControl"] = { prettyName = nil, description = OPTION_TOOLTIP_LOSS_OF_CONTROL, type = "boolean" }, |
382 | 377 | ["blockChannelInvites"] = { prettyName = nil, description = OPTION_TOOLTIP_BLOCK_CHAT_CHANNEL_INVITE, type = "boolean" }, |
@@ -685,7 +680,7 @@ addon.hiddenOptions = { |
685 | 680 | -- ["bloatTest"] = {}, |
686 | 681 | -- ["bloatnameplates"] = {}, |
687 | 682 | -- ["bloatthreat"] = {}, |
688 | | - ["bodyQuota"] = { description = "Maximum number of componented bodies seen at once" }, |
| 683 | + ["bodyQuota"] = { description = "Maximum number of component bodies seen at once" }, |
689 | 684 | ["breakUpLargeNumbers"] = { description = "Toggles using commas in large numbers" }, |
690 | 685 | ["bspcache"] = { description = "BSP node caching" }, |
691 | 686 | ["calendarShowBattlegrounds"] = { description = "Whether Battleground holidays should appear in the calendar" }, |
@@ -1171,7 +1166,7 @@ function addon:GetCVars() |
1171 | 1166 | if |
1172 | 1167 | info.commandType == 0 -- cvar, rather than script |
1173 | 1168 | and info.category ~= 0 -- ignore debug category |
1174 | | - and not strfind(info.command:lower(), "debug") -- a number of commands with "debug" in their name are inexplicibly not in the "debug" category |
| 1169 | + and not strfind(info.command:lower(), "debug") -- a number of commands with "debug" in their name are inexplicably not in the "debug" category |
1175 | 1170 | and info.category ~= 8 -- ignore GM category |
1176 | 1171 | and addon:CVarExists(info.command) -- real cvar? |
1177 | 1172 | then |
|
0 commit comments