#pragma once #include "../GuiComponent.h" #include "TextComponent.h" #include //A simple "yes or no" popup box with callbacks for yes or no. //Make sure you remember to push it onto the window! class GuiMsgBoxYesNo : public GuiComponent { public: GuiMsgBoxYesNo(Window* window, const std::string& msg, std::function yesCallback = nullptr, std::function noCallback = nullptr); bool input(InputConfig* config, Input input) override; void render(const Eigen::Affine3f& parentTrans) override; private: std::function mYesCallback, mNoCallback; TextComponent mText; TextComponent mInputText; };