JANK MODE: Messy / broken commit - in progress

Needed to make a checkpoint, gods forgive me for committing known broken code straight to master. The jam has in a sense already begun.

I tested a smaller solution in the xplat_concept repo earlier today.
In short, I'm going to build a janky method to add new + report existing UI elements. After that's done, the UI building should be done from python modules, hastening the UI design.

This is ugly and bad, I am truly sorry. We just need to get through 7DRL, so I can't make it pretty today.
This commit is contained in:
John McCardle 2023-02-28 23:19:43 -05:00
commit 1e9fd77a13
7 changed files with 147 additions and 101 deletions

View file

@ -31,9 +31,9 @@ void MenuScene::doAction(std::string name, std::string type)
if(ACTION("start_game", "start"))
game->changeScene("play");
else if(ACTIONONCE("up"))
game->getWindow().setSize(sf::Vector2u(1024, 768));
game->getWindow().setSize(sf::Vector2u(1280, 800));
else if(ACTIONONCE("down"))
game->getWindow().setSize(sf::Vector2u(640, 480));
game->getWindow().setSize(sf::Vector2u(1024, 768));
}
void MenuScene::sRender()