| 1234567891011121314151617181920212223242526272829303132333435 |
- using Microsoft.Xna.Framework;
- namespace OpenVIII.IGMDataItem
- {
- public class Box : Base, I_Data<FF8String>
- {
- #region Properties
- public FF8String Data { get; set; }
- public Menu.BoxReturn Dims { get; private set; }
- public Box_Options Options { get; set; } = Box_Options.Default;
- public Icons.ID? Title { get; set; } = Icons.ID.None;
- #endregion Properties
- #region Methods
- public override void Draw() => Draw(false);
- public void Draw(bool skipdraw)
- {
- if (Enabled)
- {
- var pos = Pos;
- if (OffsetAnchor != null)
- pos.Offset(OffsetAnchor);
- Dims = Menu.DrawBox(pos, Data, Title, options: skipdraw ? (Options | Box_Options.SkipDraw) : Options);
- if (Blink) //needs tested and tuned
- Memory.SpriteBatch.Draw(blank, pos, Color.DarkGray * Fade * .5f * Blink_Amount * Blink_Adjustment);
- }
- }
- #endregion Methods
- }
- }
|