diff options
Diffstat (limited to 'engines/sci/graphics/maciconbar.h')
-rw-r--r-- | engines/sci/graphics/maciconbar.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/engines/sci/graphics/maciconbar.h b/engines/sci/graphics/maciconbar.h index 71e65fcb40..0731da497d 100644 --- a/engines/sci/graphics/maciconbar.h +++ b/engines/sci/graphics/maciconbar.h @@ -38,15 +38,24 @@ namespace Sci { class GfxMacIconBar { public: - GfxMacIconBar() {} - ~GfxMacIconBar() {} + GfxMacIconBar(); + ~GfxMacIconBar(); void addIcon(reg_t obj); void drawIcons(); private: - Common::Array<reg_t> _iconBarObjects; + struct IconBarItem { + reg_t object; + Graphics::Surface *nonSelectedImage; + Graphics::Surface *selectedImage; + Common::Rect rect; + }; + Common::Array<IconBarItem> _iconBarItems; + uint32 _lastX; + + Graphics::Surface *createImage(uint32 iconIndex, bool isSelected); void remapColors(Graphics::Surface *surf, byte *palette); }; |