Day 50/100 100 Days of Code

Day 50/100 100 Days of Code

Rebuild Back Better

I worked on creating a structure for the menu elements. This has been a little more complicated than I wanted and made many mistakes. I wanted to do more today but I am a bit tired. More Tomorrow!

template<typename S, typename T, typename C, typename F, typename R>
struct MenuElement
    enum state
        DEACTIVATED = 0,

    float x, y;
    int currentState;
    std::string content;
    F *font;
    R *renderer;

    MenuElement(float inputX, float inputY, F *inputFont, R *inputRender);
    void CreateOption(std::string content, float getMouseX, float getMouseY, C inputColor);