This commit is contained in:
Pinya
2018-11-27 02:49:07 +03:00
parent cd7576e8c0
commit 2397cf0cbd
4 changed files with 7 additions and 7 deletions
@@ -74,7 +74,7 @@ Constructor
-------------------------------------------------------------------------------]] -------------------------------------------------------------------------------]]
local function Constructor() local function Constructor()
local name = "AceGUI30Button" .. AceGUI:GetNextWidgetNum(Type) local name = "AceGUI30Button" .. AceGUI:GetNextWidgetNum(Type)
local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate") local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate2")
frame:Hide() frame:Hide()
frame:EnableMouse(true) frame:EnableMouse(true)
@@ -64,9 +64,9 @@ if not AceGUIEditBoxInsertLink then
hooksecurefunc("SetItemRef", function(link, text, button) hooksecurefunc("SetItemRef", function(link, text, button)
if IsShiftKeyDown() then if IsShiftKeyDown() then
if strsub(link,1,6) == "player" then if sub(link, 1, 6) == "player" then
local name = strsub(link,8) local name = sub(link, 8)
if name and (strlen(name) > 0) then if name and name ~= "" then
return _G.AceGUIEditBoxInsertLink(name) return _G.AceGUIEditBoxInsertLink(name)
end end
else else
@@ -116,7 +116,7 @@ if not AceGUIEditBoxInsertLink then
if id <= MAX_SPELLS and (not drag) and IsShiftKeyDown() then if id <= MAX_SPELLS and (not drag) and IsShiftKeyDown() then
local spellName, subSpellName = GetSpellName(id, SpellBookFrame.bookType) local spellName, subSpellName = GetSpellName(id, SpellBookFrame.bookType)
if spellName and not IsSpellPassive(id, SpellBookFrame.bookType) then 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..")") _G.AceGUIEditBoxInsertLink(spellName.."("..subSpellName..")")
else else
_G.AceGUIEditBoxInsertLink(spellName) _G.AceGUIEditBoxInsertLink(spellName)
@@ -192,7 +192,7 @@ local function Constructor()
local name = "AceGUI30KeybindingButton" .. AceGUI:GetNextWidgetNum(Type) local name = "AceGUI30KeybindingButton" .. AceGUI:GetNextWidgetNum(Type)
local frame = CreateFrame("Frame", nil, UIParent) local frame = CreateFrame("Frame", nil, UIParent)
local button = CreateFrame("Button", name, frame, "UIPanelButtonTemplate") local button = CreateFrame("Button", name, frame, "UIPanelButtonTemplate2")
button:EnableMouse(true) button:EnableMouse(true)
button:EnableMouseWheel(false) button:EnableMouseWheel(false)
@@ -113,7 +113,7 @@ if not AceGUIMultiLineEditBoxInsertLink then
if id <= MAX_SPELLS and (not drag) and IsShiftKeyDown() then if id <= MAX_SPELLS and (not drag) and IsShiftKeyDown() then
local spellName, subSpellName = GetSpellName(id, SpellBookFrame.bookType) local spellName, subSpellName = GetSpellName(id, SpellBookFrame.bookType)
if spellName and not IsSpellPassive(id, SpellBookFrame.bookType) then 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..")") _G.AceGUIMultiLineEditBoxInsertLink(spellName.."("..subSpellName..")")
else else
_G.AceGUIMultiLineEditBoxInsertLink(spellName) _G.AceGUIMultiLineEditBoxInsertLink(spellName)