diff options
Diffstat (limited to 'engines/macventure/gui.h')
-rw-r--r-- | engines/macventure/gui.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/macventure/gui.h b/engines/macventure/gui.h index b7d5d52b83..1da1b103dd 100644 --- a/engines/macventure/gui.h +++ b/engines/macventure/gui.h @@ -99,6 +99,7 @@ struct DrawableObject { struct WindowData { Common::Rect bounds; MVWindowType type; + ObjID objRef; uint16 visible; uint16 hasCloseBox; WindowReference refcon; @@ -160,9 +161,12 @@ public: void updateWindow(WindowReference winID, bool containerOpen); void invertWindowColors(WindowReference winID); - WindowReference createInventoryWindow(); + WindowReference createInventoryWindow(ObjID objRef); bool tryCloseWindow(WindowReference winID); + uint getObjWidth(ObjID obj); + uint getObjHeight(ObjID obj); + // Event processors bool processCommandEvents(WindowClick click, Common::Event &event); bool processMainGameEvents(WindowClick click, Common::Event &event); @@ -172,6 +176,8 @@ public: bool processDiplomaEvents(WindowClick click, Common::Event &event); bool processInventoryEvents(WindowClick click, Common::Event &event); + //bool processClickObject(ObjID obj, WindowReference win, Common::Event event, bool canDrag); + const WindowData& getWindowData(WindowReference reference); const Graphics::Font& getCurrentFont(); |