Skip to content

Commit

Permalink
update QRH
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpzh committed Aug 13, 2024
1 parent ca2e837 commit 30e2996
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tutorial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ private static void ShowModTutorial(bool manualTrigger)
SetHeading(modal, tutorialPages[tutorialPage].enHeading_, tutorialPages[tutorialPage].cnHeading_);
SetDescription(modal, tutorialPages[tutorialPage].enDescription_, tutorialPages[tutorialPage].cnDescription_);
SetButton(modal, manualTrigger);
modal.SetDescriptionTextAlign(TMPro.TextAlignmentOptions.Left);
modal.Show();
modal.SetDescriptionTextAlign(IsLastPage() ? TMPro.TextAlignmentOptions.Center : TMPro.TextAlignmentOptions.Left);

DontShowAgainToggle toggle = modal.GetComponentInChildren<DontShowAgainToggle>();
toggle?.gameObject.SetActive(IsLastPage() && !manualTrigger);

CloseButton closeButton = modal.GetComponentInChildren<CloseButton>();
closeButton?.gameObject.SetActive(IsLastPage() || manualTrigger);

modal.Show();
}

private static void SetTitle(ModalWithButton modal, string en, string cn)
Expand Down
Binary file modified bin/Debug/netstandard2.1/MiniRealisticAirways.dll
Binary file not shown.
Binary file modified bin/Debug/netstandard2.1/MiniRealisticAirways.pdb
Binary file not shown.

0 comments on commit 30e2996

Please sign in to comment.