Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public static Color GetBlackColor(ColorUsageState usageState)
 {
     return(new Color(.1f, .1f, .1f, .8f));
 }
Exemplo n.º 4
0
 public static Color GetNormalColor(ColorUsageState usageState)
 {
     return(new Color(.5f, .5f, .5f, .4f));
 }
Exemplo n.º 5
0
 public static Color GetErrorColor(ColorUsageState usageState)
 {
     return(new Color(1, 0, 0, .4f));
 }
Exemplo n.º 6
0
 public static Color GetWarningColor(ColorUsageState usageState)
 {
     return(new Color(1f, 1f, .4f, .80f));
 }