//--------------------------------------------------------------- #endregion //--------------------------------------------------------------- //--------------------------------------------------------------- #region Initialisation //--------------------------------------------------------------- /// <summary> /// Creates a new overlay element. /// </summary> /// <param name="normal">The image to use for normal state.</param> /// <param name="pressed">The image to use for pressed state.</param> /// <param name="hover">The image to use for mouseOver state.</param> /// <param name="disabled">The image to use for disabled state.</param> public Overlay(ITexture2d normal, ITexture2d pressed, ITexture2d hover, ITexture2d disabled) : base(normal) { buttonLogic = new ThinButtonLogic(); this.normal = normal; this.pressed = pressed; this.hover = hover; this.disabled = disabled; }