mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2024-11-15 11:33:24 +01:00
3ab8e02fd4
- created as global object in the main function - holds a default of ten notifications on screen
25 lines
636 B
C++
25 lines
636 B
C++
//
|
|
// Created by Syméon on 02/03/2019.
|
|
//
|
|
|
|
#include <imgui.h>
|
|
#include "Notification.h"
|
|
|
|
TextNotification::TextNotification(const std::string &message) : message(message) {}
|
|
|
|
void TextNotification::display() const {
|
|
ImGui::TextUnformatted(message.c_str());
|
|
}
|
|
|
|
void UndoNotification::display() const {
|
|
ImGui::TextColored(ImVec4(0.928f, 0.611f, 0.000f, 1.000f),"Undo : ");
|
|
ImGui::SameLine();
|
|
ImGui::TextUnformatted(message.c_str());
|
|
}
|
|
|
|
void RedoNotification::display() const {
|
|
ImGui::TextColored(ImVec4(0.000f, 0.595f, 0.734f, 1.000f),"Redo : ");
|
|
ImGui::SameLine();
|
|
ImGui::TextUnformatted(message.c_str());
|
|
}
|