- Fixed problem where Player Details Windows didn't open if the player on set the nickname without a avatar.

- Fixed a bug with HotCorner where the buttons doesn't hide after disabling it on options panel.
- Attempt to fix a issue with framestrata fixer addons where they mess around with frame levels.
This commit is contained in:
tercio
2014-05-16 15:14:19 -03:00
parent 41558af9e9
commit 6b672d0649
9 changed files with 62 additions and 16 deletions
+5 -1
View File
@@ -209,6 +209,8 @@ local tinsert = tinsert
LibHotCorners:CreateAddonWidget (self, button_table, index, self.position)
end
button_table.widget:ClearAllPoints()
if (not button_table.savedtable.hide) then
if (self.position == "topleft" or self.position == "topright") then
local y = i * 35 * -1
@@ -248,7 +250,9 @@ local tinsert = tinsert
function HotCornersButtonOnEnter (self)
set_size (self:GetParent())
for index, button_table in ipairs (LibHotCorners [self:GetParent().position]) do
button_table.widget:Show()
if (not button_table.savedtable.hide) then
button_table.widget:Show()
end
end
show_tooltip (self)
end
+2 -2
View File
@@ -8,8 +8,8 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0", "LibHotCorners")
_detalhes.userversion = "v1.14.0"
_detalhes.version = "Alpha 017"
_detalhes.userversion = "v1.14.0b"
_detalhes.version = "Alpha 018"
_detalhes.realversion = 18
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+16 -8
View File
@@ -72,26 +72,36 @@ function _detalhes:AbreJanelaInfo (jogador)
info.atributo_nome:SetText (atributo_nome)
local avatar = NickTag:GetNicknameTable (jogador.serial)
if (avatar) then
if (avatar and avatar [1]) then
info.nome:SetText (avatar [1] or nome)
end
if (avatar and avatar [2]) then
info.avatar:SetTexture (avatar [2])
info.avatar_bg:SetTexture (avatar [4])
info.avatar_bg:SetTexCoord (unpack (avatar [5]))
info.avatar_bg:SetVertexColor (unpack (avatar [6]))
if (avatar [5]) then
info.avatar_bg:SetTexCoord (unpack (avatar [5]))
end
if (avatar [6]) then
info.avatar_bg:SetVertexColor (unpack (avatar [6]))
end
info.avatar_nick:SetText (avatar [1] or nome)
info.avatar_attribute:SetText (atributo_nome)
info.avatar_attribute:SetPoint ("CENTER", info.avatar_nick, "CENTER", 0, 14)
info.avatar_attribute:SetPoint ("CENTER", info.avatar_nick, "CENTER", 0, 14)
info.avatar:Show()
info.avatar_bg:Show()
info.avatar_bg:SetAlpha (.65)
info.avatar_nick:Show()
info.avatar_attribute:Show()
info.nome:Hide()
info.atributo_nome:Hide()
else
info.avatar:Hide()
info.avatar_bg:Hide()
info.avatar_nick:Hide()
@@ -101,8 +111,6 @@ function _detalhes:AbreJanelaInfo (jogador)
info.atributo_nome:Show()
end
info.atributo_nome:SetPoint ("CENTER", info.nome, "CENTER", 0, 14)
gump:TrocaBackgroundInfo (info)
+15
View File
@@ -94,6 +94,21 @@ function _detalhes:CreateOrOpenNewsWindow()
texto:SetTextColor (1, 1, 1)
texto:SetWidth (450)
texto:SetHeight (1400)
-- /script _detalhes.OpenNewsWindow()
--> forum text
local forum_button = CreateFrame ("Button", "DetailsNewsWindowForumButton", frame, "OptionsButtonTemplate")
forum_button:SetPoint ("bottomleft", frame, "bottomleft", 10, 4)
forum_button:SetText ("Forum Thread")
forum_button:SetScript ("OnClick", function (self)
--> copy and paste
_detalhes:CopyPaste ("http://www.mmo-champion.com/threads/1480721-New-damage-meter-%28Details!%29-need-help-with-tests-and-feedbacks")
end)
forum_button:SetWidth (130)
local forum_button_texto = frame:CreateFontString ("DetailsNewsWindowForumButtonText", "overlay", "GameFontHighlightSmall")
forum_button_texto:SetPoint ("left", forum_button, "right", 3, 0)
forum_button_texto:SetText ("on mmo-champions, for feedback, feature request, bug report.")
forum_button_texto:SetTextColor (.7, .7, .7, 1)
function frame:Title (title)
frame.TitleText:SetText (title or "")
+4
View File
@@ -336,6 +336,10 @@ local function OnEnterMainWindow (instancia, self)
instancia:SetMenuAlpha (nil, nil, nil, nil, true)
instancia:SetAutoHideMenu (nil, nil, true)
if (instancia.baseframe:GetFrameLevel() > instancia.rowframe:GetFrameLevel()) then
instancia.rowframe:SetFrameLevel (instancia.baseframe:GetFrameLevel())
end
if (instancia.modo ~= _detalhes._detalhes_props["MODO_ALONE"] and not instancia.baseframe.isLocked) then
--> resizes and lock button
+1 -1
View File
@@ -27,7 +27,7 @@ do
frame:SetBackdropBorderColor (170/255, 170/255, 170/255)
frame:SetBackdropColor (24/255, 24/255, 24/255, .8)
frame:SetFrameStrata ("DIALOG")
frame:SetFrameStrata ("FULLSCREEN")
frame:SetFrameLevel (16)
function _detalhes.switch:CloseMe()
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+17 -2
View File
@@ -450,7 +450,7 @@ function _G._detalhes:Start()
resetwarning_frame.TitleText:SetText ("Noooooooooooo!!!")
resetwarning_frame.midtext = resetwarning_frame:CreateFontString (nil, "artwork", "GameFontNormal")
resetwarning_frame.midtext:SetText ("A pack of murlocs has attacked Details! tech center, our gnomes engineers are working on fixing the damage.\n\n If something is messed in your Details!, you can click on the 'Reset Skin' button.")
resetwarning_frame.midtext:SetText ("A pack of murlocs has attacked Details! tech center, our gnomes engineers are working on fixing the damage.\n\n If something is messed in your Details!, especially the close, instance and reset buttons, you can either 'Reset Skin' or access the options panel.")
resetwarning_frame.midtext:SetPoint ("topleft", resetwarning_frame, "topleft", 10, -90)
resetwarning_frame.midtext:SetJustifyH ("center")
resetwarning_frame.midtext:SetWidth (370)
@@ -480,7 +480,7 @@ function _G._detalhes:Start()
resetwarning_frame.see_updates:SetWidth (130)
resetwarning_frame.reset_skin = CreateFrame ("Button", "DetailsResetWindowResetSkinButton", resetwarning_frame, "OptionsButtonTemplate")
resetwarning_frame.reset_skin:SetPoint ("right", resetwarning_frame.see_updates, "left", -10, 0)
resetwarning_frame.reset_skin:SetPoint ("right", resetwarning_frame.see_updates, "left", -5, 0)
resetwarning_frame.reset_skin:SetText ("Reset Skin")
resetwarning_frame.reset_skin:SetScript ("OnClick", function (self)
--do the reset
@@ -501,6 +501,21 @@ function _G._detalhes:Start()
end
end)
resetwarning_frame.reset_skin:SetWidth (130)
resetwarning_frame.open_options = CreateFrame ("Button", "DetailsResetWindowOpenOptionsButton", resetwarning_frame, "OptionsButtonTemplate")
resetwarning_frame.open_options:SetPoint ("right", resetwarning_frame.reset_skin, "left", -5, 0)
resetwarning_frame.open_options:SetText ("Options Panel")
resetwarning_frame.open_options:SetScript ("OnClick", function (self)
local lower_instance = _detalhes:GetLowerInstanceNumber()
if (not lower_instance) then
local instance = _detalhes:GetInstance (1)
_detalhes.CriarInstancia (_, _, 1)
_detalhes:OpenOptionsWindow (instance)
else
_detalhes:OpenOptionsWindow (_detalhes:GetInstance (lower_instance))
end
end)
resetwarning_frame.open_options:SetWidth (130)
function _detalhes:ResetWarningDialog()
DetailsResetConfigWarningDialog:Show()