2021-12-31 00:57:06 +01:00
|
|
|
#include "notification.hpp"
|
2019-03-02 16:06:33 +01:00
|
|
|
|
2021-12-31 14:59:39 +01:00
|
|
|
#include <imgui.h>
|
|
|
|
|
|
|
|
TextNotification::TextNotification(const std::string& message) :
|
|
|
|
message(message) {}
|
2019-03-02 16:06:33 +01:00
|
|
|
|
|
|
|
void TextNotification::display() const {
|
|
|
|
ImGui::TextUnformatted(message.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
void UndoNotification::display() const {
|
2021-12-31 14:59:39 +01:00
|
|
|
ImGui::TextColored(ImVec4(0.928f, 0.611f, 0.000f, 1.000f), "Undo : ");
|
2019-03-02 16:06:33 +01:00
|
|
|
ImGui::SameLine();
|
|
|
|
ImGui::TextUnformatted(message.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
void RedoNotification::display() const {
|
2021-12-31 14:59:39 +01:00
|
|
|
ImGui::TextColored(ImVec4(0.000f, 0.595f, 0.734f, 1.000f), "Redo : ");
|
2019-03-02 16:06:33 +01:00
|
|
|
ImGui::SameLine();
|
|
|
|
ImGui::TextUnformatted(message.c_str());
|
|
|
|
}
|