예제 #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)
 {
 }