- 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
+6 -6
View File
@@ -1282,15 +1282,15 @@
--> esta dando erro onde o nome é NIL, fazendo um fix para isso
if (not who_name) then
print ( "DISPELL sem who_name: [*] "..extraSpellName )
print (alvo_name)
print (spellname)
--print ( "DISPELL sem who_name: [*] "..extraSpellName )
--print (alvo_name)
--print (spellname)
who_name = "[*] "..extraSpellName
end
if (not alvo_name) then
print ("DISPELL sem alvo_name: [*] "..extraSpellName)
print (who_name)
print (spellname)
--print ("DISPELL sem alvo_name: [*] "..extraSpellName)
--print (who_name)
--print (spellname)
alvo_name = "[*] "..spellid
end
+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]
+1 -1
View File
@@ -30,7 +30,7 @@ function _G._detalhes:Start()
self.in_combat = false
self.combat_id = self.combat_id or 0
self.instances_amount = self.instances_amount or 12
self.segments_amount = self.segments_amount or 8
self.segments_amount = self.segments_amount or 10
self.segments_amount_to_save = self.segments_amount_to_save or 2
self.deadlog_limit = self.deadlog_limit or 12
self.minimum_combat_time = self.minimum_combat_time or 5