Ejemplo n.º 1
0
 public static void ModifyDisplayValue(InfoDisplay info, ref string displayName)
 {
     foreach (GlobalInfoDisplay global in globalInfoDisplays)
     {
         global.ModifyDisplayValue(info, ref displayName);
     }
 }
Ejemplo n.º 2
0
        public static bool Active(InfoDisplay info)
        {
            bool active = info.Active();

            foreach (GlobalInfoDisplay global in globalInfoDisplays)
            {
                if (global.Active(info).HasValue)
                {
                    active &= global.Active(info).Value;
                }
            }
            return(active);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Allows you to modify the display value (the text displayed next to the icon) of an InfoDisplay.
 /// </summary>
 /// <param name="currentDisplay">The display you're modifying the display value for.</param>
 /// <param name="displayValue">The</param>
 public virtual void ModifyDisplayValue(InfoDisplay currentDisplay, ref string displayValue)
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Allows you to modify whether or not a given InfoDisplay is active. Returns null (no change from default behavior) by default for all InfoDisplays.
 /// </summary>
 /// <param name="currentDisplay">The display you're deciding the active state for.</param>
 public virtual bool?Active(InfoDisplay currentDisplay) => null;
Ejemplo n.º 5
0
 internal static int Add(InfoDisplay infoDisplay)
 {
     InfoDisplays.Add(infoDisplay);
     return(InfoDisplays.Count - 1);
 }