public void modelUnloading() { if (playingAnimationState != null) { playingAnimationState.Playing = false; playingAnimationState = null; } }
void stopButton_MouseButtonClick(Widget source, EventArgs e) { if (playingAnimationState != null) { playingAnimationState.Playing = false; playingAnimationState = null; } }
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; } } }
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)); } } }