Skip to content

Commit

Permalink
improvement: cleanup options
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Dec 23, 2022
1 parent ee37e06 commit 5a5a3ce
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions src/gui/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ local function UpdateScreenSaver()
F:GetModule('ScreenSaver'):UpdateScreenSaver()
end

local function MuteAnnoyingSounds()
F:GetModule('Misc'):MuteAnnoyingSounds()
end

-- Infobar

local function UpdateCombatPulse()
Expand Down Expand Up @@ -579,12 +583,11 @@ GUI.OptionsList = {
{
1,
'General',
'FasterMovieSkip',
L['Faster Movie Skip'],
'MuteAnnoyingSounds',
L['Mute Annoying Sounds'],
true,
nil,
nil,
L['Allow space bar, escape key and enter key to cancel cinematic without confirmation.'],
MuteAnnoyingSounds,
},
{
1,
Expand Down Expand Up @@ -626,6 +629,16 @@ GUI.OptionsList = {
nil,
L['Take screenshots automatically based on specific events.'],
},
{
1,
'General',
'FasterMovieSkip',
L['Faster Movie Skip'],
nil,
nil,
nil,
L['Allow space bar, escape key and enter key to cancel cinematic without confirmation.'],
},
{},
{
1,
Expand Down Expand Up @@ -1764,12 +1777,12 @@ GUI.OptionsList = {
{
1,
'Unitframe',
'InvertedColorMode',
L['Inverted Color Mode'],
nil,
'HidePlayerTags',
L['Hide Player Tags'],
nil,
nil,
L['The health bar color and the background color are inverted.|nThe unitframe module is designed based on the Inverted Color Mode, which may cause some visual problems if disabled.'],
UpdateUnitTags,
L['Only show player tags on mouseover.'],
},
{
1,
Expand Down Expand Up @@ -1840,16 +1853,6 @@ GUI.OptionsList = {
UpdateClassPower,
L['Show special resources of the class, such as Combo Points, Holy Power, Chi, Runes, etc.'],
},
{
1,
'Unitframe',
'HidePlayerTags',
L['Hide Player Tags'],
nil,
nil,
UpdateUnitTags,
L['Only show player tags on mouseover.'],
},
{},
{
1,
Expand Down

0 comments on commit 5a5a3ce

Please sign in to comment.