WIP: Script-Creator!

This commit is contained in:
StackZ 2020-06-21 16:41:48 +02:00
commit 91615d7891
8 changed files with 132 additions and 156 deletions

View file

@ -28,6 +28,7 @@
#define SCRIPTCREATOR_HPP
#include "common.hpp"
#include "json.hpp"
#include "structs.hpp"
#include <vector>
@ -38,6 +39,8 @@ public:
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override;
private:
std::string entryName = "";
// Screen draws.
void DrawSubMenu(void) const;
void DrawScriptScreen(void) const;
@ -82,6 +85,7 @@ private:
void createEntry(const std::string &Entryname);
std::string jsonFileName;
nlohmann::json editScript;
// Main Pos.
const std::vector<Structs::ButtonPos> mainButtons = {
{90, 40, 140, 35}, // New Script.

View file

@ -64,7 +64,7 @@ private:
void SelectFunction(u32 hDown, u32 hHeld, touchPosition touch);
// This is for the Script Creator, so no one can access it for now, until it is stable or so.
bool isTesting = false;
bool isTesting = true;
// Other includes which get destructed automatically.
std::string choice;