Implement message system for window as well

This commit is contained in:
Lorenzooone
2024-04-20 22:15:27 +02:00
parent 559c394609
commit 07dafbed75
6 changed files with 153 additions and 54 deletions

View File

@@ -359,6 +359,13 @@ void WindowScreen::draw(double frame_time, VideoOutputData* out_buf) {
}
}
void WindowScreen::print_notification(std::string text, TextKind kind) {
this->notification->setText(text);
this->notification->setRectangleKind(kind);
this->notification->startTimer(true);
this->notification->setShowText(true);
}
int WindowScreen::load_data() {
int ret_val = this->m_prepare_load;
this->m_prepare_load = 0;
@@ -429,12 +436,6 @@ int WindowScreen::get_screen_corner_modifier_y(int rotation, int height) {
return 0;
}
void WindowScreen::print_notification(std::string text) {
this->notification->setText(text);
this->notification->startTimer(true);
this->notification->setShowText(true);
}
void WindowScreen::print_notification_on_off(std::string base_text, bool value) {
std::string status_text = "On";
if(!value)