mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Merge branch 'master' into notification-verbosity
This commit is contained in:
@ -265,7 +265,7 @@ namespace osu.Game
|
||||
};
|
||||
}
|
||||
|
||||
Action<Visibility> stateChanged = delegate
|
||||
void updateScreenOffset()
|
||||
{
|
||||
float offset = 0;
|
||||
|
||||
@ -274,11 +274,11 @@ namespace osu.Game
|
||||
if (notifications.State == Visibility.Visible)
|
||||
offset -= ToolbarButton.WIDTH / 2;
|
||||
|
||||
intro.MoveToX(offset, SettingsOverlay.TRANSITION_LENGTH, Easing.OutQuint);
|
||||
};
|
||||
screenStack.MoveToX(offset, SettingsOverlay.TRANSITION_LENGTH, Easing.OutQuint);
|
||||
}
|
||||
|
||||
settings.StateChanged += stateChanged;
|
||||
notifications.StateChanged += stateChanged;
|
||||
settings.StateChanged += _ => updateScreenOffset();
|
||||
notifications.StateChanged += _ => updateScreenOffset();
|
||||
|
||||
Cursor.State = Visibility.Hidden;
|
||||
}
|
||||
|
Reference in New Issue
Block a user