2023-07-26 12:24:18 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "./screen.hpp"
|
|
|
|
|
2023-08-03 13:05:19 +02:00
|
|
|
#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;
|
2023-08-03 13:05:19 +02:00
|
|
|
FileSelector _fss;
|
|
|
|
|
2023-08-28 15:33:36 +02:00
|
|
|
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"};
|
2023-08-03 13:05:19 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
|