diff options
Diffstat (limited to 'engines/mads/user_interface.h')
-rw-r--r-- | engines/mads/user_interface.h | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/engines/mads/user_interface.h b/engines/mads/user_interface.h index 838638ba0b..8bd02ff6fc 100644 --- a/engines/mads/user_interface.h +++ b/engines/mads/user_interface.h @@ -24,21 +24,44 @@ #define MADS_USER_INTERFACE_H #include "common/scummsys.h" +#include "common/rect.h" +#include "common/str.h" +#include "mads/msurface.h" namespace MADS { -class MADSEngine; - -class UserInterface { +class UserInterface : public MSurface { private: MADSEngine *_vm; - MSurface *_surface; - UserInterface(MADSEngine *vm); + void loadElements(); public: - static UserInterface *init(MADSEngine *vm); + ScrCategory _category; + int _screenObjectsCount; + Common::Rect _bounds; + Common::Rect *_rectP; + MSurface _surface; public: - ~UserInterface(); + /** + * Constructor + */ + UserInterface(MADSEngine *vm); + + /** + * Loads an interface from a specified resource + */ + void load(const Common::String &resName); + + /** + * Set up the interface + */ + void setup(int id); + + void elementHighlighted(); + + void writeText(); + + void setBounds(const Common::Rect &r); }; } // End of namespace MADS |