#pragma once #include "olcUTIL_Geometry2D.h" #include "MenuType.h" #include class Menu; class Crawler; class MenuButton{ friend class Menu; MenuType menuDest; geom2d::rectrect; std::string label; Decal*icon; MenuFunc onClick; bool hovered=false; private: float hoverEffect=0; public: MenuButton(geom2d::rectrect,std::string label,Decal*icon,MenuFunc onClick); MenuButton(geom2d::rectrect,std::string label,MenuType menuDest,Decal* icon,MenuFunc onClick); void Update(Crawler*game); void Draw(Crawler*game,vf2d parentPos); };