mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
fix: resolve nil QuestInfoRequiredMoneyText and ChatEdit_InsertLink crashes
This commit is contained in:
@@ -111,7 +111,11 @@ local function LootClick(frame)
|
|||||||
if IsControlKeyDown() then
|
if IsControlKeyDown() then
|
||||||
DressUpItemLink(frame.link)
|
DressUpItemLink(frame.link)
|
||||||
elseif IsShiftKeyDown() then
|
elseif IsShiftKeyDown() then
|
||||||
|
if ChatEdit_InsertLink then
|
||||||
ChatEdit_InsertLink(frame.link)
|
ChatEdit_InsertLink(frame.link)
|
||||||
|
elseif ChatFrameEditBox and ChatFrameEditBox:IsVisible() then
|
||||||
|
ChatFrameEditBox:Insert(frame.link)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -221,10 +221,13 @@ local function LoadSkin()
|
|||||||
QuestRewardText:SetTextColor(unpack(textColor))
|
QuestRewardText:SetTextColor(unpack(textColor))
|
||||||
|
|
||||||
if GetQuestLogRequiredMoney() > 0 then
|
if GetQuestLogRequiredMoney() > 0 then
|
||||||
|
local moneyText = QuestInfoRequiredMoneyText or QuestLogRequiredMoneyText
|
||||||
|
if moneyText then
|
||||||
if GetQuestLogRequiredMoney() > GetMoney() then
|
if GetQuestLogRequiredMoney() > GetMoney() then
|
||||||
QuestInfoRequiredMoneyText:SetTextColor(0.6, 0.6, 0.6)
|
moneyText:SetTextColor(0.6, 0.6, 0.6)
|
||||||
else
|
else
|
||||||
QuestInfoRequiredMoneyText:SetTextColor(1, 0.80, 0.10)
|
moneyText:SetTextColor(1, 0.80, 0.10)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user