public RigidbodyModifierUI(MainUI ui) : base(ui, Utilities.AtomHasForceReceivers) { receiver_ = new ForceReceiverList( "Receiver", "", ReceiverChanged, Widget.Right); moveType_ = new RigidbodyMovementTypeStringList( "Move type", "", MoveTypeChanged, Widget.Right); dirType_ = new StringList( "Direction", "X", new List <string>() { "X", "Y", "Z", "Custom" }, MoveDirectionChanged, Widget.Right); dir_ = new Vector3UI( "", Widget.Right | Widget.Constrained, new FloatRange(-1, 1), MoveCustomDirectionChanged); }
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; }