Exemplo 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;
         });
     });
 }
Exemplo 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);
        }
Exemplo 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);
        }
Exemplo 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);
        }
Exemplo 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);
        }