Added Footer and API for it and the welcome screen

This commit is contained in:
WerWolv
2021-02-18 12:09:19 +01:00
parent a251c7325a
commit 0e00555703
7 changed files with 87 additions and 23 deletions

View File

@@ -183,6 +183,16 @@ namespace hex {
static std::map<std::string, std::string>& getLanguages();
static std::map<std::string, std::vector<LanguageDefinition>>& getLanguageDefinitions();
};
struct Interface {
using DrawCallback = std::function<void()>;
static void addWelcomeScreenEntry(const DrawCallback &function);
static void addFooterItem(const DrawCallback &function);
static std::vector<DrawCallback>& getWelcomeScreenEntries();
static std::vector<DrawCallback>& getFooterItems();
};
};
}