mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 16:55:29 +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
|
||||
DressUpItemLink(frame.link)
|
||||
elseif IsShiftKeyDown() then
|
||||
ChatEdit_InsertLink(frame.link)
|
||||
if ChatEdit_InsertLink then
|
||||
ChatEdit_InsertLink(frame.link)
|
||||
elseif ChatFrameEditBox and ChatFrameEditBox:IsVisible() then
|
||||
ChatFrameEditBox:Insert(frame.link)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -221,10 +221,13 @@ local function LoadSkin()
|
||||
QuestRewardText:SetTextColor(unpack(textColor))
|
||||
|
||||
if GetQuestLogRequiredMoney() > 0 then
|
||||
if GetQuestLogRequiredMoney() > GetMoney() then
|
||||
QuestInfoRequiredMoneyText:SetTextColor(0.6, 0.6, 0.6)
|
||||
else
|
||||
QuestInfoRequiredMoneyText:SetTextColor(1, 0.80, 0.10)
|
||||
local moneyText = QuestInfoRequiredMoneyText or QuestLogRequiredMoneyText
|
||||
if moneyText then
|
||||
if GetQuestLogRequiredMoney() > GetMoney() then
|
||||
moneyText:SetTextColor(0.6, 0.6, 0.6)
|
||||
else
|
||||
moneyText:SetTextColor(1, 0.80, 0.10)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user