Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-975] feat: replaced discord button and link with forum #283

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading