/// <summary> /// 展示所有Button /// </summary> public void ShowAllButtons() { if (open == false) { open = true; Transform.SetTransform(FatherCard.Transform.Matrix); if (Buttons.Count > 0) { Size = new Size(Buttons[0].Size.Width + Size.Width, Size.Height); FatherCard.Card.Player.MainPlaceInfo.MainPlace.DynamicInsertElement(FatherCard.Card.Player.MainPlaceInfo.MainPlace.Elements.Count - 1, this); for (int i = 0; i < Buttons.Count; i++) { Buttons[i].Transform.SetTransform(Transform.Matrix); FatherCard.Card.Player.MainPlaceInfo.MainPlace.DynamicInsertElement(FatherCard.Card.Player.MainPlaceInfo.MainPlace.Elements.Count - 1, Buttons[i]); } EasyAnimation.AnimationStart(0); } } }
private void Event_MouseLeftUp() { var temp = Card.Player.MainPlaceInfo.MainPlace; if (temp.ElementsGoWithMouse.Count != 0) { //if (temp.ElementsGoWithMouse[0].LastLayer != null) //{ // temp.LayerController.MoveToLayerTop( // temp.ElementsGoWithMouse[0], // temp.ElementsGoWithMouse[0].LastLayer.LayerName); //} temp.ElementsGoWithMouse.Clear(); temp.last = null; } EasyAudio_1.Reset(); EasyAudio_1.Start(); EasyAnimation.AnimationStart(0); // Transform.SetTransform(SetTrans); }
public void CloseAllButtons() { EasyAnimation.AnimationStart(1); }