#ifndef XMENUDEF_H
#define XMENUDEF_H

#include "qcolor.h"
#include "xitemkeyhandler.h"
#include "xasset.h"
#include "xstatement.h"
#include "xstring.h"
#include "xwindowdef.h"

class XItemDef;

class XMenuDef : public XAsset
{
public:
    explicit XMenuDef();
    ~XMenuDef();

    virtual void Clear() override;
    virtual void ParseData(XDataStream *aStream) override;

private:
    XWindowDef mWindow;
    XString mFont;
    qint32 mFullScreen;
    qint32 mItemCount;
    qint32 mFontIndex;
    QVector<qint32> mCursorItem;
    qint32 mFadeCycle;
    float mFadeClamp;
    float mFadeAmount;
    float mFadeInAmount;
    float mBlurRadius;
    XString mOnOpen;
    XString mOnClose;
    XString mOnESC;
    XItemKeyHandler mOnKey;
    XStatement mVisibleExp;
    XString mAllowedBinding;
    XString mSoundName;
    qint32 mImageTrack;
    QColor mFocusColor;
    QColor mDisableColor;
    XStatement mRectXExp;
    XStatement mRectYExp;
    QVector<XItemDef> mItems;
};

#endif // XMENUDEF_H
