MADS: Implement loading logic for UI background animations
This commit is contained in:
parent
f6a6ea9741
commit
7e13f488ab
13 changed files with 206 additions and 40 deletions
|
@ -33,6 +33,8 @@ namespace MADS {
|
|||
|
||||
enum { IMG_SPINNING_OBJECT = 200, IMG_TEXT_UPDATE = 201 };
|
||||
|
||||
class AnimFrameEntry;
|
||||
|
||||
class UISlot {
|
||||
public:
|
||||
int _flags;
|
||||
|
@ -61,6 +63,11 @@ public:
|
|||
*/
|
||||
void add(const Common::Point &pt, int frameNumber, int spritesIndex);
|
||||
|
||||
/**
|
||||
* Loads the data from an aimation frame entry
|
||||
*/
|
||||
void add(const AnimFrameEntry &frameEntry);
|
||||
|
||||
/**
|
||||
* Adds a special entry for full refresh of the user interface
|
||||
*/
|
||||
|
@ -83,6 +90,8 @@ private:
|
|||
int _invFrameNumber;
|
||||
uint32 _scrollMilli;
|
||||
bool _scrollFlag;
|
||||
int _noSegmentsActive;
|
||||
int _someSegmentsActive;
|
||||
|
||||
/**
|
||||
* Loads the elements of the user interface
|
||||
|
@ -182,6 +191,11 @@ public:
|
|||
*/
|
||||
void noInventoryAnim();
|
||||
|
||||
/**
|
||||
* Handles any animation that occurs in the background of the user interface
|
||||
*/
|
||||
void doBackgroundAnimation();
|
||||
|
||||
/**
|
||||
* Handles queuing a new frame of an inventory animation for drawing
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue