Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <SFML/Graphics.hpp>
- #include "Core.hpp"
- class Button{
- public:
- sf::Texture btnTex;
- sf::Sprite btnSpr;
- sf::RenderWindow app;
- sf::Vector2f location;
- sf::Vector2f btnSize;
- bool isLocked = false;
- bool enable = true;
- float currentTimeLocked = 0;
- float timeLocked = 1;
- float delay = 0;
- TableHandle* event;
- enum TableHandle::Actions action;
- public:
- Button(TableHandle* );
- ~Button();
- void EventHandle(sf::RenderWindow& app, float&);
- void Draw(sf::RenderWindow& app);
- void setEvent(enum TableHandle::Actions);
- void setImage(sf::Texture&);
- void setLocation(sf::Vector2f);
- void setTimeLocked(float );
- void setEnable(bool);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement