Implement AMI, more communication with STM etc

It's late and I forgot to commit
This commit is contained in:
2022-05-28 02:04:10 +02:00
parent c553ea36d4
commit 0cd0ce6f3e
12 changed files with 293 additions and 74 deletions

27
include/AMI.h Normal file
View File

@ -0,0 +1,27 @@
#pragma once
#include "AppState.h"
#include "View.h"
#include "widgets.h"
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_ttf.h>
#include <memory>
#include <unordered_map>
#include <vector>
class AMI final : public View {
public:
AMI(SDL_Renderer* renderer);
~AMI();
void draw(const AppState& state) override;
private:
TTF_Font* font_medium;
TTF_Font* font_large;
std::unique_ptr<TextWidget> header;
std::unordered_map<Mission, std::unique_ptr<TextWidget>> missions;
};