20 lines
No EOL
317 B
C++
20 lines
No EOL
317 B
C++
#pragma once
|
|
#include "viewer.h"
|
|
#include "textengine.h"
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
class TextViewer : public Viewer {
|
|
public:
|
|
void Init();
|
|
void Cleanup();
|
|
|
|
bool Update(u32 key);
|
|
void Draw(TextEngine* t);
|
|
|
|
private:
|
|
int currentindex = 0;
|
|
int textoffset = 0;
|
|
|
|
std::vector<std::string> lineEntries;
|
|
}; |