diff options
author | Ľubomír Remák | 2018-04-14 23:04:20 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | 61c106b3307ee2f8aaa579dbc5d7c8f8e62ae41a (patch) | |
tree | 90eddbbbc6be77b6e45fb52135c88cab40648ab1 /engines/mutationofjb/gui.h | |
parent | 5290d9a74b2f704675cf5ae69bcf892b5afd274f (diff) | |
download | scummvm-rg350-61c106b3307ee2f8aaa579dbc5d7c8f8e62ae41a.tar.gz scummvm-rg350-61c106b3307ee2f8aaa579dbc5d7c8f8e62ae41a.tar.bz2 scummvm-rg350-61c106b3307ee2f8aaa579dbc5d7c8f8e62ae41a.zip |
MUTATIONOFJB: Add font support and conversation widget.
Diffstat (limited to 'engines/mutationofjb/gui.h')
-rw-r--r-- | engines/mutationofjb/gui.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/mutationofjb/gui.h b/engines/mutationofjb/gui.h index 5d8358b47f..d8e1286233 100644 --- a/engines/mutationofjb/gui.h +++ b/engines/mutationofjb/gui.h @@ -43,9 +43,21 @@ namespace MutationOfJB { class Game; class Widget; class InventoryWidget; +class ConversationWidget; class Gui : public InventoryObserver, public ButtonWidgetCallback { public: + enum Colors { + WHITE = 0xC6, + DARKGRAY = 0xC2, + LIGHTGRAY = 0xC4, + GREEN = 0xC8, + ORANGE = 0xCA, + DARKBLUE = 0xD6, + LIGHTBLUE = 0xDA, + BROWN = 0xDC + }; + typedef Common::HashMap<Common::String, int> InventoryMap; friend class InventoryAnimationDecoderCallback; @@ -64,6 +76,8 @@ public: virtual void onInventoryChanged() override; virtual void onButtonClicked(ButtonWidget *) override; + ConversationWidget& getConversationWidget(); + private: bool loadInventoryGfx(); bool loadHudGfx(); @@ -78,6 +92,7 @@ private: Common::Array<Graphics::Surface> _hudSurfaces; InventoryWidget *_inventoryWidget; + ConversationWidget *_conversationWidget; Common::Array<Widget *> _widgets; }; |