Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -2553,6 +2553,8 @@ stds.ecs = {
"DurabilityFrame",
"EmbeddedItemTooltip",
"EngravingFrame",
"EQUIPPED_FIRST",
"EQUIPPED_LAST",
"EventTraceFrame",
"FauxScrollFrame_GetOffset",
"FlightMapFrame",
Expand Down
26 changes: 26 additions & 0 deletions Modules/Config/GeneralSection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,32 @@ function _Config:LoadGeneralSection()
Stats.RebuildStatInfos()
end,
},
stealth = {
type = "toggle",
order = 2,
name = function() return i18n("Show stealth") end,
desc = function() return i18n("Shows/Hides the stealth value.") end,
width = 1.5,
disabled = function() return (not ExtendedCharacterStats.profile.general.display); end,
get = function () return ExtendedCharacterStats.profile.general.stealth.display; end,
set = function (_, value)
ExtendedCharacterStats.profile.general.stealth.display = value
Stats.RebuildStatInfos()
end,
},
invisibility = {
type = "toggle",
order = 3,
name = function() return i18n("Show invisibility") end,
desc = function() return i18n("Shows/Hides the invisibility value.") end,
width = 1.5,
disabled = function() return (not ExtendedCharacterStats.profile.general.display); end,
get = function () return ExtendedCharacterStats.profile.general.invisibility.display; end,
set = function (_, value)
ExtendedCharacterStats.profile.general.invisibility.display = value
Stats.RebuildStatInfos()
end,
},
},
}
end
Loading
Loading