XPlor/libs/xassets/xmenudef.h

50 lines
973 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:
XMenuDef();
~XMenuDef();
virtual void Clear() override;
virtual void ParseData(QDataStream *aStream) override;
private:
XWindowDef mWindow;
XString* mFont;
int mFullScreen;
int mItemCount;
int mFontIndex;
int mCursorItem[4];
int mFadeCycle;
float mFadeClamp;
float mFadeAmount;
float mFadeInAmount;
float mBlurRadius;
XString* mOnOpen;
XString* mOnClose;
XString* mOnESC;
XItemKeyHandler *mOnKey;
XStatement mVisibleExp;
XString* mAllowedBinding;
XString* mSoundName;
int mImageTrack;
QColor mFocusColor;
QColor mDisableColor;
XStatement mRectXExp;
XStatement mRectYExp;
QVector<XItemDef*> mItems;
2025-06-07 11:20:47 -04:00
};
2025-08-17 13:14:17 -04:00
#endif // XMENUDEF_H