Add Autoboot into a script.

This commit is contained in:
StackZ 2020-03-06 18:10:02 +01:00
commit 3a659fd768
10 changed files with 211 additions and 78 deletions

View file

@ -34,6 +34,7 @@ namespace Msg
void DisplayMsg(std::string text);
void DisplayWarnMsg(std::string Text);
bool promptMsg(std::string promptMsg);
void DisplayStartMSG();
}
#endif

View file

@ -38,9 +38,11 @@ class ScriptList : public Screen
public:
void Draw(void) const override;
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override;
ScriptList();
private:
void deleteScript(int selectedScript);
void refreshList();
void DrawSubMenu(void) const;
void DrawList(void) const;
void DrawSingleObject(void) const;

View file

@ -40,6 +40,8 @@ public:
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override;
UniStore();
private:
void refreshList();
void DrawSubMenu(void) const;
void DrawStoreList(void) const;
void DrawStore(void) const;

View file

@ -30,9 +30,9 @@
#include <string>
namespace Config {
extern int LangPath, lang, Color1, Color2, Color3, TxtColor, SelectedColor, UnselectedColor, viewMode, progressbarColor;
extern std::string ScriptPath, MusicPath, StorePath, UniStoreFile;
extern bool Logging, UseBars, GodMode, autobootUnistore;
extern int LangPath, lang, Color1, Color2, Color3, TxtColor, SelectedColor, UnselectedColor, viewMode, progressbarColor, autoboot;
extern std::string ScriptPath, MusicPath, StorePath, AutobootFile;
extern bool Logging, UseBars, GodMode;
void load();
void save();