1- --- @type Config
1+ --- @class Config
22local Config = ECSLoader :ImportModule (" Config" )
33local _Config = Config .private
44
@@ -59,9 +59,6 @@ function _Config:LoadMeleeSection()
5959 name = function () return i18n (" Armor Pen." ) end ,
6060 desc = function () return i18n (" Shows/Hides the armor penetration value." ) end ,
6161 width = 1.5 ,
62- hidden = function ()
63- return (not ECS .IsWotlk )
64- end ,
6562 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
6663 get = function () return ExtendedCharacterStats .profile .melee .penetration .display ; end ,
6764 set = function (_ , value )
@@ -75,9 +72,7 @@ function _Config:LoadMeleeSection()
7572 name = function () return i18n (" Armor Pen. Rating" ) end ,
7673 desc = function () return i18n (" Shows/Hides the armor penetration rating value." ) end ,
7774 width = 1.5 ,
78- hidden = function ()
79- return (not ECS .IsWotlk )
80- end ,
75+ hidden = function () return ECS .IsClassic end ,
8176 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
8277 get = function () return ExtendedCharacterStats .profile .melee .penetrationRating .display ; end ,
8378 set = function (_ , value )
@@ -91,9 +86,7 @@ function _Config:LoadMeleeSection()
9186 name = function () return i18n (" Expertise" ) end ,
9287 desc = function () return i18n (" Shows/Hides the expertise value." ) end ,
9388 width = 1.5 ,
94- hidden = function ()
95- return (not ECS .IsWotlk )
96- end ,
89+ hidden = function () return ECS .IsClassic end ,
9790 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
9891 get = function () return ExtendedCharacterStats .profile .melee .expertise .display ; end ,
9992 set = function (_ , value )
@@ -107,9 +100,7 @@ function _Config:LoadMeleeSection()
107100 name = function () return i18n (" Expertise Rating" ) end ,
108101 desc = function () return i18n (" Shows/Hides the expertise rating." ) end ,
109102 width = 1.5 ,
110- hidden = function ()
111- return (not ECS .IsWotlk )
112- end ,
103+ hidden = function () return ECS .IsClassic end ,
113104 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
114105 get = function () return ExtendedCharacterStats .profile .melee .expertiseRating .display ; end ,
115106 set = function (_ , value )
@@ -123,9 +114,7 @@ function _Config:LoadMeleeSection()
123114 name = function () return i18n (" Haste Rating" ) end ,
124115 desc = function () return i18n (" Shows/Hides the melee haste rating." ) end ,
125116 width = 1.5 ,
126- hidden = function ()
127- return (not ECS .IsWotlk )
128- end ,
117+ hidden = function () return ECS .IsClassic end ,
129118 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
130119 get = function () return ExtendedCharacterStats .profile .melee .hasteRating .display ; end ,
131120 set = function (_ , value )
@@ -139,9 +128,6 @@ function _Config:LoadMeleeSection()
139128 name = function () return i18n (" Haste Bonus" ) end ,
140129 desc = function () return i18n (" Shows/Hides the melee haste bonus value." ) end ,
141130 width = 1.5 ,
142- hidden = function ()
143- return (not ECS .IsWotlk )
144- end ,
145131 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
146132 get = function () return ExtendedCharacterStats .profile .melee .hasteBonus .display ; end ,
147133 set = function (_ , value )
@@ -174,9 +160,7 @@ function _Config:LoadMeleeSection()
174160 name = function () return i18n (" Hit Rating" ) end ,
175161 desc = function () return i18n (" Shows/Hides the melee hit rating." ) end ,
176162 width = 1.5 ,
177- hidden = function ()
178- return (not ECS .IsWotlk )
179- end ,
163+ hidden = function () return ECS .IsClassic end ,
180164 disabled = function ()
181165 return ((not ExtendedCharacterStats .profile .melee .display ) or
182166 (not ExtendedCharacterStats .profile .melee .hit .display ))
@@ -243,9 +227,7 @@ function _Config:LoadMeleeSection()
243227 name = function () return i18n (" Glancing Blow" ) end ,
244228 desc = function () return i18n (" Shows/Hides all glancing blow stats" ) end ,
245229 width = 1.5 ,
246- hidden = function ()
247- return (not ECS .IsClassic )
248- end ,
230+ hidden = function () return ECS .IsWotlk end ,
249231 disabled = function () return (not ExtendedCharacterStats .profile .melee .display ); end ,
250232 get = function () return ExtendedCharacterStats .profile .melee .glance .display ; end ,
251233 set = function (_ , value )
@@ -258,9 +240,7 @@ function _Config:LoadMeleeSection()
258240 order = 6 ,
259241 inline = true ,
260242 name = function () return i18n (" Melee Glance Values" ) end ,
261- hidden = function ()
262- return (not ECS .IsClassic )
263- end ,
243+ hidden = function () return ECS .IsWotlk end ,
264244 args = {
265245 meleeGlance = {
266246 type = " toggle" ,
@@ -322,7 +302,7 @@ function _Config:LoadMeleeSection()
322302 end ,
323303 get = function () return ExtendedCharacterStats .profile .melee .glance .damageBossLevel .display ; end ,
324304 set = function (_ , value )
325- ExtendedCharacterStats .profile .melee .glance .damageSameLevel .display = value
305+ ExtendedCharacterStats .profile .melee .glance .damageBossLevel .display = value
326306 Stats .RebuildStatInfos ()
327307 end ,
328308 },
@@ -383,4 +363,4 @@ function _Config:LoadMeleeSection()
383363 },
384364 },
385365 }
386- end
366+ end
0 commit comments