You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
608 B

  1. using CustomUI.BeatSaber;
  2. using System;
  3. using UnityEngine.UI;
  4. using VRUI;
  5. namespace BSIPA_ModList.UI
  6. {
  7. internal class BackButtonNavigationController : VRUINavigationController
  8. {
  9. public event Action didFinishEvent;
  10. private Button _backButton;
  11. protected override void DidActivate(bool firstActivation, ActivationType activationType)
  12. {
  13. if (firstActivation && activationType == ActivationType.AddedToHierarchy)
  14. {
  15. _backButton = BeatSaberUI.CreateBackButton(rectTransform, didFinishEvent.Invoke);
  16. }
  17. }
  18. }
  19. }