/// <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); }
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)); }
/// <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); }
/// <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) { }
/// <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) { }