KlazScipts/Modules/Automation/MailMoney.lua

15 lines
599 B
Lua
Raw Permalink Normal View History

2024-03-17 22:33:11 +00:00
--------------------------------------------------------------------------------
-- # MODULES > AUTOMATION > MAIL MONEY
--------------------------------------------------------------------------------
-- automatically enters subject line when sending money
local function MailSubject(self)
if self:GetText() ~= '' and SendMailSubjectEditBox:GetText() == '' then
SendMailSubjectEditBox:SetText(MONEY)
end
end
SendMailMoneyGold:HookScript('OnTextChanged', MailSubject)
SendMailMoneySilver:HookScript('OnTextChanged', MailSubject)
SendMailMoneyCopper:HookScript('OnTextChanged', MailSubject)