Skip to content

Commit

Permalink
feat: replaced discord button and link with forum
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough committed May 29, 2024
1 parent d1cd6ec commit ec4434e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SettingsEditor : EditorWindow
private const string LOGGING_ENABLED_TOGGLE = "LoggingEnabledToggle";
private const string DOCUMENTATION_BUTTON = "DocumentationButton";
private const string FAQ_BUTTON = "FaqButton";
private const string DISCORD_BUTTON = "DiscordButton";
private const string FORUM_BUTTON = "ForumButton";
private const string CLEAR_CACHE = "Clear Cache";
private const string CACHE_IS_ALREADY_EMPTY = "Cache is already empty";
private const string OK = "OK";
Expand All @@ -39,7 +39,7 @@ public class SettingsEditor : EditorWindow

private const string DOCS_URL = "https://docs.readyplayer.me/ready-player-me/integration-guides/unity";
private const string FAQ_URL = "https://docs.readyplayer.me/ready-player-me/integration-guides/unity/faq-for-unity";
private const string DISCORD_URL = "https://bit.ly/UnitySDKDiscord";
private const string FORUM_URL = "https://forum.readyplayer.me/";
private const string PRIVACY_POLICY_LABEL = "PrivacyPolicyLabel";

[SerializeField] private VisualTreeAsset visualTreeAsset;
Expand Down Expand Up @@ -94,7 +94,7 @@ public void CreateGUI()

rootVisualElement.Q<Button>(DOCUMENTATION_BUTTON).clicked += () => Application.OpenURL(DOCS_URL);
rootVisualElement.Q<Button>(FAQ_BUTTON).clicked += () => Application.OpenURL(FAQ_URL);
rootVisualElement.Q<Button>(DISCORD_BUTTON).clicked += () => Application.OpenURL(DISCORD_URL);
rootVisualElement.Q<Button>(FORUM_BUTTON).clicked += () => Application.OpenURL(FORUM_URL);
}

private void OnCachingHelpClick()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<ui:VisualElement name="Buttons" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0); flex-direction: row; align-self: auto; justify-content: space-between; align-items: center; height: 40px; margin-left: 15px; margin-right: 15px; margin-top: 10px; width: 450px; flex-shrink: 0;">
<ui:Button text="Documentation" display-tooltip-when-elided="true" name="DocumentationButton" style="width: 150px; align-items: auto; flex-grow: 0; justify-content: space-around; align-self: stretch; margin-left: 0; margin-right: 0;" />
<ui:Button text="FAQ" display-tooltip-when-elided="true" name="FaqButton" style="width: 150px; justify-content: space-around; align-self: stretch; align-items: auto; margin-left: 6px;" />
<ui:Button text="Discord" display-tooltip-when-elided="true" name="DiscordButton" style="width: 150px; justify-content: space-around; align-self: stretch; align-items: auto; margin-right: 0;" />
<ui:Button text="Forum" display-tooltip-when-elided="true" name="ForumButton" style="width: 150px; justify-content: space-around; align-self: stretch; align-items: auto; margin-right: 0;" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
Expand Down

0 comments on commit ec4434e

Please sign in to comment.