tomato/src/start_screen.cpp

25 lines
560 B
C++
Raw Normal View History

2023-07-26 12:24:18 +02:00
#include "./start_screen.hpp"
#include "./main_screen.hpp"
#include <memory>
2023-07-26 20:09:57 +02:00
StartScreen::StartScreen(SDL_Renderer* renderer) : _renderer(renderer) {
2023-07-26 12:24:18 +02:00
}
Screen* StartScreen::poll(bool&) {
// TODO: imgui tox profile selector?
2023-07-26 12:55:50 +02:00
// +----------------------------
// | |*tox profile*| plugins |
2023-07-26 12:24:18 +02:00
// | +------+ +--------
// | | ICON | | fileselector/dropdown?
// | | | | password input
// | +------+ +--------
2023-07-26 12:55:50 +02:00
// +----------------------------
2023-07-26 12:24:18 +02:00
2023-07-26 20:09:57 +02:00
auto new_screen = std::make_unique<MainScreen>(_renderer, "tomato.tox");
2023-07-26 12:24:18 +02:00
return new_screen.release();
}