Support vertical spritsheets for overworld graphics

This commit is contained in:
GriffinR
2023-12-24 23:44:04 -05:00
parent 6a8d3a8197
commit 06ed730cd1
3 changed files with 34 additions and 18 deletions

View File

@@ -42,6 +42,13 @@ public:
virtual void visitSign(SignEvent *) = 0;
};
struct EventGraphics
{
QImage spritesheet;
int spriteWidth;
int spriteHeight;
bool inanimate;
};
///
@@ -258,7 +265,7 @@ public:
public:
void setFrameFromMovement(QString movement);
void setPixmapFromSpritesheet(QImage, int, int, bool);
void setPixmapFromSpritesheet(EventGraphics * gfx);
protected:

View File

@@ -18,14 +18,6 @@
#include <QVariant>
#include <QFileSystemWatcher>
struct EventGraphics
{
QImage spritesheet;
int spriteWidth;
int spriteHeight;
bool inanimate;
};
// The displayed name of the special map value used by warps with multiple potential destinations
static QString DYNAMIC_MAP_NAME = "Dynamic";