mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-09-15 20:15:25 -05:00
Implement message system for window as well
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user