Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GlueParent.lua
- elseif ( event == "ACCOUNT_MESSAGES_AVAILABLE" ) then
- -- ACCOUNT_MSG_NUM_AVAILABLE = arg1;
- ACCOUNT_MESSAGE_BODY_NO_READ_URL = "http://www.chaoticunited.com/wow/accountmessaging/getMessageBody.xml";
- ACCOUNT_MESSAGE_BODY_URL = "http://www.chaoticunited.com/wow/accountmessaging/getMessageBodyUnread.xml"; -- not sure what this is for
- ACCOUNT_MESSAGE_BUTTON_READ = "Mark as read";
- ACCOUNT_MESSAGE_HEADERS_URL = "http://www.chaoticunited.com/wow/accountmessaging/getMessageHeaders.xml";
- ACCOUNT_MESSAGE_READ_URL = "http://www.chaoticunited.com/wow/accountmessaging/markMessageAsRead.xml";
- ACCOUNT_MSG_HEADERS_LOADED = false;
- ACCOUNT_MSG_BODY_LOADED = false;
- ACCOUNT_MSG_CURRENT_INDEX = nil;
- AccountMsg_LoadHeaders();
- elseif ( event == "ACCOUNT_MESSAGES_HEADERS_LOADED" ) then
- ACCOUNT_MSG_HEADERS_LOADED = true;
- ACCOUNT_MSG_NUM_AVAILABLE = AccountMsg_GetNumUnreadMsgs();
- ACCOUNT_MSG_CURRENT_INDEX = AccountMsg_GetIndexNextUnreadMsg();
- if ( ACCOUNT_MSG_NUM_AVAILABLE > 0 ) then
- AccountMsg_LoadBody( ACCOUNT_MSG_CURRENT_INDEX );
- end
- elseif ( event == "ACCOUNT_MESSAGES_BODY_LOADED" ) then
- ACCOUNT_MSG_BODY_LOADED = true;
- end
- CharacterSelect.lua
- --GlueDialog_Show("ACCOUNT_MSG", tostring(ACCOUNT_MSG_NUM_AVAILABLE));
- -- Account Msg stuff
- if ( (ACCOUNT_MSG_NUM_AVAILABLE > 0) and not GlueDialog:IsShown() ) then
- if ( ACCOUNT_MSG_HEADERS_LOADED ) then
- if ( ACCOUNT_MSG_BODY_LOADED ) then
- local dialogString = AccountMsg_GetHeaderSubject( ACCOUNT_MSG_CURRENT_INDEX ).."\n\n"..AccountMsg_GetBody();
- GlueDialog_Show("ACCOUNT_MSG", dialogString);
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment