| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using Microsoft.Xna.Framework;
- namespace OpenVIII.IGMDataItem
- {
- public class Texture_Handler : Base, I_Data<TextureHandler>
- {
- #region Constructors
- public Texture_Handler(TextureHandler data, Rectangle? pos = null) : base(pos)
- {
- Faded_Color = Color.DarkGray;
- Data = data;
- }
- #endregion Constructors
- #region Properties
- public TextureHandler Data { get; set; }
- #endregion Properties
- #region Methods
- public override void Draw()
- {
- if (Enabled)
- {
- if (!Blink)
- Data.Draw(Pos, null, Color * Fade);//4
- //if (Blink)
- // Data.Draw(Pos, null, Color.DarkGray * Blink_Amount * Blink_Adjustment * Fade);//4
- else
- Data.Draw(Pos, null, Color.Lerp(Color, Faded_Color, Menu.Blink_Amount) * Blink_Adjustment * Fade);
- }
- }
- #endregion Methods
- }
- }
|