This commit is contained in:
tercio
2014-03-19 17:26:05 -03:00
parent 975cf09adc
commit 0a0b744444
10 changed files with 192 additions and 39 deletions
+13 -1
View File
@@ -155,9 +155,16 @@ end
--> desativando a instância ela fica em stand by e apenas hida a janela
function _detalhes:DesativarInstancia()
local lower = _detalhes:GetLowerInstanceNumber()
self.ativa = false
_detalhes:GetLowerInstanceNumber()
if (lower == self.meu_id) then
--> os icones dos plugins estao hostiados nessa instancia.
_detalhes.ToolBar:ReorganizeIcons (nil, true)
end
if (_detalhes.switch.current_instancia and _detalhes.switch.current_instancia == self) then
_detalhes.switch:CloseMe()
end
@@ -253,7 +260,12 @@ end
function _detalhes:AtivarInstancia (temp)
self.ativa = true
_detalhes:GetLowerInstanceNumber()
local lower = _detalhes:GetLowerInstanceNumber()
if (lower == self.meu_id) then
--> os icones dos plugins precisam ser hostiados nessa instancia.
_detalhes.ToolBar:ReorganizeIcons (nil, true)
end
if (not self.iniciada) then
self:RestauraJanela (self.meu_id)
+1 -1
View File
@@ -114,7 +114,7 @@ function container_pets:PegaDono (pet_serial, pet_nome, pet_flags)
if (pet_flags and _bit_band (pet_flags, OBJECT_TYPE_PET) ~= 0) then --> é um pet
if (not _detalhes.pets_no_owner [pet_serial] and _bit_band (pet_flags, EM_GRUPO) ~= 0) then
_detalhes.pets_no_owner [pet_serial] = {pet_nome, pet_flags}
_detalhes:Msg ("PET sem dono:", pet_nome)
_detalhes:Msg ("couldn't find the owner of the pet:", pet_nome)
end
else
is_ignored [pet_serial] = true