Comparer les révisions
6 commits
Auteur | SHA1 | Date | |
---|---|---|---|
|
75a6297b97 | ||
01deecbfef | |||
35039ecba0 | |||
7ad34c7558 | |||
70622b9f88 | |||
b265b85f5d |
3 fichiers modifiés avec 16 ajouts et 32 suppressions
21
CHANGES.txt
21
CHANGES.txt
|
@ -1,21 +0,0 @@
|
||||||
------------------------------------------------------------------------
|
|
||||||
r410 | albirew | 2019-09-10 18:42:28 +0000 (Tue, 10 Sep 2019) | 1 line
|
|
||||||
Changed paths:
|
|
||||||
M /trunk/Postal.toc
|
|
||||||
M /trunk/Modules/BlackBook.lua
|
|
||||||
|
|
||||||
Fix Friend List and Update TOC for 8.2 and classic 1.13.2
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
r409 | nevcairiel | 2018-07-20 08:41:50 +0000 (Fri, 20 Jul 2018) | 1 line
|
|
||||||
Changed paths:
|
|
||||||
M /trunk/Postal.toc
|
|
||||||
|
|
||||||
Update TOC for 8.0
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
r408 | nevcairiel | 2018-07-18 16:41:01 +0000 (Wed, 18 Jul 2018) | 1 line
|
|
||||||
Changed paths:
|
|
||||||
M /trunk/Modules/BlackBook.lua
|
|
||||||
|
|
||||||
Fix Send Mail auto-complete
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
|
@ -297,7 +297,12 @@ function Postal_BlackBook:OnChar(editbox, ...)
|
||||||
local numBNetTotal, numBNetOnline = BNGetNumFriends()
|
local numBNetTotal, numBNetOnline = BNGetNumFriends()
|
||||||
for i = 1, numBNetOnline do
|
for i = 1, numBNetOnline do
|
||||||
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
|
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
|
||||||
if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(toonID)) then
|
if (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC) then
|
||||||
|
local accountID = toonID
|
||||||
|
else
|
||||||
|
local accountID = C_BattleNet.GetFriendAccountInfo(i)
|
||||||
|
end
|
||||||
|
if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(accountID)) then
|
||||||
if strfind(strupper(toonName), text, 1, 1) == 1 then
|
if strfind(strupper(toonName), text, 1, 1) == 1 then
|
||||||
newname = toonName
|
newname = toonName
|
||||||
break
|
break
|
||||||
|
@ -359,7 +364,8 @@ function Postal_BlackBook:SortAndCountNumFriends()
|
||||||
wipe(sorttable)
|
wipe(sorttable)
|
||||||
local numFriends = C_FriendList.GetNumFriends()
|
local numFriends = C_FriendList.GetNumFriends()
|
||||||
for i = 1, numFriends do
|
for i = 1, numFriends do
|
||||||
sorttable[i] = GetFriendInfo(i)
|
local friendInfo = C_FriendList.GetFriendInfoByIndex(i)
|
||||||
|
sorttable[i] = friendInfo.name
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Battle.net friends
|
-- Battle.net friends
|
||||||
|
@ -367,7 +373,12 @@ function Postal_BlackBook:SortAndCountNumFriends()
|
||||||
local numBNetTotal, numBNetOnline = BNGetNumFriends()
|
local numBNetTotal, numBNetOnline = BNGetNumFriends()
|
||||||
for i= 1, numBNetOnline do
|
for i= 1, numBNetOnline do
|
||||||
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
|
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
|
||||||
if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(toonID)) then
|
if (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC) then
|
||||||
|
local accountID = toonID
|
||||||
|
else
|
||||||
|
local accountID = C_BattleNet.GetFriendAccountInfo(i)
|
||||||
|
end
|
||||||
|
if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(accountID)) then
|
||||||
-- Check if already on friends list
|
-- Check if already on friends list
|
||||||
local alreadyOnList = false
|
local alreadyOnList = false
|
||||||
for j = 1, numFriends do
|
for j = 1, numFriends do
|
||||||
|
|
10
Postal.toc
10
Postal.toc
|
@ -1,12 +1,7 @@
|
||||||
#retail ## Interface: 80200
|
## Interface: 11305
|
||||||
## Interface: 11302
|
|
||||||
## Title: Postal
|
## Title: Postal
|
||||||
## Version: v3.6.1
|
## Version: v3.6.2a
|
||||||
## X-Build: 410
|
|
||||||
## X-ReleaseDate: 2018-07-20T8:41:50Z
|
|
||||||
## X-Revision: $Revision: 410 $
|
|
||||||
## Author: Xinhuan
|
## Author: Xinhuan
|
||||||
## X-Credits: Ammo, Rabbit, Grennon, Mikk, oscarucb
|
|
||||||
## X-Category: Mail
|
## X-Category: Mail
|
||||||
## Notes: Postal: Enhanced Mailbox support
|
## Notes: Postal: Enhanced Mailbox support
|
||||||
## Notes-ruRU: Postal: Расширенная поддержка почтового ящика
|
## Notes-ruRU: Postal: Расширенная поддержка почтового ящика
|
||||||
|
@ -20,7 +15,6 @@
|
||||||
|
|
||||||
## LoadManagers: AddonLoader
|
## LoadManagers: AddonLoader
|
||||||
## X-LoadOn-Mailbox: true
|
## X-LoadOn-Mailbox: true
|
||||||
## X-Email: xinhuan AT gmail DOT com
|
|
||||||
|
|
||||||
#@no-lib-strip@
|
#@no-lib-strip@
|
||||||
Libs\LibStub\LibStub.lua
|
Libs\LibStub\LibStub.lua
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket