示例#1
0
        public RandomEyesTargetUI(
            EyesModifierTargetUIContainer parent, EyesTargetContainer tc)
            : base(parent, tc)
        {
            target_ = tc.Target as RandomEyesTarget;

            var r = new FloatRange(0, 10);

            atom_ = new AtomList(
                "Relative atom", target_?.Atom?.uid, AtomChanged,
                null, Widget.Right);

            rel_ = new ForceReceiverList(
                "Relative receiver", target_?.RelativeTo?.name,
                ReceiverChanged, Widget.Right);

            distance_ = new FloatSlider(
                "Distance", target_.Distance, r, DistanceChanged, Widget.Right);

            centerX_ = new FloatSlider(
                "Offset X", target_.CenterX, r, CenterXChanged, Widget.Right);

            centerY_ = new FloatSlider(
                "Offset Y", target_.CenterY, r, CenterYChanged, Widget.Right);

            xRange_ = new FloatSlider(
                "Range X", target_.RangeX, r, RangeXChanged, Widget.Right);

            yRange_ = new FloatSlider(
                "Range Y", target_.RangeY, r, RangeYChanged, Widget.Right);

            avoidXRange_ = new FloatSlider(
                "Avoid range X", target_.AvoidRangeX, r,
                AvoidRangeXChanged, Widget.Right);

            avoidYRange_ = new FloatSlider(
                "Avoid range Y", target_.AvoidRangeY, r,
                AvoidRangeYChanged, Widget.Right);

            rel_.Atom = target_.Atom;
        }
示例#2
0
        public RigidbodyEyesTargetUI(
            EyesModifierTargetUIContainer parent, EyesTargetContainer tc)
            : base(parent, tc)
        {
            target_ = tc.Target as RigidbodyEyesTarget;

            atom_ = new AtomList(
                "Atom", target_?.Atom?.uid, AtomChanged,
                null, Widget.Right);

            receiver_ = new ForceReceiverList(
                "Receiver", target_?.Receiver?.name,
                ReceiverChanged, Widget.Right);

            offset_ = new Vector3UI(
                "Offset", Widget.Right,
                new FloatRange(-10, 10), OffsetChanged);

            offset_.Value  = target_.Offset;
            receiver_.Atom = target_.Atom;
        }
示例#3
0
 public PlayerEyesTargetUI(
     EyesModifierTargetUIContainer parent, EyesTargetContainer t)
     : base(parent, t)
 {
 }
示例#4
0
 public BasicEyesModifierTargetUI(
     EyesModifierTargetUIContainer parent, EyesTargetContainer t)
 {
     parent_ = parent;
     target_ = t;
 }