plugin api: add addNotificationV2

Allows for issuing fancy notifs via api
This commit is contained in:
vaxerski
2023-03-20 15:23:25 +00:00
parent 71a95a581f
commit 34da16b7e6
5 changed files with 79 additions and 10 deletions

View File

@@ -4,6 +4,7 @@
#include "../helpers/Timer.hpp"
#include "../helpers/Monitor.hpp"
#include "../render/Texture.hpp"
#include "../SharedDefs.hpp"
#include <deque>
@@ -16,16 +17,6 @@ enum eIconBackend
ICONS_BACKEND_FA
};
enum eIcons
{
ICON_WARNING = 0,
ICON_INFO,
ICON_HINT,
ICON_ERROR,
ICON_CONFUSED,
ICON_NONE
};
static const std::array<std::array<std::string, ICON_NONE + 1>, 3 /* backends */> ICONS_ARRAY = {std::array<std::string, ICON_NONE + 1>{"[!]", "[i]", "[Hint]", "[Err]", "[?]", ""},
std::array<std::string, ICON_NONE + 1>{"", "", "", "", "", ""},
std::array<std::string, ICON_NONE + 1>{"", "", "", "", ""}};