See desc for more.

- Added option, to have a 400x214px custom Image as the Background on a UniStore.

- Added a header bar on almost all menus.

- Added GUI Settings.
This commit is contained in:
StackZ
2020-11-01 04:31:04 +01:00
parent c5282a5767
commit a2f3efc640
20 changed files with 317 additions and 88 deletions
+2 -1
View File
@@ -27,10 +27,11 @@
#ifndef _UNIVERSAL_UPDATER_KEYBOARD_HPP
#define _UNIVERSAL_UPDATER_KEYBOARD_HPP
#include "storeEntry.hpp"
#include <string>
namespace Input {
std::string setkbdString(const uint &maxLength, const std::string &Text);
std::string setkbdString(uint maxLength, const std::string &Text, const std::vector<std::unique_ptr<StoreEntry>> &entries);
};
#endif
+2 -2
View File
@@ -34,9 +34,9 @@
namespace Overlays {
void SelectStore(std::unique_ptr<Store> &store, std::vector<std::unique_ptr<StoreEntry>> &entries, std::unique_ptr<Meta> &meta);
void SelectLanguage();
void SelectLanguage(const std::unique_ptr<Store> &store);
void ShowCredits();
std::string SelectDir(const std::string &oldDir, const std::string &msg);
std::string SelectDir(const std::string &oldDir, const std::string &msg, const std::unique_ptr<Store> &store);
};
#endif
+7 -1
View File
@@ -76,10 +76,16 @@ public:
nlohmann::json &GetJson() { return this->storeJson; };
bool GetValid() const { return this->valid; };
/* Both of these things are used for custom BG support. */
C2D_Image GetStoreImg() const { return this->storeBG; };
bool customBG() const { return this->hasCustomBG; };
private:
void SetC2DBGImage();
nlohmann::json storeJson = nullptr;
std::vector<C2D_SpriteSheet> sheets;
bool valid = false;
C2D_Image storeBG = { nullptr };
bool valid = false, hasSheet = false, hasCustomBG = false;
int screenIndex = 0, entry = 0, box = 0, downEntry = 0, downIndex = 0;
};
+5 -1
View File
@@ -71,6 +71,10 @@ public:
/* U-U Update check on startup. */
bool updatecheck() const { return this->v_updateCheck; };
void updatecheck(bool v) { this->v_updateCheck = v; if (!this->changesMade) this->changesMade = true; };
/* U-U Update check on startup. */
bool usebg() const { return this->v_showBg; };
void usebg(bool v) { this->v_showBg = v; if (!this->changesMade) this->changesMade = true; };
private:
/* Mainly helper. */
bool getBool(const std::string &key);
@@ -85,7 +89,7 @@ private:
std::string v_language = "en", v_lastStore = "universal-db-beta.unistore",
v_3dsxPath = "sdmc:/3ds", v_ndsPath = "sdmc:", v_archivePath = "sdmc:";
bool v_list = false, v_autoUpdate = true, v_metadata = true, v_updateCheck = true;
bool v_list = false, v_autoUpdate = true, v_metadata = true, v_updateCheck = true, v_showBg = false;
};
#endif