#include "button.hpp" #include "text.hpp" Button::Button(){} Button::Button(std::string _text,float x, float y, float width, float height): Widget{x,y,width,height},text{_text}{} void Button::Draw(float screenRatio){ Widget::Draw(screenRatio); Text playGameText(text.c_str(), rectangle,screenRatio); playGameText.Draw(); playGameText.Delete(); }