OpenMetaverse.AgentManager.ReplyToScriptDialog C# (CSharp) Method

ReplyToScriptDialog() public method

Reply to script dialog questions.
public ReplyToScriptDialog ( int channel, int buttonIndex, string buttonlabel, UUID objectID ) : void
channel int Channel initial request came on
buttonIndex int Index of button you're "clicking"
buttonlabel string Label of button you're "clicking"
objectID UUID of Object that sent the dialog request
return void
        public void ReplyToScriptDialog(int channel, int buttonIndex, string buttonlabel, UUID objectID)
        {
            ScriptDialogReplyPacket reply = new ScriptDialogReplyPacket();

            reply.AgentData.AgentID = Client.Self.AgentID;
            reply.AgentData.SessionID = Client.Self.SessionID;

            reply.Data.ButtonIndex = buttonIndex;
            reply.Data.ButtonLabel = Utils.StringToBytes(buttonlabel);
            reply.Data.ChatChannel = channel;
            reply.Data.ObjectID = objectID;

            Client.Network.SendPacket(reply);
        }