#pragma once #include #include "Component.h" #include "api/EventHandler.h" #include "api/UiObject.h" namespace crepe { class Button : public UiObject{ public: Button(game_object_id_t id) : UiObject(id){}; bool interactable = true; bool is_toggle = false; bool is_pressed = false; bool hover = false; std::function on_click; public: virtual int get_instances_max() const { return 1; } }; }