- Testing new sort method on Cooldowns and Customs, this is a try to fix the row changing places when actors have the same amount done.

- Minimalistic is now the skin default used by Details! after its instalation.
- Many improvements over Default Skin, Minimalistic Skin and ElvUI Frame Style Skin.
- Added 'Logos' and 'Raid & Dungeons' sections for Wallpapers.
- Added a option to load a image from the computer to use as wallpaper.
- Revamp on Image Editor, many bugs solves and now it is usable.
- Few tweaks done on shortcut panel, now the buttons they are smaller and the panel can hold more.
- Fixed 'While in Combat' hiding schema.
- Fixed the report window alert when opening the report window and it already is opened.
- Fixed the gap between last row created and the end of the window.
- Fixed all tooltips bugs on Wallpaper Section on Options Panel.
This commit is contained in:
tercio
2014-06-25 16:11:19 -03:00
parent c36f87a3b6
commit 7632bcdaec
23 changed files with 545 additions and 141 deletions
+2 -4
View File
@@ -330,7 +330,7 @@
--> hide / alpha / switch in combat
for index, instancia in ipairs (_detalhes.tabela_instancias) do
if (instancia.ativa) then
instancia:SetCombatAlpha (nil, nil, true)
--instancia:SetCombatAlpha (nil, nil, true) --passado para o regen disable
instancia:CheckSwitchOnCombatStart()
end
end
@@ -565,9 +565,7 @@
--> hide / alpha in combat
for index, instancia in ipairs (_detalhes.tabela_instancias) do
if (instancia.ativa) then
instancia:SetCombatAlpha (nil, nil, true)
--instancia:SetCombatAlpha (nil, nil, true) --passado para o regen enabled
if (instancia.auto_switch_to_old) then
instancia:CheckSwitchOnCombatEnd()
end
+24 -3
View File
@@ -1457,14 +1457,14 @@
------------------------------------------------------------------------------------------------
--> build containers on the fly
if (not este_jogador.cooldowns_defensive) then
este_jogador.cooldowns_defensive = 0
este_jogador.cooldowns_defensive = _detalhes:GetAlphabeticalOrderNumber (who_name)
este_jogador.cooldowns_defensive_targets = container_combatentes:NovoContainer (container_damage_target) --> pode ser um container de alvo de dano, pois irá usar apenas o .total
este_jogador.cooldowns_defensive_spell_tables = container_habilidades:NovoContainer (container_misc) --> cria o container das habilidades
if (not este_jogador.shadow.cooldowns_defensive_targets) then
este_jogador.shadow.cooldowns_defensive = 0
este_jogador.shadow.cooldowns_defensive = _detalhes:GetAlphabeticalOrderNumber (who_name)
este_jogador.shadow.cooldowns_defensive_targets = container_combatentes:NovoContainer (container_damage_target) --> pode ser um container de alvo de dano, pois irá usar apenas o .total
este_jogador.shadow.cooldowns_defensive_spell_tables = container_habilidades:NovoContainer (container_misc) --> cria o container das habilidades usadas
end
@@ -2345,9 +2345,15 @@
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> core
--test
--function parser:spell_fail (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spellschool, error, msg2, msg3)
-- print (token, who_name, spellid, spellname, spellschool, error, msg2, msg3)
--end
local token_list = {
-- neutral
["SPELL_SUMMON"] = parser.summon,
--["SPELL_CAST_FAILED"] = parser.spell_fail
}
--serach key: ~capture
@@ -2679,6 +2685,12 @@
local esta_instancia = _detalhes.tabela_instancias[_detalhes.solo]
esta_instancia.atualizando = true
end
for index, instancia in ipairs (_detalhes.tabela_instancias) do
if (instancia.ativa) then
instancia:SetCombatAlpha (nil, nil, true)
end
end
end
function _detalhes.parser_functions:PLAYER_REGEN_ENABLED (...)
@@ -2710,6 +2722,12 @@
_detalhes.historico:adicionar_overall (_detalhes.tabela_vigente)
end
for index, instancia in ipairs (_detalhes.tabela_instancias) do
if (instancia.ativa) then
instancia:SetCombatAlpha (nil, nil, true)
end
end
end
function _detalhes.parser_functions:GROUP_ROSTER_UPDATE (...)
@@ -2851,6 +2869,9 @@
function _detalhes:OnParserEvent (evento, time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, ...)
local funcao = token_list [token]
--print (token, ...)
if (funcao) then
return funcao (nil, token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, ... )
else
+9 -2
View File
@@ -18,8 +18,10 @@
local _string_format = string.format --lua local
local _math_floor = math.floor --lua local
local _math_max = math.max --lua local
local _math_abs = math.abs --lua local
local _type = type --lua local
local _string_match = string.match --lua local
local _string_byte = string.byte
local loadstring = loadstring --lua local
local _UnitClass = UnitClass --wow api local
@@ -37,6 +39,11 @@
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> details api functions
--> get the fractional number representing the alphabetical letter
function _detalhes:GetAlphabeticalOrderNumber (who_name)
return _math_abs (_string_byte (_upper (who_name))-91)/1000000
end
--> set all table keys to lower
local temptable = {}
function _detalhes:LowerizeKeys (_table)
@@ -482,8 +489,8 @@
self.frame:Hide()
end
if (frame.FlashAnimation.onFinishFunc) then
frame.FlashAnimation:onFinishFunc (frame)
if (self.onFinishFunc) then
self:onFinishFunc (self.frame)
end
end
+9 -4
View File
@@ -16,6 +16,11 @@
local _UIParent = UIParent --wow api local
local gump = _detalhes.gump --details local
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> constants
local end_window_spacement = 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> core
@@ -164,7 +169,7 @@
self.ponto3 = {x = _x + metade_largura, y = _y - metade_altura + statusbar_y_mod} --bottomright
self.ponto4 = {x = _x + metade_largura, y = _y + metade_altura + (statusbar_y_mod*-1)} --topright
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight()-4 --> checar isso
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
return {altura = self.baseframe:GetHeight(), largura = self.baseframe:GetWidth(), x = xOfs/_UIscale, y = yOfs/_UIscale}
end
@@ -190,7 +195,7 @@
self.baseframe:SetWidth (self.posicao[self.mostrando].w) --slider frame
self.baseframe:SetHeight (self.posicao[self.mostrando].h)
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight()-4 --> checar isso
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
end
function _detalhes:RestoreMainWindowPositionNoResize (pre_defined, x, y)
@@ -213,7 +218,7 @@
self.baseframe:ClearAllPoints()
self.baseframe:SetPoint ("CENTER", _UIParent, "CENTER", novo_x + x, novo_y + y)
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight()-4 --> checar isso
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
end
function _detalhes:ResetaGump (instancia, tipo, segmento)
@@ -295,7 +300,7 @@
end
-- -4 difere a precisão de quando a barra será adicionada ou apagada da barra
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight()-4
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement
local T = self.rows_fit_in_window
if (not T) then --> primeira vez que o gump esta sendo reajustado