Made it so you can right-click on an item to use it, but yeah it's bad. Gotta refactor.
This commit is contained in:
parent
42575ef1f5
commit
ad0069e899
9 changed files with 48 additions and 61 deletions
|
@ -20,6 +20,5 @@ namespace gui {
|
|||
guecs::Entity make_button(std::string name, Events::GUI event,
|
||||
int action, const std::string &icon_name,
|
||||
const std::string &sound, const std::string &effect_name);
|
||||
void use_item(guecs::Entity gui_id, const string& slot);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue