From cad2f6e6194c5e313737cf8357e7ed64c7cd57ae Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 1 Dec 2022 13:11:45 -0300 Subject: [PATCH] fixes --- frames/window_playerbreakdown.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frames/window_playerbreakdown.lua b/frames/window_playerbreakdown.lua index aa0a2e6a..056c4d88 100644 --- a/frames/window_playerbreakdown.lua +++ b/frames/window_playerbreakdown.lua @@ -161,6 +161,16 @@ function _detalhes:AbreJanelaInfo (jogador, from_att_change, refresh, ShiftKeyDo end end + local infoNumPoints = info:GetNumPoints() + for i = 1, infoNumPoints do + local a, b, c, d, e = info:GetPoint(i) + if (not b) then + info:ClearAllPoints() + end + end + + info:SetPoint("center", _G.UIParent, "center", 0, 0) + --passar os par�metros para dentro da tabela da janela. info.ativo = true --sinaliza o addon que a janela esta aberta @@ -1667,9 +1677,6 @@ function gump:CriaJanelaInfo() --fehcar com o esc tinsert(UISpecialFrames, este_gump:GetName()) - --propriedades da janela - este_gump:SetPoint("CENTER", UIParent) - este_gump:SetWidth(PLAYER_DETAILS_WINDOW_WIDTH) este_gump:SetHeight(PLAYER_DETAILS_WINDOW_HEIGHT)