KlazScipts/Modules/Automation/MailMoney.lua
2024-03-17 18:33:11 -04:00

15 lines
599 B
Lua

--------------------------------------------------------------------------------
-- # 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)