ChatGui.OnStatusUpdate C# (CSharp) Method

OnStatusUpdate() public method

public OnStatusUpdate ( string user, int status, bool gotMessage, object message ) : void
user string
status int
gotMessage bool
message object
return void
    public void OnStatusUpdate(string user, int status, bool gotMessage, object message)
    {
        // this is how you get status updates of friends.
        // this demo simply adds status updates to the currently shown chat.
        // you could buffer them or use them any other way, too.

        ChatChannel activeChannel = this.selectedChannel;
        if (activeChannel != null)
        {
            activeChannel.Add("info", string.Format("{0} is {1}. Msg:{2}", user, status, message));
        }
        
        Debug.LogWarning("status: " + string.Format("{0} is {1}. Msg:{2}", user, status, message));
    }
}