diff --git a/src/graphics/ui/elements/CheckBox.hpp b/src/graphics/ui/elements/CheckBox.hpp index 5ca144618..0f520d43f 100644 --- a/src/graphics/ui/elements/CheckBox.hpp +++ b/src/graphics/ui/elements/CheckBox.hpp @@ -6,7 +6,7 @@ #include "Panel.hpp" namespace gui { - class CheckBox : public UINode { + class CheckBox final : public UINode { protected: glm::vec4 checkColor {1.0f, 1.0f, 1.0f, 0.4f}; boolsupplier supplier = nullptr; @@ -15,23 +15,22 @@ namespace gui { public: explicit CheckBox(GUI& gui, bool checked = false); - virtual void draw(const DrawContext& pctx, const Assets& assets) - override; + void draw(const DrawContext& pctx, const Assets& assets) override; - virtual void mouseRelease(int x, int y) override; + void mouseRelease(int x, int y) override; - virtual void setSupplier(boolsupplier supplier); - virtual void setConsumer(boolconsumer consumer); + void setSupplier(boolsupplier supplier); + void setConsumer(boolconsumer consumer); - virtual CheckBox* setChecked(bool flag); + CheckBox* setChecked(bool flag); - virtual bool isChecked() const { + bool isChecked() const { if (supplier) return supplier(); return checked; } }; - class FullCheckBox : public Panel { + class FullCheckBox final : public Panel { protected: std::shared_ptr checkbox; std::shared_ptr