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_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
- -- 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