tomato/src/start_screen.hpp

39 lines
711 B
C++
Raw Normal View History

2023-07-26 12:24:18 +02:00
#pragma once
#include "./screen.hpp"
#include "./file_selector.hpp"
#include <vector>
#include <string>
2023-07-26 20:09:57 +02:00
// fwd
extern "C" {
struct SDL_Renderer;
} // C
2023-07-26 12:24:18 +02:00
struct StartScreen final : public Screen {
2023-07-26 20:09:57 +02:00
SDL_Renderer* _renderer;
FileSelector _fss;
bool _new_save {false};
bool _show_password {false};
std::string _password;
2023-08-03 15:03:12 +02:00
std::string tox_profile_path {"tomato.tox"};
std::vector<std::string> queued_plugin_paths;
2023-07-26 20:09:57 +02:00
StartScreen(void) = delete;
StartScreen(SDL_Renderer* renderer);
2023-07-26 12:24:18 +02:00
~StartScreen(void) = default;
// return nullptr if not next
// sets bool quit to true if exit
2024-01-05 14:47:08 +01:00
Screen* render(float, bool&) override;
Screen* tick(float, bool&) override;
// use default nextRender and nextTick
2023-07-26 12:24:18 +02:00
};