예제 #1
0
 public Play(IButton button, SandboxControl control, UUID owner)
     : base(button)
 {
     _control = control;
     _control.State.AddStateButton(owner, button);
     button.SetVisualState(_control.Fade, 0);
 }
예제 #2
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.GetFolder(name));
     _save.OnSave += (name, id, file) => control.Record.SaveRecording(name, file);
 }
 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;
                }
            };
        }
예제 #5
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.GetFolder(name));
     _save.OnSave += (name, id, file) => control.Topology.SaveTopology(name, id, file);
 }
예제 #6
0
 public SandboxTopologyManager(IConfig config, SandboxControl control)
     : base(config, control)
 {
     _control = control;
 }
 public SandboxControlEP(INode node, Vector3 pos, SandboxControl control, IConfig controlConfig, IPermissions permissions)
     : base(node, pos, control, permissions)
 {
 }
예제 #8
0
 public Create(IButton button, SandboxControl control, IPrimFactory factory)
     : base(button)
 {
     _control = control;
     _factory = factory;
 }
예제 #9
0
 public SandboxControlRouter(INode node, Vector3 pos, SandboxControl control, IPermissions permissions)
     : base(node, pos, control, permissions)
 {
 }
 public SandboxControlNode(INode n, Vector3 pos, SandboxControl control, IPermissions permissions)
     : base(n, control, permissions)
 {
     _control = control;
 }
예제 #11
0
 public Floor(IButton button, SandboxControl control)
     : base(button)
 {
     _control = control;
 }