/// <summary> /// Start recording all user triggered events. /// </summary> public void StartRecording() { if (!_recordingEnabled) { _hostPrim.Say("Recording has beeen disabled in the configuration."); return; } if (_recordingEnabled) { _currentlyRecording = true; _baseWriter.StartRecording(); foreach (IXmlLogWriter writer in _writers) { writer.StartRecording(_baseWriter.Log); } } }
public LockedPermissions(IPrimFactory factory, IConfigSource config, IPrim host, Control.Impl.Module.Control control) { _ownerID = UUID.Zero; _host = host; IConfig controlConfig = config.Configs["Control"]; double fade = controlConfig.GetDouble("LockFade", control.Fade); double glow = controlConfig.GetDouble("LockGlow", control.ToggleGlow); _lockWait = controlConfig.GetInt("ControlsLockTimeout", 300000); _lockToggle = new Toggle(factory.MakeButton("Lock", new LockPermissions(this)), fade, glow); _lockToggle.OnToggledOn += (source, args) => SetCurrentOwner(args.ID, args.Name); _lockToggle.OnToggledOff += (source, args) => { _ownerID = UUID.Zero; _host.Say(_ownerName + " relinquished control of sandbox."); JM726.Lib.Static.Util.Wake(this); }; _lockToggle.OnTouched += (source, args) => { if (_Locked && !args.AvatarID.Equals(_ownerID)) _host.Say("Unable to take control of sandbox. Sandbox is currently locked to '" + _ownerName + "'."); }; }
public LockedPermissions(IPrimFactory factory, IConfigSource config, IPrim host, Control.Impl.Module.Control control) { _ownerID = UUID.Zero; _host = host; IConfig controlConfig = config.Configs["Control"]; double fade = controlConfig.GetDouble("LockFade", control.Fade); double glow = controlConfig.GetDouble("LockGlow", control.ToggleGlow); _lockWait = controlConfig.GetInt("ControlsLockTimeout", 300000); _lockToggle = new Toggle(factory.MakeButton("Lock", new LockPermissions(this)), fade, glow); _lockToggle.OnToggledOn += (source, args) => SetCurrentOwner(args.ID, args.Name); _lockToggle.OnToggledOff += (source, args) => { _ownerID = UUID.Zero; _host.Say(_ownerName + " relinquished control of sandbox."); JM726.Lib.Static.Util.Wake(this); }; _lockToggle.OnTouched += (source, args) => { if (_Locked && !args.AvatarID.Equals(_ownerID)) { _host.Say("Unable to take control of sandbox. Sandbox is currently locked to '" + _ownerName + "'."); } }; }
private void NotifyChannel() { Thread t = new Thread(() => { _host.Say(INIT_CHANNEL, string.Format("{0},{1}", INIT, _channel)); _requesting = true; JM726.Lib.Static.Util.Wait(500); _requesting = false; if (_requestedButtons.Count > 0) { NotifyChannel(); } }); t.Name = "Button request thread."; if (_cont) { t.Start(); } }
protected override void Touched(UUID entity, TouchEventArgs args) { _control.Wait -= TimeInc; _hostPrim.Say("Removed " + TimeInc + " to wait to make " + _control.Wait); }
private void Say(string msg) { Logger.Info(msg); _hostPrim.Say(msg); }
public override void Say(string msg) { _prim.Say(msg); }