feat: Allow themes and nodes to be downloaded from the content store

This commit is contained in:
WerWolv
2023-02-16 18:55:21 +01:00
parent d3d6a8a838
commit 5ccbfc1ff8
7 changed files with 606 additions and 97 deletions

View File

@@ -17,7 +17,7 @@ namespace hex::plugin::builtin {
NotAttempted,
InProgress,
Failed,
Succeded,
Succeeded,
};
struct StoreEntry {
@@ -45,7 +45,7 @@ namespace hex::plugin::builtin {
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
[[nodiscard]] ImVec2 getMinSize() const override { return { 600, 400 }; }
[[nodiscard]] ImVec2 getMaxSize() const override { return { 800, 600 }; }
[[nodiscard]] ImVec2 getMaxSize() const override { return { 900, 700 }; }
private:
Net m_net;
@@ -54,7 +54,7 @@ namespace hex::plugin::builtin {
std::fs::path m_downloadPath;
RequestStatus m_requestStatus = RequestStatus::NotAttempted;
std::vector<StoreEntry> m_patterns, m_includes, m_magics, m_constants, m_yara, m_encodings;
std::vector<StoreEntry> m_patterns, m_includes, m_magics, m_constants, m_yara, m_encodings, m_nodes, m_themes;
void drawStore();