96 lines
3.2 KiB
C#
96 lines
3.2 KiB
C#
/* This file is part of the "NavMesh Extension" 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 AboutNavMeshEditor : EditorWindow
|
|
{
|
|
[MenuItem("Window/NavMesh Extension/About")]
|
|
static void Init()
|
|
{
|
|
AboutNavMeshEditor aboutWindow = (AboutNavMeshEditor)EditorWindow.GetWindowWithRect
|
|
(typeof(AboutNavMeshEditor), new Rect(0, 0, 300, 300), false, "About");
|
|
aboutWindow.Show();
|
|
}
|
|
|
|
void OnGUI()
|
|
{
|
|
GUILayout.BeginArea(new Rect((Screen.width / 2) - 80, 20, 300, 100));
|
|
GUILayout.Label(" NavMesh Extension", EditorStyles.boldLabel);
|
|
GUILayout.Label(" Rebound Games");
|
|
GUILayout.EndArea();
|
|
GUILayout.Space(70);
|
|
|
|
|
|
GUILayout.Label("Info", EditorStyles.boldLabel);
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Homepage");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("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("www.rebound-games.com/docs/nav/");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Support Forum");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("http://www.rebound-games.com/forum/");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Unity Forum");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
Help.BrowseURL("http://forum.unity3d.com/threads/navmesh-extension-navmesh-drawing-portals.240022/");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.Space(5);
|
|
|
|
|
|
GUILayout.Label("Support us!", EditorStyles.boldLabel);
|
|
GUILayout.BeginHorizontal();
|
|
GUILayout.Label("Rate/Review");
|
|
if (GUILayout.Button("Visit", GUILayout.Width(100)))
|
|
{
|
|
UnityEditorInternal.AssetStore.Open("publisher/898");
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
}
|