diff options
author | Paul Gilbert | 2014-03-17 23:14:54 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-17 23:14:54 -0400 |
commit | d494db888e24c04261a46aa89d946ff3c7db3851 (patch) | |
tree | c294a56d32b8ef001e12b4c969b1216626a5ad40 /engines/mads/user_interface.h | |
parent | 0c8a3a47e28075bd559be43bde910587af35d8ab (diff) | |
download | scummvm-rg350-d494db888e24c04261a46aa89d946ff3c7db3851.tar.gz scummvm-rg350-d494db888e24c04261a46aa89d946ff3c7db3851.tar.bz2 scummvm-rg350-d494db888e24c04261a46aa89d946ff3c7db3851.zip |
MADS: Beginnings of code for UI inventory item animation
Diffstat (limited to 'engines/mads/user_interface.h')
-rw-r--r-- | engines/mads/user_interface.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/mads/user_interface.h b/engines/mads/user_interface.h index 65c7e1ce55..8b87b4e65d 100644 --- a/engines/mads/user_interface.h +++ b/engines/mads/user_interface.h @@ -40,8 +40,8 @@ class UISlot { public: int _slotType; int _field2; - int _field3; - int _field4; + int _spritesIndex; + int _frameNumber; int _field6; int _field8; @@ -50,7 +50,7 @@ public: class UISlots : public Common::Array<UISlot> { public: - void add(int v1, int v2, int v3, int v4); + void add(int v1, int v2, int frameNumber, int spritesIndex); void fullRefresh(); void call(int v1, int v2); @@ -61,6 +61,7 @@ class UserInterface : public MSurface { private: MADSEngine *_vm; int _invSpritesIndex; + int _invFrameNumber; /** * Loads the elements of the user interface @@ -108,6 +109,11 @@ private: void writeVocab(ScrCategory category, int id); void refresh(); + + /** + * Handles queuing a new frame of an inventory animation for drawing + */ + void inventoryAnim(); public: ScrCategory _category; int _screenObjectsCount; |