Example #1
0
 public void modelUnloading()
 {
     if (playingAnimationState != null)
     {
         playingAnimationState.Playing = false;
         playingAnimationState         = null;
     }
 }
Example #2
0
 void stopButton_MouseButtonClick(Widget source, EventArgs e)
 {
     if (playingAnimationState != null)
     {
         playingAnimationState.Playing = false;
         playingAnimationState         = null;
     }
 }
Example #3
0
 void listBox_ListSelectAccept(Widget source, EventArgs e)
 {
     if (playingAnimationState != null)
     {
         playingAnimationState.Playing = false;
     }
     if (listBox.getIndexSelected() >= 0)
     {
         playingAnimationState = (AnimationWindowListItem)listBox.getItemDataAt(listBox.getIndexSelected());
         if (playingAnimationState != null)
         {
             playingAnimationState.Playing = true;
         }
     }
 }
Example #4
0
        public void findAnimations(Entity entity)
        {
            if (playingAnimationState != null)
            {
                playingAnimationState.Playing = false;
                playingAnimationState         = null;
            }
            this.currentEntity = entity;
            listBox.removeAllItems();
            AnimationStateSet animationStateSet = entity.getAllAnimationStates();

            if (animationStateSet != null)
            {
                foreach (AnimationState state in animationStateSet.AnimationStates)
                {
                    listBox.addItem(state.getAnimationName(), new AnimationWindowListItem(state));
                }
            }
        }