diff --git a/include/Overlay.hpp b/include/Overlay.hpp index 2dc9145..fe43aaa 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -65,7 +65,7 @@ namespace gsr { bool draw(); void show(); - void hide(); + void hide_next_frame(); void toggle_show(); void toggle_record(); void toggle_pause(); @@ -90,6 +90,8 @@ namespace gsr { void set_notification_speed(NotificationSpeed notification_speed); private: + void hide(); + void handle_keyboard_mapping_event(); void on_event(mgl::Event &event); diff --git a/include/gui/GlobalSettingsPage.hpp b/include/gui/GlobalSettingsPage.hpp index e54da8c..f45ba0b 100644 --- a/include/gui/GlobalSettingsPage.hpp +++ b/include/gui/GlobalSettingsPage.hpp @@ -73,6 +73,7 @@ namespace gsr { std::unique_ptr create_notification_speed(); std::unique_ptr create_application_options_subsection(ScrollablePage *parent_page); std::unique_ptr create_application_info_subsection(ScrollablePage *parent_page); + std::unique_ptr create_donate_subsection(ScrollablePage *parent_page); void add_widgets(); Button* configure_hotkey_get_button_by_active_type(); diff --git a/src/Overlay.cpp b/src/Overlay.cpp index 4633221..3cb1398 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -1446,6 +1446,10 @@ namespace gsr { malloc_trim(0); } + void Overlay::hide_next_frame() { + hide_ui = true; + } + void Overlay::toggle_show() { if(visible) { //hide(); diff --git a/src/gui/GlobalSettingsPage.cpp b/src/gui/GlobalSettingsPage.cpp index 13a89eb..294e0b2 100644 --- a/src/gui/GlobalSettingsPage.cpp +++ b/src/gui/GlobalSettingsPage.cpp @@ -528,6 +528,22 @@ namespace gsr { return std::make_unique("Application info", std::move(list), mgl::vec2f(parent_page->get_inner_size().x, 0.0f)); } + std::unique_ptr GlobalSettingsPage::create_donate_subsection(ScrollablePage *parent_page) { + auto list = std::make_unique(List::Orientation::VERTICAL); + list->add_widget(std::make_unique