- Added option 'Ignore Mass Toggle', when enabled the window won't be affected when hiding, showing or toggling all windows.

- Added window number for slash commands 'hide', 'show' and 'toggle'. Usage: '/details hide 1' to hide window 1.
- Removed keybinds for Open and Close, added toggle instead.
- Added slash command 'toggle'.
- Added display icons for all skins which still didn't have they.
- Improved 'Align with right chat' tool, now it also supports Forced Square skin.
- Improvements on Bookmark panel.
- Improvements on spec icons with transparency.
- Created custom spell for Living Bomb explosion.
- Fixed statusbar textures and mini displays.
- Fixed an issue with title bar buttons when toggling the titlebar anchor from bottom to top position.
- Fixed an issue with title bar text when toggling the statusbar position from bottom to top.
- Fixed yet another bug with avoidance tab on player detail window.
- Fixed the window ungroup button (above the resize one).
This commit is contained in:
Tercio
2015-02-02 20:31:57 -02:00
parent a5ede3a633
commit ae3d951ab4
16 changed files with 217 additions and 85 deletions
+1 -1
View File
@@ -1352,7 +1352,7 @@ end
local actor_class_color_r, actor_class_color_g, actor_class_color_b
--self = esta classe de dano
-- ~atualizar ~barra
function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra, lugar, total, sub_atributo, forcar, keyName, combat_time, percentage_type, use_animations, bars_show_data, bars_brackets, bars_separator)
-- instância, container das barras, qual barra, colocação, total?, sub atributo, forçar refresh, key
+21 -10
View File
@@ -311,7 +311,7 @@ end
function _detalhes:ShutDownAllInstances()
for index, instance in _ipairs (_detalhes.tabela_instancias) do
if (instance:IsEnabled()) then
if (instance:IsEnabled() and instance.baseframe and not instance.ignore_mass_showhide) then
instance:ShutDown()
end
end
@@ -410,7 +410,17 @@ end
end
function _detalhes:ToggleWindows()
local instance = _detalhes:GetInstance (1)
local instance
for i = 1, #_detalhes.tabela_instancias do
local this_instance = _detalhes:GetInstance (i)
if (this_instance and not this_instance.ignore_mass_showhide) then
instance = this_instance
break
end
end
if (instance) then
if (instance:IsEnabled()) then
_detalhes:ShutDownAllInstances()
@@ -430,7 +440,9 @@ end
function _detalhes:ReabrirTodasInstancias (temp)
for index = math.min (#_detalhes.tabela_instancias, _detalhes.instances_amount), 1, -1 do
local instancia = _detalhes:GetInstance (index)
instancia:AtivarInstancia (temp)
if (instancia and not instancia.ignore_mass_showhide) then
instancia:AtivarInstancia (temp)
end
end
end
@@ -477,8 +489,6 @@ end
end
end
--> oposto do desativar, ela apenas volta a mostrar a janela
--> alias
function _detalhes:EnableInstance (temp)
return self:AtivarInstancia (temp)
@@ -740,13 +750,14 @@ end
function _detalhes:BaseFrameSnap()
for meu_id, instancia in _ipairs (_detalhes.tabela_instancias) do
local group = self:GetInstanceGroup()
for meu_id, instancia in _ipairs (group) do
if (instancia:IsAtiva()) then
instancia.baseframe:ClearAllPoints()
end
end
local group = self:GetInstanceGroup()
local scale = self.window_scale
for _, instance in _ipairs (group) do
instance:SetWindowScale (scale)
@@ -3115,7 +3126,7 @@ function _detalhes:envia_relatorio (linhas, custom)
local alvo = _detalhes.report_to_who
if (not alvo or alvo == "") then
print (Loc ["STRING_REPORT_INVALIDTARGET"])
_detalhes:Msg (Loc ["STRING_REPORT_INVALIDTARGET"])
return
end
@@ -3132,11 +3143,11 @@ function _detalhes:envia_relatorio (linhas, custom)
if (_UnitIsPlayer ("target")) then
alvo = _UnitName ("target")
else
print (Loc ["STRING_REPORT_INVALIDTARGET"])
_detalhes:Msg (Loc ["STRING_REPORT_INVALIDTARGET"])
return
end
else
print (Loc ["STRING_REPORT_INVALIDTARGET"])
_detalhes:Msg (Loc ["STRING_REPORT_INVALIDTARGET"])
return
end
+3
View File
@@ -44,6 +44,7 @@ _detalhes.instance_skin_ignored_values = {
["strata"] = true,
["grab_on_top"] = true,
["libwindow"] = true,
["ignore_mass_showhide"] = true,
}
function _detalhes:ResetInstanceConfigKeepingValues (maintainsnap)
@@ -89,6 +90,8 @@ end
_detalhes.instance_defaults = {
--> window settings
ignore_mass_showhide = false,
--skin
skin = _detalhes.default_skin_to_use,
--scale