WIP: Add Glossary and some cleanup.

This commit is contained in:
StackZ
2020-03-08 17:03:21 +01:00
parent 9998748baa
commit 1a20cc50f3
12 changed files with 1346 additions and 1039 deletions
+15 -3
View File
@@ -39,14 +39,26 @@ public:
void Draw(void) const override;
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override;
ScriptBrowse();
private:
std::vector<DirEntry> dirContents;
// Selection.
mutable int screenPos = 0;
mutable int screenPosList = 0;
mutable int selection = 0;
mutable int Selection = 0;
int mode = 0;
// Draws.
void DrawBrowse(void) const;
void DrawGlossary(void) const;
nlohmann::json infoJson;
int maxScripts;
// Browse stuff.
int keyRepeatDelay = 0;
int fastMode = false;
std::vector<DirEntry> dirContents;
// Button | Icon struct.
std::vector<Structs::ButtonPos> arrowPos = {
{295, 0, 25, 25}, // Arrow Up.
{295, 215, 25, 25}, // Arrow Down.