@@ -407,48 +407,52 @@ end, {
407407})
408408
409409Grid2Options :RegisterStatusOptions (" health-deficit" , " health" , function (self , status , options , optionParams )
410- Grid2Options :MakeStatusColorThresholdOptions (status , options , optionParams )
411- options .addIncomingHeals = {
412- type = " toggle" ,
413- order = 99 ,
414- width = " full" ,
415- name = L [" Add Incoming Heals" ],
416- desc = L [" Add incoming heals to health deficit." ],
417- tristate = false ,
418- get = function () return status .dbx .addIncomingHeals end ,
419- set = function (_ , v )
420- status .dbx .addIncomingHeals = v or nil
421- status :Refresh ()
422- end ,
423- }
424- if Grid2 .isClassic then
425- options .healthShorten = {
410+ if Grid2 .secretsEnabled then
411+ Grid2Options :MakeStatusColorOptions (status , options , optionParams )
412+ else
413+ Grid2Options :MakeStatusColorThresholdOptions (status , options , optionParams )
414+ options .addIncomingHeals = {
415+ type = " toggle" ,
416+ order = 99 ,
417+ width = " full" ,
418+ name = L [" Add Incoming Heals" ],
419+ desc = L [" Add incoming heals to health deficit." ],
420+ tristate = false ,
421+ get = function () return status .dbx .addIncomingHeals end ,
422+ set = function (_ , v )
423+ status .dbx .addIncomingHeals = v or nil
424+ status :Refresh ()
425+ end ,
426+ }
427+ if Grid2 .isClassic then
428+ options .healthShorten = {
429+ type = " toggle" ,
430+ tristate = false ,
431+ width = " full" ,
432+ order = 100 ,
433+ name = L [" Shorten Health Numbers" ],
434+ desc = L [" Shorten Health Numbers" ],
435+ get = function () return not status .dbx .displayRawNumbers end ,
436+ set = function (_ , v )
437+ status .dbx .displayRawNumbers = not v or nil
438+ status :Refresh ()
439+ end ,
440+ }
441+ end
442+ options .displayPercent = {
426443 type = " toggle" ,
427444 tristate = false ,
428445 width = " full" ,
429- order = 100 ,
430- name = L [" Shorten Health Numbers " ],
431- desc = L [" Shorten Health Numbers " ],
432- get = function () return not status .dbx .displayRawNumbers end ,
446+ order = 110 ,
447+ name = L [" Display health percent text for enemies " ],
448+ desc = L [" Display health percent text instead of health deficit for non friendly units. " ],
449+ get = function () return status .dbx .displayPercentEnemies end ,
433450 set = function (_ , v )
434- status .dbx .displayRawNumbers = not v or nil
451+ status .dbx .displayPercentEnemies = v or nil
435452 status :Refresh ()
436453 end ,
437454 }
438455 end
439- options .displayPercent = {
440- type = " toggle" ,
441- tristate = false ,
442- width = " full" ,
443- order = 110 ,
444- name = L [" Display health percent text for enemies" ],
445- desc = L [" Display health percent text instead of health deficit for non friendly units." ],
446- get = function () return status .dbx .displayPercentEnemies end ,
447- set = function (_ , v )
448- status .dbx .displayPercentEnemies = v or nil
449- status :Refresh ()
450- end ,
451- }
452456end , {
453457 titleIcon = " Interface\\ Icons\\ Spell_shadow_lifedrain"
454458})
0 commit comments