31 #ifndef CRAB_MAPMARKERMENU_H 32 #define CRAB_MAPMARKERMENU_H 34 #include "crab/ui/menu.h" 35 #include "crab/ui/StateButton.h" 39 namespace pyrodactyl {
60 void addButton(
const Common::String &name,
const int &x,
const int &y) {
63 b._tooltip._text = name;
64 _menu._element.push_back(b);
68 _menu._element.clear();
76 for (
auto &i : _menu._element)
77 i.state(i._tooltip._text == name);
81 for (
auto i = _menu._element.begin(); i != _menu._element.end(); ++i) {
82 if (i->_tooltip._text == name) {
83 _menu._element.erase(i);
90 void load(rapidxml::xml_node<char> *node);
105 #endif // CRAB_MAPMARKERMENU_H
Definition: Rectangle.h:42
Definition: moveeffect.h:37