Пример #1
0
        public OffsetKeyframeProperties(Widget parentWidget, OffsetSequenceEditor sequenceEditor, GuiFrameworkUICallback uiCallback)
            : base(parentWidget, "Medical.GUI.OffsetSequence.OffsetKeyframeProperties.layout")
        {
            this.sequenceEditor = sequenceEditor;

            propertiesForm = new PropertiesForm(mainWidget, uiCallback);
        }
Пример #2
0
 public void addKeyFramesToSequence(OffsetModifierSequence sequence, OffsetSequenceEditor editor, float markerTime, float totalDuration)
 {
     foreach (var copiedAction in copiedActions)
     {
         copiedAction.BlendAmount = copiedAction.BlendAmount - startTimeZeroOffset + markerTime;
         if (copiedAction.BlendAmount > totalDuration)
         {
             copiedAction.BlendAmount = totalDuration;
         }
         sequence.addKeyframe(copiedAction);
         editor.addToTimeline(copiedAction);
     }
     sequence.sort();
 }
Пример #3
0
 public OffsetKeyframeData(OffsetModifierKeyframe keyframe, OffsetModifierSequence sequence, OffsetSequenceEditor editor)
 {
     this.keyframe = keyframe;
     this.sequence = sequence;
     this.editor   = editor;
 }