コード例 #1
0
 public static void TextSelectText(string str1, string str2, int jianGe, ref bool isShow, Action showAction, MyEnumColor color)
 {
     JianTuoText(str1, jianGe, ref isShow, color, showAction, () =>
     {
         MyCreate.SelectText(str2);
     });
 }
コード例 #2
0
 public static void TextSelectText(string str1, string str2, int jianGe)
 {
     MyCreate.Heng(() =>
     {
         MyCreate.Text("   " + str1, jianGe);
         MyCreate.SelectText(str2);
     });
 }
コード例 #3
0
        public static void SelectTextText2(string str1, string str2, int jianGe, ref bool isShow, Action showAction, MyEnumColor color)
        {
            bool   tmp = isShow;
            string des = isShow ? "▼ ".AddColorAndSize(color, 10, false) + str2 : "▶ ".AddColorAndSize(color, 10, false) + str2;

            MyCreate.Heng(() =>
            {
                MyCreate.SelectText(str1, jianGe - 13);
                MyCreate.Heng(() =>
                {
                    MyCreate.ButtonLabel(des, 0, () =>
                    {
                        tmp = !tmp;
                    });
                });
            });
            if (tmp && null != showAction)
            {
                showAction();
            }
            isShow = tmp;
        }