60 lines
1.6 KiB
C#
60 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
using VRC;
|
|
using VRC.Core;
|
|
using VRC.SDKBase;
|
|
|
|
public partial class VRCSdkControlPanel : EditorWindow
|
|
{
|
|
[MenuItem("VRChat SDK/Help/Developer FAQ")]
|
|
public static void ShowDeveloperFAQ()
|
|
{
|
|
if (!ConfigManager.RemoteConfig.IsInitialized())
|
|
{
|
|
ConfigManager.RemoteConfig.Init(() => ShowDeveloperFAQ());
|
|
return;
|
|
}
|
|
|
|
Application.OpenURL(ConfigManager.RemoteConfig.GetString("sdkDeveloperFaqUrl"));
|
|
}
|
|
|
|
[MenuItem("VRChat SDK/Help/VRChat Discord")]
|
|
public static void ShowVRChatDiscord()
|
|
{
|
|
if (!ConfigManager.RemoteConfig.IsInitialized())
|
|
{
|
|
ConfigManager.RemoteConfig.Init(() => ShowVRChatDiscord());
|
|
return;
|
|
}
|
|
|
|
Application.OpenURL(ConfigManager.RemoteConfig.GetString("sdkDiscordUrl"));
|
|
}
|
|
|
|
[MenuItem("VRChat SDK/Help/Avatar Optimization Tips")]
|
|
public static void ShowAvatarOptimizationTips()
|
|
{
|
|
if (!ConfigManager.RemoteConfig.IsInitialized())
|
|
{
|
|
ConfigManager.RemoteConfig.Init(() => ShowAvatarOptimizationTips());
|
|
return;
|
|
}
|
|
|
|
Application.OpenURL(AVATAR_OPTIMIZATION_TIPS_URL);
|
|
}
|
|
|
|
[MenuItem("VRChat SDK/Help/Avatar Rig Requirements")]
|
|
public static void ShowAvatarRigRequirements()
|
|
{
|
|
if (!ConfigManager.RemoteConfig.IsInitialized())
|
|
{
|
|
ConfigManager.RemoteConfig.Init(() => ShowAvatarRigRequirements());
|
|
return;
|
|
}
|
|
|
|
Application.OpenURL(AVATAR_RIG_REQUIREMENTS_URL);
|
|
}
|
|
}
|