Playing around with buttons

This commit is contained in:
2022-06-22 21:42:57 +02:00
parent 2402567330
commit 94d24e37fa
6 changed files with 166 additions and 27 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ public:
uint64_t getToolType() const {
return tool_box_type;
}
const Button *getCurButton() {
uint64_t getCurButton() const {
return cur_button;
}
@@ -69,7 +69,7 @@ private:
SDLPP::Vec2D<int> tool_box_location = { -1, -1 };
uint64_t _type{};
uint64_t tool_box_type = 0;
const Button *cur_button;
uint64_t cur_button = -1;
};
class ToolVisitor : public SDLPP::Visitor {