XPlor/libs/xassets/xmenudef.h

50 lines
998 B
C
Raw Normal View History

2025-08-17 13:14:17 -04:00
#ifndef XMENUDEF_H
#define XMENUDEF_H
2025-06-07 11:20:47 -04:00
2025-08-17 13:14:17 -04:00
#include "qcolor.h"
2025-09-05 18:35:17 -04:00
#include "xitemkeyhandler.h"
2025-08-17 13:14:17 -04:00
#include "xasset.h"
2025-09-05 18:35:17 -04:00
#include "xstatement.h"
#include "xstring.h"
#include "xwindowdef.h"
2025-06-07 11:20:47 -04:00
2025-09-05 18:35:17 -04:00
class XItemDef;
2025-06-07 11:20:47 -04:00
2025-08-17 13:14:17 -04:00
class XMenuDef : public XAsset
2025-06-07 11:20:47 -04:00
{
2025-08-17 13:14:17 -04:00
public:
2025-09-07 23:16:07 -04:00
explicit XMenuDef();
2025-08-17 13:14:17 -04:00
~XMenuDef();
virtual void Clear() override;
2025-09-10 21:58:26 -04:00
virtual void ParseData(XDataStream *aStream) override;
2025-08-17 13:14:17 -04:00
private:
XWindowDef mWindow;
2025-09-07 23:16:07 -04:00
XString mFont;
qint32 mFullScreen;
qint32 mItemCount;
qint32 mFontIndex;
QVector<qint32> mCursorItem;
qint32 mFadeCycle;
2025-08-17 13:14:17 -04:00
float mFadeClamp;
float mFadeAmount;
float mFadeInAmount;
float mBlurRadius;
2025-09-07 23:16:07 -04:00
XString mOnOpen;
XString mOnClose;
XString mOnESC;
XItemKeyHandler mOnKey;
2025-08-17 13:14:17 -04:00
XStatement mVisibleExp;
2025-09-07 23:16:07 -04:00
XString mAllowedBinding;
XString mSoundName;
qint32 mImageTrack;
2025-08-17 13:14:17 -04:00
QColor mFocusColor;
QColor mDisableColor;
XStatement mRectXExp;
XStatement mRectYExp;
2025-09-07 23:16:07 -04:00
QVector<XItemDef> mItems;
2025-06-07 11:20:47 -04:00
};
2025-08-17 13:14:17 -04:00
#endif // XMENUDEF_H