mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
Merge branch 'master' into dev
This commit is contained in:
@@ -74,7 +74,7 @@ Constructor
|
||||
-------------------------------------------------------------------------------]]
|
||||
local function Constructor()
|
||||
local name = "AceGUI30Button" .. AceGUI:GetNextWidgetNum(Type)
|
||||
local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate2")
|
||||
local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate")
|
||||
frame:Hide()
|
||||
|
||||
frame:EnableMouse(true)
|
||||
|
||||
@@ -722,7 +722,7 @@ do
|
||||
self.text = text
|
||||
text.obj = self
|
||||
text:ClearAllPoints()
|
||||
text:SetPoint("RIGHT", right, "RIGHT" ,-46, 2)
|
||||
text:SetPoint("RIGHT", right, "RIGHT" ,-43, 2)
|
||||
text:SetPoint("LEFT", left, "LEFT", 25, 2)
|
||||
|
||||
local label = frame:CreateFontString(nil,"OVERLAY","GameFontNormalSmall")
|
||||
|
||||
@@ -64,9 +64,9 @@ if not AceGUIEditBoxInsertLink then
|
||||
|
||||
hooksecurefunc("SetItemRef", function(link, text, button)
|
||||
if IsShiftKeyDown() then
|
||||
if sub(link, 1, 6) == "player" then
|
||||
local name = sub(link, 8)
|
||||
if name and name ~= "" then
|
||||
if strsub(link,1,6) == "player" then
|
||||
local name = strsub(link,8)
|
||||
if name and (strlen(name) > 0) 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 subSpellName ~= "" then
|
||||
if subSpellName and (strlen(subSpellName) > 0) then
|
||||
_G.AceGUIEditBoxInsertLink(spellName.."("..subSpellName..")")
|
||||
else
|
||||
_G.AceGUIEditBoxInsertLink(spellName)
|
||||
|
||||
@@ -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, "UIPanelButtonTemplate2")
|
||||
local button = CreateFrame("Button", name, frame, "UIPanelButtonTemplate")
|
||||
|
||||
button:EnableMouse(true)
|
||||
button:EnableMouseWheel(false)
|
||||
|
||||
@@ -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 subSpellName ~= "" then
|
||||
if subSpellName and (strlen(subSpellName) > 0) then
|
||||
_G.AceGUIMultiLineEditBoxInsertLink(spellName.."("..subSpellName..")")
|
||||
else
|
||||
_G.AceGUIMultiLineEditBoxInsertLink(spellName)
|
||||
|
||||
@@ -139,6 +139,7 @@ local methods = {
|
||||
self.disabled = disabled
|
||||
if disabled then
|
||||
self.slider:EnableMouse(false)
|
||||
self.slider:GetThumbTexture():SetDesaturated(true) -- ElvUI
|
||||
self.label:SetTextColor(.5, .5, .5)
|
||||
self.hightext:SetTextColor(.5, .5, .5)
|
||||
self.lowtext:SetTextColor(.5, .5, .5)
|
||||
@@ -148,6 +149,7 @@ local methods = {
|
||||
self.editbox:ClearFocus()
|
||||
else
|
||||
self.slider:EnableMouse(true)
|
||||
self.slider:GetThumbTexture():SetDesaturated(false) -- ElvUI
|
||||
self.label:SetTextColor(1, .82, 0)
|
||||
self.hightext:SetTextColor(1, 1, 1)
|
||||
self.lowtext:SetTextColor(1, 1, 1)
|
||||
|
||||
Reference in New Issue
Block a user