Add generation screen
Finished the UI for the presentation. Probably last commit to this project, unless I decide to add rectangle squares.
This commit is contained in:
parent
5369805616
commit
62e6848dee
7 changed files with 255 additions and 62 deletions
|
|
@ -27,7 +27,8 @@ float Control::barMargin = 4;
|
|||
|
||||
|
||||
Control::Control(float winW, float winH, std::string name) :
|
||||
screenSetup(this)
|
||||
screenSetup(this),
|
||||
screenGenerations(this)
|
||||
{
|
||||
this->window.create(sf::VideoMode(winW, winH), name);
|
||||
|
||||
|
|
@ -54,6 +55,14 @@ Control::~Control()
|
|||
}
|
||||
|
||||
|
||||
sf::Vector2f Control::getSizeWithBar()
|
||||
{
|
||||
sf::Vector2f size = sf::Vector2f(this->window.getSize());
|
||||
size -= sf::Vector2f(0, this->leftText.getCharacterSize() + 2*Control::barMargin);
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
void Control::interactive()
|
||||
{
|
||||
this->currentScreen = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue