Exemplo n.º 1
0
        public void Remove(Control ctrl)
        {
            GuiRenderer ren = _controls.FirstOrDefault(i => i.Control == ctrl);

            if (ren != null)
            {
                _controls.Remove(ren);
            }
        }
Exemplo n.º 2
0
 public override void Render(GuiRenderer gui)
 {
     if (Orientation == Orientations.Vertical)
     {
         float fill = Height * (Value / MaxValue);
         gui.Fill(0, (Height - fill) / 2, Width, fill, Color);
     }
     else
     {
         float fill = Width * (Value / MaxValue);
         gui.Fill((Width - fill) / 2, 0, fill, Height, Color);
     }
 }
Exemplo n.º 3
0
 public override void Render(GuiRenderer gui)
 {
     gui.Write(Text, 0, 0, Size, Color);
 }