Added the new wipe counter for tests

This commit is contained in:
Tercio Jose
2024-07-15 10:50:30 -03:00
committed by andrew6180
parent 6dc4aa979f
commit 6975f3e9db
4 changed files with 166 additions and 48 deletions
+63 -37
View File
@@ -400,51 +400,30 @@ do
desc = Loc ["STRING_OPTIONS_SEGMENTSSAVE_DESC"],
},
{type = "blank"},
{type = "label", get = function() return "Auto Erase:" end, text_template = subSectionTitleTextTemplate},
{--auto erase settings | erase data
type = "select",
get = function() return Details.segments_auto_erase end,
values = function()
return buildEraseDataMenu()
end,
name = Loc ["STRING_OPTIONS_ED"],
desc = Loc ["STRING_OPTIONS_ED_DESC"],
},
{--auto erase trash segments
type = "toggle",
get = function() return Details.trash_auto_remove end,
{--max segments on boss wipes
type = "range",
get = function() return Details.segments_amount_boss_wipes end,
set = function(self, fixedparam, value)
Details.trash_auto_remove = value
Details.segments_amount_boss_wipes = value
afterUpdate()
end,
name = Loc ["STRING_OPTIONS_CLEANUP"],
desc = Loc ["STRING_OPTIONS_CLEANUP_DESC"],
boxfirst = true,
min = 1,
max = 40,
step = 1,
name = "Segments Boss Wipe",
desc = "Amount of segments to keep for wipes on the same boss.",
hidden = true,
},
{--auto erase world segments
{--wipe segments keep the best segments and delete the worst ones
type = "toggle",
get = function() return Details.world_combat_is_trash end,
get = function() return Details.segments_boss_wipes_keep_best_performance end,
set = function(self, fixedparam, value)
Details.world_combat_is_trash = value
afterUpdate()
Details.segments_boss_wipes_keep_best_performance = value
end,
name = Loc ["STRING_OPTIONS_PERFORMANCE_ERASEWORLD"],
desc = Loc ["STRING_OPTIONS_PERFORMANCE_ERASEWORLD_DESC"],
boxfirst = true,
},
{--erase chart data
type = "toggle",
get = function() return Details.clear_graphic end,
set = function(self, fixedparam, value)
Details.clear_graphic = value
afterUpdate()
end,
name = Loc ["STRING_OPTIONS_ERASECHARTDATA"],
desc = Loc ["STRING_OPTIONS_ERASECHARTDATA_DESC"],
name = "Keep Best Performance (boss wipes)",
desc = "Keep the segments with more progress in the boss health and delete the ones with less progress.",
boxfirst = true,
hidden = true,
},
{type = "breakline"},
@@ -685,6 +664,53 @@ do
boxfirst = true,
},
{type = "blank"},
{type = "label", get = function() return "Auto Erase:" end, text_template = subSectionTitleTextTemplate},
{--auto erase settings | erase data
type = "select",
get = function() return Details.segments_auto_erase end,
values = function()
return buildEraseDataMenu()
end,
name = Loc ["STRING_OPTIONS_ED"],
desc = Loc ["STRING_OPTIONS_ED_DESC"],
},
{--auto erase trash segments
type = "toggle",
get = function() return Details.trash_auto_remove end,
set = function(self, fixedparam, value)
Details.trash_auto_remove = value
afterUpdate()
end,
name = Loc ["STRING_OPTIONS_CLEANUP"],
desc = Loc ["STRING_OPTIONS_CLEANUP_DESC"],
boxfirst = true,
},
{--auto erase world segments
type = "toggle",
get = function() return Details.world_combat_is_trash end,
set = function(self, fixedparam, value)
Details.world_combat_is_trash = value
afterUpdate()
end,
name = Loc ["STRING_OPTIONS_PERFORMANCE_ERASEWORLD"],
desc = Loc ["STRING_OPTIONS_PERFORMANCE_ERASEWORLD_DESC"],
boxfirst = true,
},
{--erase chart data
type = "toggle",
get = function() return Details.clear_graphic end,
set = function(self, fixedparam, value)
Details.clear_graphic = value
afterUpdate()
end,
name = Loc ["STRING_OPTIONS_ERASECHARTDATA"],
desc = Loc ["STRING_OPTIONS_ERASECHARTDATA_DESC"],
boxfirst = true,
},
}
sectionFrame.sectionOptions = sectionOptions