Added Transliterate to healing tooltips, fixed some close buttons with green boxes
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
|
||||
if (not _G.DetailsCustomPanel or not DetailsCustomPanel.Initialized) then
|
||||
|
||||
DetailsPluginContainerWindow.OpenPlugin (DetailsCustomPanel)
|
||||
DetailsPluginContainerWindow.OpenPlugin (DetailsCustomPanel)
|
||||
|
||||
local GameCooltip = GameCooltip
|
||||
DetailsCustomPanel.Initialized = true
|
||||
@@ -214,12 +214,14 @@
|
||||
f.Close = CreateFrame ("button", "$parentCloseButton", f)
|
||||
f.Close:SetPoint ("right", titlebar, "right", -2, 0)
|
||||
f.Close:SetSize (16, 16)
|
||||
f.Close:SetNormalTexture (_detalhes.gump.folder .. "icons")
|
||||
f.Close:SetHighlightTexture (_detalhes.gump.folder .. "icons")
|
||||
f.Close:SetPushedTexture (_detalhes.gump.folder .. "icons")
|
||||
f.Close:GetNormalTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetHighlightTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetPushedTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
|
||||
f.Close:SetNormalTexture ([[Interface\GLUES\LOGIN\Glues-CheckBox-Check]])
|
||||
f.Close:SetHighlightTexture ([[Interface\GLUES\LOGIN\Glues-CheckBox-Check]])
|
||||
f.Close:SetPushedTexture ([[Interface\GLUES\LOGIN\Glues-CheckBox-Check]])
|
||||
f.Close:GetNormalTexture():SetDesaturated(true)
|
||||
f.Close:GetHighlightTexture():SetDesaturated(true)
|
||||
f.Close:GetPushedTexture():SetDesaturated(true)
|
||||
|
||||
f.Close:SetAlpha (0.7)
|
||||
f.Close:SetScript ("OnClick", function() _detalhes:CloseCustomDisplayWindow() end)
|
||||
f.Close:SetScript ("OnHide", function()
|
||||
|
||||
@@ -53,7 +53,7 @@ function Details.options.InitializeOptionsWindow(instance)
|
||||
Details:FormatBackground(f)
|
||||
|
||||
DF:ApplyStandardBackdrop (f)
|
||||
local titleBar = DF:CreateTitleBar (f, "Options Panel")
|
||||
local titleBar = DF:CreateTitleBar(f, "Options Panel")
|
||||
titleBar.Text:Hide()
|
||||
|
||||
local titleText = DF:NewLabel(titleBar, nil, "$parentTitleLabel", "title", "Details! " .. Loc ["STRING_OPTIONS_WINDOW"], "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
|
||||
@@ -65,12 +65,14 @@ function Details.options.InitializeOptionsWindow(instance)
|
||||
DF:CreateScaleBar(DetailsOptionsWindow, Details.options_window)
|
||||
DetailsOptionsWindow:SetScale (Details.options_window.scale)
|
||||
|
||||
--[=[]]
|
||||
local closeButton = CreateFrame("button", "DetailsOptionsWindowCloseButton", DetailsOptionsWindow.widget, "UIPanelCloseButton")
|
||||
closeButton:SetWidth(32)
|
||||
closeButton:SetHeight(32)
|
||||
--closeButton:SetPoint("TOPRIGHT", DetailsOptionsWindow.widget, "TOPRIGHT", 0, 0)
|
||||
closeButton:SetText("X")
|
||||
closeButton:SetFrameLevel(closeButton:GetFrameLevel()+2)
|
||||
--]=]
|
||||
|
||||
--select the instance to edit
|
||||
local onSelectInstance = function (_, _, instanceId)
|
||||
|
||||
@@ -64,6 +64,7 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
f:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
|
||||
--> menu title bar
|
||||
--[=[]]
|
||||
local titlebar = CreateFrame ("frame", nil, f,"BackdropTemplate")
|
||||
titlebar:SetPoint ("topleft", f, "topleft", 2, -3)
|
||||
titlebar:SetPoint ("topright", f, "topright", -2, -3)
|
||||
@@ -71,24 +72,40 @@ function Details:OpenRaidHistoryWindow (_raid, _boss, _difficulty, _role, _guild
|
||||
titlebar:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\AddOns\Details\images\background]], tileSize = 64, tile = true})
|
||||
titlebar:SetBackdropColor (.5, .5, .5, 1)
|
||||
titlebar:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
--]=]
|
||||
|
||||
local titlebar = DF:CreateTitleBar(f, "Details! " .. Loc ["STRING_STATISTICS"])
|
||||
|
||||
--> menu title
|
||||
local titleLabel = DF:NewLabel (titlebar, titlebar, nil, "titulo", "Details! " .. Loc ["STRING_STATISTICS"], "GameFontNormal", 12) --{227/255, 186/255, 4/255}
|
||||
titleLabel:SetPoint ("center", titlebar , "center")
|
||||
titleLabel:SetPoint ("top", titlebar , "top", 0, -4)
|
||||
-- local titleLabel = DF:NewLabel (titlebar, titlebar, nil, "titulo", "Details! " .. Loc ["STRING_STATISTICS"], "GameFontNormal", 12) --{227/255, 186/255, 4/255}
|
||||
-- titleLabel:SetPoint ("center", titlebar , "center")
|
||||
-- titleLabel:SetPoint ("top", titlebar , "top", 0, -4)
|
||||
|
||||
--> close button
|
||||
--[=[]]
|
||||
f.Close = CreateFrame ("button", "$parentCloseButton", f)
|
||||
f.Close:SetPoint ("right", titlebar, "right", -2, 0)
|
||||
f.Close:SetSize (16, 16)
|
||||
|
||||
f.Close:SetNormalTexture (DF.folder .. "icons")
|
||||
f.Close:SetHighlightTexture (DF.folder .. "icons")
|
||||
f.Close:SetPushedTexture (DF.folder .. "icons")
|
||||
|
||||
f.Close:GetNormalTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetHighlightTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetPushedTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:SetAlpha (0.7)
|
||||
f.Close:SetScript ("OnClick", function() f:Hide() end)
|
||||
--]=]
|
||||
--[=[]]
|
||||
local closeButton = CreateFrame("button", "DetailsStatisticsWindowCloseButton", titlebar, "UIPanelCloseButton")
|
||||
closeButton:SetWidth(32)
|
||||
closeButton:SetHeight(32)
|
||||
closeButton:SetText("X")
|
||||
closeButton:SetFrameLevel(closeButton:GetFrameLevel()+2)
|
||||
|
||||
f.Close = closeButton
|
||||
--]=]
|
||||
|
||||
if (not Details:GetTutorialCVar ("HISTORYPANEL_TUTORIAL")) then
|
||||
local tutorialFrame = CreateFrame ("frame", "$parentTutorialFrame",f,"BackdropTemplate")
|
||||
|
||||
@@ -2027,12 +2027,14 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
||||
f.Close = CreateFrame ("button", "$parentCloseButton", f, "BackdropTemplate")
|
||||
f.Close:SetPoint ("right", f.TitleBar, "right", -2, 0)
|
||||
f.Close:SetSize (16, 16)
|
||||
f.Close:SetNormalTexture (_detalhes.gump.folder .. "icons")
|
||||
f.Close:SetHighlightTexture (_detalhes.gump.folder .. "icons")
|
||||
f.Close:SetPushedTexture (_detalhes.gump.folder .. "icons")
|
||||
f.Close:GetNormalTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetHighlightTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
f.Close:GetPushedTexture():SetTexCoord (0, 16/128, 0, 1)
|
||||
|
||||
f.Close:SetNormalTexture ([[Interface\GLUES\LOGIN\Glues-CheckBox-Check]])
|
||||
f.Close:SetHighlightTexture ([[Interface\GLUES\LOGIN\Glues-CheckBox-Check]])
|
||||
f.Close:SetPushedTexture ([[Interface\GLUES\LOGIN\Glues-CheckBox-Check]])
|
||||
f.Close:GetNormalTexture():SetDesaturated(true)
|
||||
f.Close:GetHighlightTexture():SetDesaturated(true)
|
||||
f.Close:GetPushedTexture():SetDesaturated(true)
|
||||
|
||||
f.Close:SetAlpha (0.7)
|
||||
f.Close:SetScript ("OnClick", function() f:Hide() end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user