Esempio n. 1
0
 public static void TextEnabledString(string str1, string inputStr, int jianGe)
 {
     MyCreate.Heng(() =>
     {
         MyCreate.Text("   " + str1, jianGe);
         MyCreate.Shu(() =>
         {
             MyCreate.AddSpace(5);
             GUI.enabled = false;
             MyCreate.InputString(inputStr);
             GUI.enabled = true;
         });
     });
 }
Esempio n. 2
0
        public static string TextString2(string str1, string value, int jianGe, ref bool isShow, Action showAction, bool isNeedRed = false)
        {
            string des = str1;
            string tmp = value;

            if (isNeedRed && string.IsNullOrEmpty(tmp))
            {
                des = des.AddRed();
            }
            JianTuoText2("   " + des, jianGe, ref isShow, showAction, () =>
            {
                tmp = MyCreate.InputString(tmp);
            });
            return(tmp);
        }
Esempio n. 3
0
        public static string TextString(string str1, string inputStr, int jianGe, Action action, bool isNeedRed = false)
        {
            string des = str1;
            string tmp = inputStr;

            if (isNeedRed && string.IsNullOrEmpty(tmp))
            {
                des = des.AddRed();
            }
            MyCreate.Heng(() =>
            {
                MyCreate.ButtonLabel("   " + des, jianGe, action);
                tmp = MyCreate.InputString(tmp);
            });
            return(tmp);
        }
Esempio n. 4
0
        public static string StringButton(string value, int jianGe, string buutonName, Action action)
        {
            string tmp = value;

            MyCreate.Heng(() =>
            {
                MyCreate.Shu(() =>
                {
                    MyCreate.AddSpace(4);
                    tmp = MyCreate.InputString(tmp, jianGe);
                });
                if (!string.IsNullOrEmpty(tmp))
                {
                    MyCreate.Button("   " + buutonName + "   ", action);
                }
                MyCreate.AddSpace();
            });
            return(tmp);
        }
Esempio n. 5
0
        public static string TextString(string str1, string inputStr, int jianGe, bool isNeedRed = false)
        {
            string des = str1;
            string tmp = inputStr;

            if (isNeedRed && string.IsNullOrEmpty(tmp))
            {
                des = des.AddRed();
            }
            MyCreate.Heng(() =>
            {
                MyCreate.Text("   " + des, jianGe);
                MyCreate.Shu(() =>
                {
                    MyCreate.AddSpace(5);
                    tmp = MyCreate.InputString(tmp);
                });
            });
            return(tmp);
        }