public ntfPermissions(RadegastInstance instance, Simulator simulator, UUID taskID, UUID itemID, string objectName, string objectOwner, ScriptPermission questions) : base(NotificationType.PermissionsRequest) { InitializeComponent(); this.instance = instance; this.simulator = simulator; this.taskID = taskID; this.itemID = itemID; this.objectName = objectName; this.objectOwner = objectOwner; this.questions = questions; txtMessage.BackColor = instance.MainForm.NotificationBackground; txtMessage.Text = "Object " + objectName + " owned by " + objectOwner + " is asking permission to " + questions.ToString() + ". Do you accept?"; // Fire off event NotificationEventArgs args = new NotificationEventArgs(instance); args.Text = txtMessage.Text; args.Buttons.Add(btnYes); args.Buttons.Add(btnNo); args.Buttons.Add(btnMute); FireNotificationCallback(args); Radegast.GUI.GuiHelpers.ApplyGuiFixes(this); }
public ntfPermissions(RadegastInstance instance, Simulator simulator, UUID taskID, UUID itemID, string objectName, string objectOwner, ScriptPermission questions) : base(NotificationType.PermissionsRequest) { InitializeComponent(); this.instance = instance; this.simulator = simulator; this.taskID = taskID; this.itemID = itemID; this.objectName = objectName; this.objectOwner = objectOwner; this.questions = questions; txtMessage.BackColor = instance.MainForm.NotificationBackground; txtMessage.Text = "Object " + objectName + " owned by " + objectOwner + " is asking permission to " + questions.ToString() + ". Do you accept?"; // Fire off event NotificationEventArgs args = new NotificationEventArgs(instance); args.Text = txtMessage.Text; args.Buttons.Add(btnYes); args.Buttons.Add(btnNo); args.Buttons.Add(btnMute); FireNotificationCallback(args); }
public ScriptQuestionEventArgs(Simulator simulator, UUID taskID, UUID itemID, string objectName, string objectOwner, ScriptPermission questions) { this.simulator = simulator; this.taskID = taskID; this.itemID = itemID; this.objectName = objectName; this.objectOwner = objectOwner; this.questions = questions; }
/// <summary> /// Construct a new instance of the ScriptQuestionEventArgs /// </summary> /// <param name="simulator">The simulator containing the object sending the request</param> /// <param name="taskID">The ID of the script making the request</param> /// <param name="itemID">The ID of the primitive containing the script making the request</param> /// <param name="objectName">The name of the primitive making the request</param> /// <param name="objectOwner">The name of the owner of the object making the request</param> /// <param name="questions">The permissions being requested</param> public ScriptQuestionEventArgs(Simulator simulator, UUID taskID, UUID itemID, string objectName, string objectOwner, ScriptPermission questions) { this.m_Simulator = simulator; this.m_TaskID = taskID; this.m_ItemID = itemID; this.m_ObjectName = objectName; this.m_ObjectOwnerName = objectOwner; this.m_Questions = questions; }
/// <summary> /// Reply to script permissions request /// </summary> /// <param name="simulator"><seealso cref="T:OpenMetaverse.Simulator"/> Object</param> /// <param name="itemID"><seealso cref="UUID"/> of the itemID requesting permissions</param> /// <param name="taskID"><seealso cref="UUID"/> of the taskID requesting permissions</param> /// <param name="permissions"><seealso cref="OpenMetaverse.ScriptPermission"/> list of permissions to allow</param> public void ScriptQuestionReply(Simulator simulator, UUID itemID, UUID taskID, ScriptPermission permissions) { ScriptAnswerYesPacket yes = new ScriptAnswerYesPacket(); yes.AgentData.AgentID = Client.Self.AgentID; yes.AgentData.SessionID = Client.Self.SessionID; yes.Data.ItemID = itemID; yes.Data.TaskID = taskID; yes.Data.Questions = (int)permissions; Client.Network.SendPacket(yes, simulator); }
public void Self_OnScriptQuestion(Simulator simulator, LLUUID taskID, LLUUID itemID, string objectName, string objectOwner, ScriptPermission questions) { Hashtable item = new Hashtable(); item.Add("MessageType", "ScriptPermissionRequest"); item.Add("TaskID", taskID); item.Add("ItemID", itemID); item.Add("ObjectName", objectName); item.Add("ObjectOwner", objectOwner); item.Add("Permissions", (int)questions); enqueue(item); }
void Self_OnScriptQuestion(Simulator simulator, UUID taskID, UUID itemID, string objectName, string objectOwner, ScriptPermission questions) { //FIXME - move to display Console.WriteLine(objectName + " owned by " + objectOwner + " has requested the following permissions: " + questions.ToString()); }