Пример #1
0
 public Record(IToggle toggle, SandboxControl control, IPrim hostPrim, IPrimFactory factory, IConfig controlConfig)
     : base(toggle)
 {
     _control = control;
     _save = new SaveDialog(hostPrim, factory, "sequence", control.DefaultRecordingName, name => control.Record.GetUserFolder(name));
     _save.OnSave += (name, id, file) => control.Record.SaveRecording(name, file);
 }
Пример #2
0
 public Delete(IButton button, SandboxControl control, UUID owner)
     : base(button)
 {
     _control = control;
     _control.State.AddStateButton(owner, button);
     button.SetVisualState(_control.Fade, 0);
 }
 public SandboxControlLink(ILink link, INode from, INode to, SandboxControl control, IKeyTableFactory tableFactory, IPrimFactory primFactory, IPermissions permissions)
     : base(link, from, to, control, permissions)
 {
     _control = control;
     _bufferedChanges = tableFactory.MakeKeyTable<double>();
     _dialog = new Dialog(control.HostPrim, primFactory, LINK_BUTTONS);
     _dialog.ResponseReceived += DialogPressed;
 }
Пример #4
0
 public ModifyLinks(IButton button, SandboxControl control, IPrimFactory factory)
     : base(button)
 {
     _control = control;
     _dialog = new Dialog(button.Prims.Count() > 0 ? button.Prims.First() : factory.Host, factory, SandboxControlLink.UNIT, SandboxControlLink.LENGTH, SandboxControlLink.RANDOM, Dialog.CANCEL);
     _dialog.ResponseReceived += (name, id, text, chat) => {
         switch (text) {
             case SandboxControlLink.UNIT:
                 SandboxControlLink.SetType(name, id, ControlLink.LinkType.Unit, _control, GetParameters(id));
                 break;
             case SandboxControlLink.RANDOM:
                 SandboxControlLink.SetType(name, id, ControlLink.LinkType.Random, _control, GetParameters(id));
                 break;
             case SandboxControlLink.LENGTH:
                 SandboxControlLink.SetType(name, id, ControlLink.LinkType.Length, _control, GetParameters(id));
                 break;
         }
     };
 }
 public SandboxControlNode(INode n, Vector3 pos, SandboxControl control, IPermissions permissions)
     : base(n, control, permissions)
 {
     _control = control;
 }
Пример #6
0
 public Floor(IButton button, SandboxControl control)
     : base(button)
 {
     _control = control;
 }
 public SandboxControlRouter(INode node, Vector3 pos, SandboxControl control, IPermissions permissions)
     : base(node, pos, control, permissions)
 {
 }
Пример #8
0
 public Save(IButton button, SandboxControl control, IPrimFactory factory, IConfig controlConfig)
     : base(button)
 {
     _save = new SaveDialog(button.Prims.Count() > 0 ? button.Prims.First() : factory.Host, factory, "topology", control.DefaultTopologyName, name => control.Topology.GetUserFolder(name));
     _save.OnSave += (name, id, file) => control.Topology.SaveTopology(name, id, file);
 }
Пример #9
0
 public Create(IButton button, SandboxControl control, IPrimFactory factory)
     : base(button)
 {
     _control = control;
     _factory = factory;
 }
 public SandboxControlEP(INode node, Vector3 pos, SandboxControl control, IConfig controlConfig, IPermissions permissions)
     : base(node, pos, control, permissions)
 {
 }