Beispiel #1
0
 public StatusLine(Rect Bounds, StatusDef ADefs) : base(Bounds)
 {
     Options   |= OptionFlags.ofPreProcess;
     EventMask |= EventMasks.evBroadcast;
     GrowMode   = GrowModes.gfGrowLoY | GrowModes.gfGrowHiX | GrowModes.gfGrowHiY;
     Defs       = ADefs;
     FindItems();
 }
Beispiel #2
0
 public static StatusDef NewStatusDef(uint min, uint max, StatusItem items, StatusDef next)
 {
     return(new StatusDef()
     {
         Next = next,
         Min = min,
         Max = max,
         Items = items
     });
 }
Beispiel #3
0
        public void FindItems()
        {
            StatusDef P = Defs;

            while ((P != null) && ((HelpCtx < P.Min) && (HelpCtx > P.Max)))
            {
                P = P.Next;
            }
            if (P == null)
            {
                Items = null;
            }
            else
            {
                Items = P.Items;
            }
        }