private void JointSpriteListClick(Window callingWindow) { ListBoxBase asListDisplayWindow = callingWindow as ListBoxBase; if (SelectJointSprite != null) { SelectJointSprite(asListDisplayWindow.GetFirstHighlightedObject() as Sprite); } }
private static void SetAnimationChainOnCurrentSprite(Window callingWindow) { ListBoxBase listBoxBase = callingWindow as ListBoxBase; AnimationChain animationChain = listBoxBase.GetFirstHighlightedObject() as AnimationChain; if (GameData.EditorLogic.CurrentSprites.Count != 0) { GameData.EditorLogic.CurrentSprites[0].SetAnimationChain(animationChain); } }
public void EmitterArrayListBoxClick(FlatRedBall.Gui.Window callingWindow) { ListBoxBase asListBoxBase = callingWindow as ListBoxBase; EditorData.SelectEmitter((Emitter)asListBoxBase.GetFirstHighlightedObject()); }