Ejemplo n.º 1
0
 public ImportExportScreen(EmbodyContext context, IEmbody embody, IWorldScaleModule worldScale, ISnugModule snug)
     : base(context)
 {
     _embody     = embody;
     _worldScale = worldScale;
     _snug       = snug;
 }
Ejemplo n.º 2
0
    public EmbodyContext(MVRScript plugin, IEmbody embody)
    {
        this.plugin    = plugin;
        this.embody    = embody;
        containingAtom = plugin.containingAtom;

        leftHandToggle = new JSONStorableBool("Left Hand Enabled", true, val =>
        {
            trackers.leftHandMotionControl.enabled = val;
            trackers.RefreshHands();
            embody.Refresh();
        })
        {
            isStorable = false
        };
        rightHandToggle = new JSONStorableBool("Right Hand Enabled", true, val =>
        {
            trackers.rightHandMotionControl.enabled = val;
            trackers.RefreshHands();
            embody.Refresh();
        })
        {
            isStorable = false
        };
    }
Ejemplo n.º 3
0
 public EmbodyContext(MVRScript plugin, IEmbody embody)
 {
     this.plugin    = plugin;
     this.embody    = embody;
     containingAtom = plugin.containingAtom;
     if (containingAtom.type == "Person")
     {
         bones = containingAtom.transform.Find("rescale2").GetComponentsInChildren <DAZBone>();
     }
 }
Ejemplo n.º 4
0
 public EmbodyContext(MVRScript plugin, IEmbody embody)
 {
     this.plugin = plugin;
     this.embody = embody;
 }
Ejemplo n.º 5
0
 public ActivateWithoutSnugStep(IEmbody embody, ISnugModule snug)
 {
     _embody = embody;
     _snug   = snug;
 }
Ejemplo n.º 6
0
 public ActivateStep(IEmbody embody)
 {
     _embody = embody;
 }