SHOW:
|
|
- or go back to the newest paste.
| 1 | GlueParent.lua | |
| 2 | ||
| 3 | elseif ( event == "ACCOUNT_MESSAGES_AVAILABLE" ) then | |
| 4 | -- ACCOUNT_MSG_NUM_AVAILABLE = arg1; | |
| 5 | ACCOUNT_MSG_HEADERS_LOADED = false; | |
| 6 | - | ACCOUNT_MESSAGE_BODY_NO_READ_URL = "http://www.chaoticunited.com/wow/accountmessaging/getMessageBody.xml"; |
| 6 | + | |
| 7 | - | ACCOUNT_MESSAGE_BODY_URL = "http://www.chaoticunited.com/wow/accountmessaging/getMessageBodyUnread.xml"; -- not sure what this is for |
| 7 | + | |
| 8 | - | ACCOUNT_MESSAGE_BUTTON_READ = "Mark as read"; |
| 8 | + | |
| 9 | - | ACCOUNT_MESSAGE_HEADERS_URL = "http://www.chaoticunited.com/wow/accountmessaging/getMessageHeaders.xml"; |
| 9 | + | |
| 10 | - | ACCOUNT_MESSAGE_READ_URL = "http://www.chaoticunited.com/wow/accountmessaging/markMessageAsRead.xml"; |
| 10 | + | |
| 11 | - | |
| 11 | + | |
| 12 | ACCOUNT_MSG_CURRENT_INDEX = AccountMsg_GetIndexNextUnreadMsg(); | |
| 13 | if ( ACCOUNT_MSG_NUM_AVAILABLE > 0 ) then | |
| 14 | AccountMsg_LoadBody( ACCOUNT_MSG_CURRENT_INDEX ); | |
| 15 | end | |
| 16 | elseif ( event == "ACCOUNT_MESSAGES_BODY_LOADED" ) then | |
| 17 | ACCOUNT_MSG_BODY_LOADED = true; | |
| 18 | end | |
| 19 | ||
| 20 | CharacterSelect.lua | |
| 21 | ||
| 22 | -- Account Msg stuff | |
| 23 | if ( (ACCOUNT_MSG_NUM_AVAILABLE > 0) and not GlueDialog:IsShown() ) then | |
| 24 | if ( ACCOUNT_MSG_HEADERS_LOADED ) then | |
| 25 | if ( ACCOUNT_MSG_BODY_LOADED ) then | |
| 26 | local dialogString = AccountMsg_GetHeaderSubject( ACCOUNT_MSG_CURRENT_INDEX ).."\n\n"..AccountMsg_GetBody(); | |
| 27 | GlueDialog_Show("ACCOUNT_MSG", dialogString);
| |
| 28 | end | |
| 29 | - | --GlueDialog_Show("ACCOUNT_MSG", tostring(ACCOUNT_MSG_NUM_AVAILABLE));
|
| 29 | + | |
| 30 | end |