Ejemplo n.º 1
0
 /// <summary>
 ///     Builds a new handler for the given <see cref="MenuSlider" />.
 /// </summary>
 /// <param name="component">The <see cref="MenuSlider" /> where this handler is responsible for.</param>
 /// <returns>The handler</returns>
 public ADrawable<MenuSlider> BuildSliderHandler(MenuSlider component)
 {
     return new LightSlider2(component);
 }
Ejemplo n.º 2
0
 private void AddPosition(Menu menu)
 {
     PositionX = menu.Add(new MenuSlider("x", "Position (X)", (int)MenuSettings.Position.X, 0, Drawing.Width));
     PositionY = menu.Add(new MenuSlider("y", "Position (Y)", (int)MenuSettings.Position.Y, 0, Drawing.Height));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Builds a new handler for the given <see cref="MenuSlider" />.
 /// </summary>
 /// <param name="component">The <see cref="MenuSlider" /> where this handler is responsible for.</param>
 /// <returns>The handler</returns>
 public ADrawable<MenuSlider> BuildSliderHandler(MenuSlider component)
 {
     return new TechSlider(component);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="BlueSlider" /> class.
 /// </summary>
 /// <param name="component">
 ///     The menu component
 /// </param>
 public LightSlider2(MenuSlider component)
     : base(component)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="BlueSlider" /> class.
 /// </summary>
 /// <param name="component">
 ///     The menu component
 /// </param>
 public BlueSlider2(MenuSlider component)
     : base(component)
 {
 }