Skip to content

Commit

Permalink
BLUGA-GRAPHICS: Update Button struct to have a name to be identified
Browse files Browse the repository at this point in the history
  • Loading branch information
KitetsuK committed Nov 5, 2023
1 parent 6e41270 commit ee97e5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ namespace Types {
};

struct Button {
Button(std::function<void()> &fct) : callback(fct) {};
Button(std::function<void()> &fct, const std::string &name = "") : callback(fct), _name(name){};
std::function<void()> callback;
std::string name;
};

struct InputBox {
Expand Down

0 comments on commit ee97e5e

Please sign in to comment.