public static Color GetTutorialColor(ColorUsageState usageState) { if (usageState == ColorUsageState.Active) { return(new Color(0f, .5f, 0f, 0.3f)); } else //if (usageState == ColorUsageState.Normal) { return(new Color(0, 1, 0, .3f)); } }
public static Color GetBoxColor(ColorBoxType boxColor, ColorUsageState usageState) { if (boxColor == ColorBoxType.Tutorial) { return(GetTutorialColor(usageState)); } else if (boxColor == ColorBoxType.Warning) { return(GetWarningColor(usageState)); } else if (boxColor == ColorBoxType.Error) { return(GetErrorColor(usageState)); } else if (boxColor == ColorBoxType.Black) { return(GetBlackColor(usageState)); } Debug.LogError("We shouldn't encounter this segment of code.\nThe intended purpose of ColorBoxType.Normal is to not overwrite the color of the default box (which screws up the box borders)\n"); return(GetNormalColor(usageState)); }
public static Color GetBlackColor(ColorUsageState usageState) { return(new Color(.1f, .1f, .1f, .8f)); }
public static Color GetNormalColor(ColorUsageState usageState) { return(new Color(.5f, .5f, .5f, .4f)); }
public static Color GetErrorColor(ColorUsageState usageState) { return(new Color(1, 0, 0, .4f)); }
public static Color GetWarningColor(ColorUsageState usageState) { return(new Color(1f, 1f, .4f, .80f)); }