- fixed an issue with segments menu.

- default max segments increased to 10.
- removed some debug lines.
This commit is contained in:
Tercio
2013-09-10 13:40:02 -03:00
parent 9cf32303a0
commit cd97d68b89
4 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ function _detalhes:OpenOptionsWindow (instance)
g:NewSlider (window, _, "$parentSlider", "segmentsSlider", 120, 20, 1, 25, 1, _detalhes.segments_amount) -- min, max, step, defaultv
window.segmentsSlider:SetPoint ("left", window.segmentsLabel, "right")
window.segmentsSlider:SetHook ("OnValueChange", function (self, _, amount) --> slider, fixedValue, sliderValue
_detalhes.segments_amount = amount
_detalhes.segments_amount = math.floor (amount)
end)
window.segmentsSlider.tooltip = "This option control how many fights you want to maintain.\nAs overall data work dynamic with segments stored,\nfeel free to adjust this number to be comfortable for you.\nHigh value may increase the memory use,\nbut doesn't affect your game framerate."
+1
View File
@@ -2726,6 +2726,7 @@ function gump:CriaCabecalho (BaseFrame, instancia)
----------- segments
local menuIndex = 0
_detalhes.segments_amount = math.floor (_detalhes.segments_amount)
for i = _detalhes.segments_amount, 1, -1 do
local thisCombat = _detalhes.tabela_historico.tabelas [i]