From 6c086641c9428112977be1474076c5447a43aaec Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 30 Nov 2016 22:55:46 +0100 Subject: [PATCH] the inbox now updates automatically when new mail can be retrieved --- Postal.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Postal.lua b/Postal.lua index 180e9fb..e131ec2 100644 --- a/Postal.lua +++ b/Postal.lua @@ -191,8 +191,10 @@ function hook.InboxFrameItem_OnEnter() GameTooltip:Show() end +CreateFrame('Frame', InboxFrame):SetScript('OnUpdate', CheckInbox) + function Inbox_Load() - MailItem1:SetPoint('TOPLEFT', 'InboxFrame', 'TOPLEFT', 48, -80) + MailItem1:SetPoint('TOPLEFT', InboxFrame, 'TOPLEFT', 48, -80) for i = 1, 7 do _G['MailItem' .. i .. 'ExpireTime']:SetPoint('TOPRIGHT', 'MailItem' .. i, 'TOPRIGHT', 10, -4) _G['MailItem' .. i]:SetWidth(280)