2010-12-08 08:26:18 +01:00
|
|
|
#ifndef SAVEBANNER_H
|
|
|
|
#define SAVEBANNER_H
|
|
|
|
|
|
|
|
#include "includes.h"
|
|
|
|
|
|
|
|
class SaveBanner
|
|
|
|
{
|
|
|
|
public:
|
2012-01-11 06:29:59 +01:00
|
|
|
|
2010-12-08 08:26:18 +01:00
|
|
|
SaveBanner();
|
|
|
|
SaveBanner( const QString &bannerpath );
|
|
|
|
SaveBanner( QByteArray stuff );
|
|
|
|
|
2012-01-11 06:29:59 +01:00
|
|
|
const QImage &BannerImg() const { return bannerImg; }
|
|
|
|
const QList< QImage > &IconImgs() const { return iconImgs; }
|
|
|
|
|
|
|
|
const QString &Title() const { return saveTitle; }
|
|
|
|
const QString &SubTitle() const { return saveTitle2; }
|
2010-12-08 08:26:18 +01:00
|
|
|
|
2012-01-11 06:29:59 +01:00
|
|
|
quint32 Attributes() { return attributes; }
|
|
|
|
quint16 Speeds() { return speeds; }
|
2010-12-08 08:26:18 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool ok;
|
|
|
|
QImage bannerImg;
|
|
|
|
QList< QImage > iconImgs;
|
2012-01-11 06:29:59 +01:00
|
|
|
|
|
|
|
quint32 attributes; // bit 5 = animation type. if its set, the animation plays forward and backward
|
|
|
|
// if its not set, the animation just plays forward and loops
|
|
|
|
|
|
|
|
quint16 speeds; // 2 bits per frame. 0 signifies the last frame?
|
|
|
|
|
2010-12-08 08:26:18 +01:00
|
|
|
QString saveTitle;
|
|
|
|
QString saveTitle2;
|
|
|
|
|
|
|
|
QImage ConvertTextureToImage( const QByteArray &ba, quint32 w, quint32 h );//expects tpl texture data in rgb5a3 format
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SAVEBANNER_H
|