diff options
Diffstat (limited to 'src/gui/menu.cpp')
-rw-r--r-- | src/gui/menu.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/menu.cpp b/src/gui/menu.cpp index 9c648db4..d8b2e6de 100644 --- a/src/gui/menu.cpp +++ b/src/gui/menu.cpp @@ -23,8 +23,8 @@ #include "menu.h" -Menu::Menu(const std::string& menulabel, std::vector<MenuItem *> items): - Window(menulabel) +Menu::Menu(std::vector<MenuItem *> items): + Window("") { setContentSize(52,60); fill(items); @@ -52,3 +52,13 @@ void Menu::fill(std::vector<MenuItem *> items) resizeToContent(); } +void Menu::setBeing(Being *target) +{ + where = target; +} + +Being * Menu::getBeing() +{ + return where; +} + |