- Fixed some corner border for elvui skins.

- /run Details.death_tooltip_width = 500 makes the deathlog tooltip be 500 width.
This commit is contained in:
Tercio
2015-12-07 13:21:49 -02:00
parent d4ab8bd020
commit e8a3f3d74c
6 changed files with 78 additions and 12 deletions
+9 -5
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -278,7 +278,7 @@ function _detalhes:ToolTipDead (instancia, morte, esta_barra, keydown)
end
GameCooltip:SetOption ("StatusBarHeightMod", -6)
GameCooltip:SetOption ("FixedWidth", 300)
GameCooltip:SetOption ("FixedWidth", (type (_detalhes.death_tooltip_width) == "number" and _detalhes.death_tooltip_width) or 300)
GameCooltip:SetOption ("TextSize", _detalhes.tooltip.fontsize)
GameCooltip:SetOption ("TextFont", _detalhes.tooltip.fontface)
+1
View File
@@ -982,6 +982,7 @@ local default_profile = {
pvp_as_group = true,
use_battleground_server_parser = true,
force_activity_time_pvp = true,
death_tooltip_width = 300,
--> skins
standard_skin = false,
+32 -3
View File
@@ -143,6 +143,8 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section)
window.close_with_right = true
window.backdrop = nil
window.using_skin = 1
DetailsOptionsWindow.instance = instance
DetailsOptionsWindow.loading_settings = true
@@ -198,6 +200,7 @@ function _detalhes:OpenOptionsWindow (instance, no_reopen, section)
window_icon:SetDrawLayer ("background")
window_icon:SetTexCoord (0, 0.054199, 0.591308, 0.646972) --605 663
--> title
local title = g:NewLabel (window, nil, nil, "title", Loc ["STRING_OPTIONS_WINDOW"], "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
title:SetPoint ("center", window, "center")
@@ -676,9 +679,12 @@ local menus2 = {
info_text:Hide()
window.descAnchorImage:Hide()
window.descBackgroundImage:Hide()
window.descAnchorTopLeftImage:Show()
window.descAnchorBottomLeftImage:Show()
window.descAnchorTopRightImage:Show()
if (window.using_skin == 1) then --normal skin
window.descAnchorTopLeftImage:Show()
window.descAnchorBottomLeftImage:Show()
window.descAnchorTopRightImage:Show()
end
end
end
@@ -1306,6 +1312,29 @@ local menus2 = {
end
--SKINS
function window:UseElvUISkin()
background:SetTexture ([[Interface\AddOns\Details\images\background]])
background:SetVertexColor (0.27, 0.27, 0.27, 0.7)
window:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
window:SetBackdropColor (1, 1, 1, 1)
window:SetBackdropBorderColor (0, 0, 0, 1)
bigdog:Hide()
window.descAnchorTopLeftImage:Hide()
window.descAnchorBottomLeftImage:Hide()
window.descAnchorTopRightImage:Hide()
window.using_skin = 2
end
--window:UseElvUISkin()
function window:UseClassicSkin()
window.using_skin = 1
end
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Advanced Settings - Tooltips ~20
+35 -3
View File
@@ -5057,7 +5057,7 @@ function gump:CriaRodape (baseframe, instancia)
baseframe.rodape = {}
--> esquerdo
--> esquerdo com statusbar
baseframe.rodape.esquerdo = instancia.floatingframe:CreateTexture (nil, "overlay")
baseframe.rodape.esquerdo:SetPoint ("topright", baseframe, "bottomleft", 16, 0)
baseframe.rodape.esquerdo:SetTexture (DEFAULT_SKIN)
@@ -5065,7 +5065,15 @@ function gump:CriaRodape (baseframe, instancia)
baseframe.rodape.esquerdo:SetWidth (32)
baseframe.rodape.esquerdo:SetHeight (32)
--> direito
--> esquerdo sem statusbar
baseframe.rodape.esquerdo_nostatusbar = instancia.floatingframe:CreateTexture (nil, "overlay")
baseframe.rodape.esquerdo_nostatusbar:SetPoint ("topright", baseframe, "bottomleft", 16, 14)
baseframe.rodape.esquerdo_nostatusbar:SetTexture (DEFAULT_SKIN)
baseframe.rodape.esquerdo_nostatusbar:SetTexCoord (unpack (COORDS_PIN_LEFT))
baseframe.rodape.esquerdo_nostatusbar:SetWidth (32)
baseframe.rodape.esquerdo_nostatusbar:SetHeight (32)
--> direito com statusbar
baseframe.rodape.direita = instancia.floatingframe:CreateTexture (nil, "overlay")
baseframe.rodape.direita:SetPoint ("topleft", baseframe, "bottomright", -16, 0)
baseframe.rodape.direita:SetTexture (DEFAULT_SKIN)
@@ -5073,6 +5081,14 @@ function gump:CriaRodape (baseframe, instancia)
baseframe.rodape.direita:SetWidth (32)
baseframe.rodape.direita:SetHeight (32)
--> direito sem statusbar
baseframe.rodape.direita_nostatusbar = instancia.floatingframe:CreateTexture (nil, "overlay")
baseframe.rodape.direita_nostatusbar:SetPoint ("topleft", baseframe, "bottomright", -16, 14)
baseframe.rodape.direita_nostatusbar:SetTexture (DEFAULT_SKIN)
baseframe.rodape.direita_nostatusbar:SetTexCoord (unpack (COORDS_PIN_RIGHT))
baseframe.rodape.direita_nostatusbar:SetWidth (32)
baseframe.rodape.direita_nostatusbar:SetHeight (32)
--> barra centro
baseframe.rodape.top_bg = baseframe:CreateTexture (nil, "background")
baseframe.rodape.top_bg:SetTexture (DEFAULT_SKIN)
@@ -5081,7 +5097,7 @@ function gump:CriaRodape (baseframe, instancia)
baseframe.rodape.top_bg:SetHeight (128)
baseframe.rodape.top_bg:SetPoint ("left", baseframe.rodape.esquerdo, "right", -16, -48)
baseframe.rodape.top_bg:SetPoint ("right", baseframe.rodape.direita, "left", 16, -48)
local StatusBarLeftAnchor = CreateFrame ("frame", "DetailsStatusBarAnchorLeft" .. instancia.meu_id, baseframe)
StatusBarLeftAnchor:SetPoint ("left", baseframe.rodape.top_bg, "left", 5, 57)
StatusBarLeftAnchor:SetWidth (1)
@@ -6299,6 +6315,8 @@ function _detalhes:ChangeSkin (skin_name)
self.baseframe.rodape.top_bg:SetTexture (skin_file) --> rodape top background
self.baseframe.rodape.esquerdo:SetTexture (skin_file) --> rodape esquerdo
self.baseframe.rodape.direita:SetTexture (skin_file) --> rodape direito
self.baseframe.rodape.esquerdo_nostatusbar:SetTexture (skin_file) --> rodape direito
self.baseframe.rodape.direita_nostatusbar:SetTexture (skin_file) --> rodape direito
self.baseframe.button_stretch.texture:SetTexture (skin_file) --> botăo de esticar a janela
@@ -7518,6 +7536,11 @@ function _detalhes:HideStatusBar (instancia)
self.baseframe.rodape.StatusBarCenterAnchor:Hide()
self.baseframe.DOWNFrame:Hide()
--debug
self.baseframe.rodape.direita_nostatusbar:Show()
self.baseframe.rodape.esquerdo_nostatusbar:Show()
--
if (self.toolbar_side == 2) then
self:ToolbarSide()
end
@@ -7551,6 +7574,10 @@ function _detalhes:StatusBarColor (r, g, b, a, no_save)
self.baseframe.rodape.esquerdo:SetAlpha (a)
self.baseframe.rodape.direita:SetVertexColor (r, g, b)
self.baseframe.rodape.direita:SetAlpha (a)
self.baseframe.rodape.direita_nostatusbar:SetVertexColor (r, g, b)
self.baseframe.rodape.esquerdo_nostatusbar:SetVertexColor (r, g, b)
self.baseframe.rodape.direita_nostatusbar:SetAlpha (a)
self.baseframe.rodape.esquerdo_nostatusbar:SetAlpha (a)
self.baseframe.rodape.top_bg:SetVertexColor (r, g, b)
self.baseframe.rodape.top_bg:SetAlpha (a)
@@ -7570,6 +7597,11 @@ function _detalhes:ShowStatusBar (instancia)
self.baseframe.rodape.StatusBarCenterAnchor:Show()
self.baseframe.DOWNFrame:Show()
--debug
self.baseframe.rodape.direita_nostatusbar:Hide()
self.baseframe.rodape.esquerdo_nostatusbar:Hide()
--
self:ToolbarSide()
self:StretchButtonAnchor()
Binary file not shown.