Esempio n. 1
0
        /*-------------------------------输入---------------------------------------------------*/


        public static void ButtonText(string buttonName, string text, int jianGe, ref bool isShow, Action action, Action action2 = null)
        {
            bool tmp = isShow;

            MyCreate.Box(() =>
            {
                MyCreate.Heng(() =>
                {
                    MyCreate.Button(buttonName, jianGe - 10, () =>
                    {
                        tmp = !tmp;
                    });
                    MyCreate.AddSpace(10);
                    MyCreate.Shu(() =>
                    {
                        MyCreate.AddSpace(6);
                        MyCreate.TextButton(text, () =>
                        {
                            tmp = !tmp;
                        });
                    });
                });
                if (tmp && null != action)
                {
                    action();
                }
                if (null != action2)
                {
                    action2();
                }
            });
            isShow = tmp;
        }