Maximum amount of segments raised to 40, this change will help with the mythic+ overall segment

This commit is contained in:
Tercio Jose
2021-03-11 13:34:50 -03:00
parent f466d8723c
commit 5887877b4b
3 changed files with 14 additions and 7 deletions
+3 -3
View File
@@ -374,7 +374,7 @@ do
afterUpdate()
end,
min = 1,
max = 30,
max = 40,
step = 1,
name = Loc ["STRING_OPTIONS_MAXSEGMENTS"],
desc = Loc ["STRING_OPTIONS_MAXSEGMENTS_DESC"],
@@ -388,7 +388,7 @@ do
afterUpdate()
end,
min = 1,
max = 30,
max = 40,
step = 1,
name = Loc ["STRING_OPTIONS_SEGMENTSSAVE"],
desc = Loc ["STRING_OPTIONS_SEGMENTSSAVE_DESC"],
@@ -656,7 +656,7 @@ do
}
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize, true, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
DF:BuildMenu(sectionFrame, sectionOptions, startX, startY-20, heightSize+20, true, options_text_template, options_dropdown_template, options_switch_template, true, options_slider_template, options_button_template)
end
tinsert(Details.optionsSection, buildSection) --optionsSection is declared on boot.lua
+8 -4
View File
@@ -873,8 +873,8 @@ local default_profile = {
},
--> segments
segments_amount = 18,
segments_amount_to_save = 18,
segments_amount = 40,
segments_amount_to_save = 40,
segments_panic_mode = false,
segments_auto_erase = 1,
@@ -1715,10 +1715,14 @@ function Details:ImportProfile (profileString, newProfileName)
mythicPlusSettings.mythicrun_chart_frame = {}
mythicPlusSettings.mythicrun_chart_frame_minimized = {}
mythicPlusSettings.mythicrun_chart_frame_ready = {}
--make the max amount of segments be 30
Details.segments_amount = 40
Details.segments_amount_to_save = 40
--transfer instance data to the new created profile
profileObject.instances = DetailsFramework.table.copy ({}, profileData.instances)
Details:ApplyProfile (newProfileName)
Details:Msg ("profile successfully imported.")--localize-me
+3
View File
@@ -510,6 +510,9 @@ function Details:StartMeUp() --I'll never stop!
Details.boss_mods_timers.encounter_timers_dbm = Details.boss_mods_timers.encounter_timers_dbm or {}
Details.boss_mods_timers.encounter_timers_bw = Details.boss_mods_timers.encounter_timers_bw or {}
Details.segments_amount = 40
Details.segments_amount_to_save = 40
--clear overall data on new session
if (_detalhes.overall_clear_logout) then
_detalhes.tabela_overall = _detalhes.combate:NovaTabela()