public static void TextText(string str1, string str2, int jianGe, ref bool isShow, Action showAction, MyEnumColor color) { JianTuoText(str1, jianGe, ref isShow, color, showAction, () => { MyCreate.Text(str2); }); }
public static void TextText2(string str1, string str2, int jianGe, ref bool isShow, Action showAction, MyEnumColor color = MyEnumColor.LightBlue) { JianTuoText2(str1, jianGe, ref isShow, showAction, () => { MyCreate.Text(str2); }, false, color); }
public static void TextSelectText(string str1, string str2, int jianGe) { MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); MyCreate.SelectText(str2); }); }
public static void TextButton(string str1, string buttonText, int jianGe, Action onClick) { MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); MyCreate.Button(buttonText, onClick); }); }
public static bool TextBool(string trueStirng, string falseString, bool value, int jianGe) { bool tmp = value; MyCreate.Heng(() => { MyCreate.Text(tmp ? trueStirng : falseString, jianGe); tmp = MyCreate.InputBool(tmp); }); return(tmp); }
public static bool TextBool(string str1, bool value, int jianGe) { bool tmp = value; MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); tmp = MyCreate.InputBool(tmp); }); return(tmp); }
public static int TextInt(string str1, int value, int minValue, int maxValue, int jianGe) { int tmp = value; MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); tmp = MyCreate.InputInt(minValue, maxValue, value); }); return(tmp); }
public static float TextFloat(string str1, float value, float minValue, float maxValue, int jianGe) { float tmp = value; MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); tmp = MyCreate.InputFloat(minValue, maxValue, value); }); return(tmp); }
/*-------------------------------Text---------------------------------------------------*/ public static Vector3 TextVector3(string str1, Vector3 position, int jianGe) { Vector3 tmp = position; MyCreate.Heng(() => { MyCreate.Text(" " + str1, jianGe); tmp = MyCreate.InputVector3(tmp); }); return(tmp); }
public static int TextEnum(string str1, int value, string[] displayedOptions, int jianGe, bool isNeedKongGe) { int tmp = value; string des = isNeedKongGe ? " " + str1 : str1; MyCreate.Heng(() => { MyCreate.Text(des, jianGe); tmp = MyCreate.Enum(tmp, displayedOptions); }); return(tmp); }
public static Enum TextEnum(string str1, Enum myEnum, int jianGe, bool isNeedKongGe) { Enum tmp = myEnum; string des = isNeedKongGe ? " " + str1 : str1; MyCreate.Heng(() => { MyCreate.Text(des, jianGe); tmp = MyCreate.Enum(tmp); }); return(tmp); }
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; }); }); }
public static void TextText(string str1, string str2, int jianGe, bool isKongGe = true) { MyCreate.Heng(() => { if (isKongGe) { MyCreate.Text(" " + str1, jianGe); } else { MyCreate.Text(str1, jianGe); } MyCreate.Text(str2); }); }
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); }
public static void Text3(string str1, string str2, string str3, int jianGe, ref bool isShow, Action showAction, MyEnumColor color) { bool tmp = isShow; MyCreate.Heng(() => { string des = (tmp ? "▼ ".AddSize(10) + str1 : "▶ ".AddSize(10) + str1).AddColor(color, false); MyCreate.ButtonLabel(des, jianGe, () => { tmp = !tmp; }); MyCreate.Text(str2); MyCreate.AddSpace(); MyCreate.Text(str3); }); if (tmp && null != showAction) { showAction(); } isShow = tmp; }