FinalPage.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using TheraBytes.BetterUi;
  6. using UnityEditor;
  7. using UnityEngine;
  8. namespace TheraBytes.BetterUi.Editor
  9. {
  10. public class FinalPage : WizardPage
  11. {
  12. public override string NameId { get { return "FinalPage"; } }
  13. protected override string NextButtonText { get { return "Close"; } }
  14. public FinalPage(IWizard wizard)
  15. : base(wizard)
  16. {
  17. }
  18. protected override void OnInitialize()
  19. {
  20. var data = wizard.PersistentData;
  21. Add(new InfoWizardPageElement("Setup Complete!", InfoType.Header));
  22. Add(new InfoWizardPageElement("Thank you for choosing Better UI."));
  23. Add(new SeparatorWizardPageElement());
  24. Add(new InfoWizardPageElement("What to do next ...?", InfoType.Header));
  25. Add(new SeparatorWizardPageElement());
  26. Add(new InfoWithButtonWizardPageElement("You may want to check out the documentation.",
  27. "Open Documentation", () => Application.OpenURL("https://documentation.therabytes.de/better-ui/")));
  28. Add(new SeparatorWizardPageElement());
  29. Add(new InfoWithButtonWizardPageElement("If you have any trouble with Better UI, found a bug or have a feature request, feel free to write into the forums thread",
  30. "Open Thread in Unity Forum", () => Application.OpenURL("https://forum.unity.com/threads/better-ui.453808/")));
  31. Add(new InfoWithButtonWizardPageElement("Alternatively, you can send us a mail.",
  32. "Send Mail", () => Application.OpenURL("mailto:info@therabytes.de?subject=Better%20UI")));
  33. Add(new SeparatorWizardPageElement());
  34. Add(new InfoWithButtonWizardPageElement("If you want to watch some explanatory videos, visit the Asset Store page.\n" +
  35. "If you find Better UI useful you may consider to leave us a 5-Star review. We would be very thankful :)",
  36. "Open Asset Store Page", () => Application.OpenURL("https://assetstore.unity.com/packages/tools/gui/better-ui-79031")));
  37. }
  38. protected override void BeforeGui()
  39. {
  40. InfoWithButtonWizardPageElement.ButtonWidth = 200;
  41. }
  42. }
  43. }