private void OnGUI()
{
GUILayout.BeginArea(rectArea);
GUILayout.FlexibleSpace();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.ExpandHeight(true), GUILayout.Width((float) buttonWidth) };
if (GUILayout.Button("Check for updates", options))
{
CheckForUpdates();
}
GUI.skin.label.wordWrap = true;
GUILayout.Label("Checks for updates to the currently installed license. If you have purchased addons you can install them by pressing this button (Internet access required)", new GUILayoutOption[0]);
GUILayout.EndHorizontal();
GUILayout.Space(15f);
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] optionArray2 = new GUILayoutOption[] { GUILayout.ExpandHeight(true), GUILayout.Width((float) buttonWidth) };
if (GUILayout.Button("Activate new license", optionArray2))
{
ActivateNewLicense();
Window.Close();
}
GUILayout.Label("Activate Unity with a different serial number, switch to a free serial or start a trial period if you are eligible for it (Internet access required).", new GUILayoutOption[0]);
GUILayout.EndHorizontal();
GUILayout.Space(15f);
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] optionArray3 = new GUILayoutOption[] { GUILayout.ExpandHeight(true), GUILayout.Width((float) buttonWidth) };
if (GUILayout.Button("Return license", optionArray3))
{
ReturnLicense();
}
GUILayout.Label("Return this license and free an activation for the serial it is using. You can then reuse the activation on another machine (Internet access required).", new GUILayoutOption[0]);
GUILayout.EndHorizontal();
GUILayout.Space(15f);
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] optionArray4 = new GUILayoutOption[] { GUILayout.ExpandHeight(true), GUILayout.Width((float) buttonWidth) };
if (GUILayout.Button("Manual activation", optionArray4))
{
ManualActivation();
}
GUILayout.Label("Start the manual activation process, you can save this machines license activation request file or deploy a license file you have already activated manually.", new GUILayoutOption[0]);
GUILayout.EndHorizontal();
GUILayout.Space(15f);
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] optionArray5 = new GUILayoutOption[] { GUILayout.ExpandHeight(true), GUILayout.Width((float) buttonWidth) };
if (GUILayout.Button("Unity FAQ", optionArray5))
{
Application.OpenURL("http://unity3d.com/unity/faq");
}
GUILayout.Label("Open the Unity FAQ web page, where you can find information about Unity's license system.", new GUILayoutOption[0]);
GUILayout.EndHorizontal();
GUILayout.FlexibleSpace();
GUILayout.EndArea();
}