tomato-testing/src/start_screen.hpp

42 lines
835 B
C++
Raw Normal View History

2023-07-26 12:24:18 +02:00
#pragma once
#include "./screen.hpp"
2024-04-21 14:17:50 +02:00
#include "./chat_gui/theme.hpp"
2024-04-20 17:57:11 +02:00
#include "./chat_gui/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;
2024-04-21 14:17:50 +02:00
Theme& _theme;
FileSelector _fss;
bool _new_save {false};
std::string _user_name {"unnamed-tomato"};
bool _show_password {false};
std::string _password;
std::string _tox_profile_path {"unnamed-tomato.tox"};
std::vector<std::string> queued_plugin_paths;
2023-07-26 20:09:57 +02:00
StartScreen(void) = delete;
2024-04-21 14:17:50 +02:00
StartScreen(SDL_Renderer* renderer, Theme& theme);
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
};