From 2397cf0cbd5210a1648be3f622a68da9f5f93146 Mon Sep 17 00:00:00 2001 From: Pinya <800pin.ru@gmail.com> Date: Tue, 27 Nov 2018 02:49:07 +0300 Subject: [PATCH] ^_^ --- .../Libraries/AceGUI-3.0/widgets/AceGUIWidget-Button.lua | 2 +- .../Libraries/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | 8 ++++---- .../AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 2 +- .../AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Button.lua b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Button.lua index 97d379e..8d1eca9 100644 --- a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Button.lua +++ b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Button.lua @@ -74,7 +74,7 @@ Constructor -------------------------------------------------------------------------------]] local function Constructor() local name = "AceGUI30Button" .. AceGUI:GetNextWidgetNum(Type) - local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate") + local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate2") frame:Hide() frame:EnableMouse(true) diff --git a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua index d94dc74..78c47c8 100644 --- a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua +++ b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua @@ -64,9 +64,9 @@ if not AceGUIEditBoxInsertLink then hooksecurefunc("SetItemRef", function(link, text, button) if IsShiftKeyDown() then - if strsub(link,1,6) == "player" then - local name = strsub(link,8) - if name and (strlen(name) > 0) then + if sub(link, 1, 6) == "player" then + local name = sub(link, 8) + if name and name ~= "" then return _G.AceGUIEditBoxInsertLink(name) end else @@ -116,7 +116,7 @@ if not AceGUIEditBoxInsertLink then if id <= MAX_SPELLS and (not drag) and IsShiftKeyDown() then local spellName, subSpellName = GetSpellName(id, SpellBookFrame.bookType) if spellName and not IsSpellPassive(id, SpellBookFrame.bookType) then - if subSpellName and (strlen(subSpellName) > 0) then + if subSpellName and subSpellName ~= "" then _G.AceGUIEditBoxInsertLink(spellName.."("..subSpellName..")") else _G.AceGUIEditBoxInsertLink(spellName) diff --git a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua index 72f4536..ff061d1 100644 --- a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua +++ b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua @@ -192,7 +192,7 @@ local function Constructor() local name = "AceGUI30KeybindingButton" .. AceGUI:GetNextWidgetNum(Type) local frame = CreateFrame("Frame", nil, UIParent) - local button = CreateFrame("Button", name, frame, "UIPanelButtonTemplate") + local button = CreateFrame("Button", name, frame, "UIPanelButtonTemplate2") button:EnableMouse(true) button:EnableMouseWheel(false) diff --git a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua index 0f8e516..1ff4b1a 100644 --- a/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua +++ b/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-MultiLineEditBox.lua @@ -113,7 +113,7 @@ if not AceGUIMultiLineEditBoxInsertLink then if id <= MAX_SPELLS and (not drag) and IsShiftKeyDown() then local spellName, subSpellName = GetSpellName(id, SpellBookFrame.bookType) if spellName and not IsSpellPassive(id, SpellBookFrame.bookType) then - if subSpellName and (strlen(subSpellName) > 0) then + if subSpellName and subSpellName ~= "" then _G.AceGUIMultiLineEditBoxInsertLink(spellName.."("..subSpellName..")") else _G.AceGUIMultiLineEditBoxInsertLink(spellName)