You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
603 B
C++
27 lines
603 B
C++
#pragma once
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
#include <SFML/System.hpp>
|
|
#include <SFML/Window.hpp>
|
|
|
|
#include "main.hpp"
|
|
|
|
namespace Proto4 {
|
|
|
|
class MainMenu : public sf::Drawable, public sf::Transformable {
|
|
public:
|
|
bool init(sf::Font &font);
|
|
AppState handleKey(const sf::Event &keyEvent);
|
|
virtual void draw(sf::RenderTarget &window, sf::RenderStates states) const;
|
|
void resize(sf::Event& resizeEvent);
|
|
|
|
private:
|
|
sf::View view{};
|
|
sf::Font *font = nullptr;
|
|
|
|
sf::Text mainLine;
|
|
sf::Text entry1;
|
|
sf::Text entry2;
|
|
};
|
|
}
|