mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 02:44:17 +00:00
Hide modpack notifications according to vanilla menu (#685)
* Hide notifications according to vanilla menu * Whoops
This commit is contained in:
parent
c6e03b98d3
commit
69d30d5a6d
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@ use skyline::nn::ui2d::*;
|
|||
use smash::ui2d::{SmashPane, SmashTextBox};
|
||||
|
||||
use crate::common::menu::QUICK_MENU_ACTIVE;
|
||||
use crate::common::TRAINING_MENU_ADDR;
|
||||
use crate::training::ui;
|
||||
macro_rules! display_parent_fmt {
|
||||
($x:ident) => {
|
||||
|
@ -27,6 +28,13 @@ pub unsafe fn draw(root_pane: &Pane) {
|
|||
let notification_idx = 0;
|
||||
|
||||
let queue = addr_of_mut!(ui::notifications::QUEUE);
|
||||
if (*TRAINING_MENU_ADDR).combo_display_toggle == 0 {
|
||||
// User has turned off the "combo display" option in the vanilla menu
|
||||
// Remove all notifications from the queue so we don't show them
|
||||
// This will also set the pane's visibility to false
|
||||
(*queue).clear();
|
||||
}
|
||||
|
||||
let notification = (*queue).first_mut();
|
||||
|
||||
root_pane
|
||||
|
|
Loading…
Reference in a new issue