From e6511163b7fb594903ba6ab6554d4e00c16e3649 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 1 Sep 2022 19:56:19 -0300 Subject: [PATCH] Fixes (5) --- core/windows.lua | 4 ++-- frames/window_report.lua | 2 +- functions/savedata.lua | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/windows.lua b/core/windows.lua index c51be1cc..912b6e1a 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -1249,7 +1249,7 @@ _detalhes:OpenOptionsWindow (_detalhes:GetInstance (lower_instance)) end) --> create new window - f.new_window_button = CreateFrame ("button", nil, f, "OptionsButtonTemplate") + f.new_window_button = CreateFrame ("button", nil, f) f.new_window_button:SetText (Loc ["STRING_MINIMAPMENU_NEWWINDOW"]) f.new_window_button:SetPoint ("topleft", f, "topleft", 10, -125) f.new_window_button:SetWidth (170) @@ -1300,7 +1300,7 @@ end) editbox.text = "http://www.curse.com/addons/wow/details" - updatewindow_frame.close = CreateFrame ("Button", "DetailsUpdateDialogCloseButton", updatewindow_frame, "OptionsButtonTemplate") + updatewindow_frame.close = CreateFrame ("Button", "DetailsUpdateDialogCloseButton", updatewindow_frame) updatewindow_frame.close:SetPoint ("bottomleft", updatewindow_frame, "bottomleft", 8, 4) updatewindow_frame.close:SetText ("Close") diff --git a/frames/window_report.lua b/frames/window_report.lua index 162a35f4..908f60e9 100644 --- a/frames/window_report.lua +++ b/frames/window_report.lua @@ -1088,7 +1088,7 @@ local function cria_drop_down (este_gump) cria_wisper_field (window) cria_check_buttons (window) - window.enviar = _CreateFrame ("Button", nil, window, "OptionsButtonTemplate,BackdropTemplate") + window.enviar = _CreateFrame ("Button", nil, window, "BackdropTemplate") window.enviar:SetPoint ("topleft", window.editbox, "topleft", 61, -19) window.enviar:SetWidth (60) window.enviar:SetHeight (15) diff --git a/functions/savedata.lua b/functions/savedata.lua index 3eb1e880..1df820da 100644 --- a/functions/savedata.lua +++ b/functions/savedata.lua @@ -5,9 +5,11 @@ local _detalhes = _G._detalhes function _detalhes:WipeConfig() local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) - local b = CreateFrame ("button", "DetailsResetConfigButton", UIParent, "OptionsButtonTemplate") + local b = CreateFrame ("button", "DetailsResetConfigButton", UIParent) tinsert (UISpecialFrames, "DetailsResetConfigButton") + DetailsFramework:ApplyStandardBackdrop(b) + b:SetSize (250, 40) b:SetText (Loc ["STRING_SLASH_WIPECONFIG_CONFIRM"]) b:SetScript ("OnClick", function() _detalhes.wipe_full_config = true; ReloadUI(); end)