98 lines
3.3 KiB
C#
98 lines
3.3 KiB
C#
/* This file is part of the "Simple Waypoint System" project by Rebound Games.
|
|
* You are only allowed to use these resources if you've bought them directly or indirectly
|
|
* from Rebound Games. You shall not license, sublicense, sell, resell, transfer, assign,
|
|
* distribute or otherwise make available to any third party the Service or the Content.
|
|
*/
|
|
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using System.Collections;
|
|
|
|
/// <summary>
|
|
/// Rebound Games about/help/support window.
|
|
/// <summary>
|
|
public class AboutSWSEditor : EditorWindow
|
|
{
|
|
[MenuItem("Window/Simple Waypoint System/About")]
|
|
static void Init()
|
|
{
|
|
AboutSWSEditor aboutWindow = (AboutSWSEditor)EditorWindow.GetWindowWithRect
|
|
(typeof(AboutSWSEditor), new Rect(0, 0, 300, 300), false, "About");
|
|
aboutWindow.Show();
|
|
}
|
|
|
|
void OnGUI()
|
|
{
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Space(90);
|
|
GUILayout.Label("Simple Waypoint System", EditorStyles.boldLabel);
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Space(90);
|
|
GUILayout.Label("by Rebound Games");
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.Space(20);
|
|
|
|
GUILayout.Label("Info", EditorStyles.boldLabel);
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Homepage");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://www.rebound-games.com");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("YouTube");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://www.youtube.com/user/ReboundGamesTV");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Twitter");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://twitter.com/Rebound_G");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.Space(5);
|
|
|
|
GUILayout.Label("Support", EditorStyles.boldLabel);
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Script Reference");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://www.rebound-games.com/docs/sws/");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Support Forum");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://www.rebound-games.com/forum/");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Unity Forum");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://forum.unity3d.com/threads/115086-Simple-Waypoint-System-%28SWS%29-RELEASED");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.Space(5);
|
|
|
|
GUILayout.Label("Support us!", EditorStyles.boldLabel);
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Rate/Review");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("https://www.assetstore.unity3d.com/#!/content/2506");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
} |