Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Update line endings, fix pink on lane mergers
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt authored and FritzsHero committed Jul 9, 2019
1 parent 0765a5b commit c620c33
Show file tree
Hide file tree
Showing 3,055 changed files with 80,563 additions and 76,692 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 8 additions & 8 deletions Editor.meta
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 47 additions & 47 deletions Editor/GSDEditorProgressWindow.cs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
#if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;

/// <summary>
/// Used for progress information for other areas of RA.
/// </summary>
public class GSDEditorProgressWindow : EditorWindow {
float secs = 10.0f;
float startVal = 0f;
float progress = 0f;

#if UNITY_EDITOR
static void Init(){
GSDEditorProgressWindow window = (GSDEditorProgressWindow)EditorWindow.GetWindow (typeof (GSDEditorProgressWindow));
window.Show();
}
#endif

#if UNITY_EDITOR
void OnGUI(){
secs = EditorGUILayout.FloatField("Time to wait:", secs);
if(GUILayout.Button("Display bar")) {
if(secs < 1) {
Debug.LogError("Seconds should be bigger than 1");
return;
}
startVal = (float)EditorApplication.timeSinceStartup;
}

if(progress < secs)
EditorUtility.DisplayProgressBar(
"Simple Progress Bar",
"Shows a progress bar for the given seconds",
progress/secs);
else
EditorUtility.ClearProgressBar();

progress = (float)(EditorApplication.timeSinceStartup - startVal);
}


void OnInspectorUpdate(){
Repaint();
}
#endif
#if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;

/// <summary>
/// Used for progress information for other areas of RA.
/// </summary>
public class GSDEditorProgressWindow : EditorWindow {
float secs = 10.0f;
float startVal = 0f;
float progress = 0f;

#if UNITY_EDITOR
static void Init(){
GSDEditorProgressWindow window = (GSDEditorProgressWindow)EditorWindow.GetWindow (typeof (GSDEditorProgressWindow));
window.Show();
}
#endif

#if UNITY_EDITOR
void OnGUI(){
secs = EditorGUILayout.FloatField("Time to wait:", secs);
if(GUILayout.Button("Display bar")) {
if(secs < 1) {
Debug.LogError("Seconds should be bigger than 1");
return;
}
startVal = (float)EditorApplication.timeSinceStartup;
}

if(progress < secs)
EditorUtility.DisplayProgressBar(
"Simple Progress Bar",
"Shows a progress bar for the given seconds",
progress/secs);
else
EditorUtility.ClearProgressBar();

progress = (float)(EditorApplication.timeSinceStartup - startVal);
}


void OnInspectorUpdate(){
Repaint();
}
#endif
}
16 changes: 8 additions & 8 deletions Editor/GSDEditorProgressWindow.cs.meta
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified Editor/GSDEditorSkin.guiskin
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions Editor/GSDEditorSkin.guiskin.meta
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 32 additions & 32 deletions Editor/GSDHelpWindow.cs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
#region "Imports"
using UnityEngine;
using UnityEditor;
#endregion
public class GSDHelpWindow : EditorWindow{
void OnGUI() {
EditorStyles.label.wordWrap = true;
EditorStyles.miniLabel.wordWrap = true;

EditorGUILayout.LabelField("Road Architect Help",EditorStyles.boldLabel);
EditorGUILayout.LabelField("Please visit the online manual for help.");
GUILayout.Space(4f);

if(GUILayout.Button("Click here to open online manual",EditorStyles.miniButton,GUILayout.Width(300f))){
Application.OpenURL("http://microgsd.com/Support.aspx");
}

EditorGUILayout.LabelField("http://microgsd.com/Support.aspx",EditorStyles.miniLabel);
GUILayout.Space(4f);
EditorGUILayout.LabelField("Please visit the online manual for help.",EditorStyles.miniLabel);
GUILayout.Space(4f);
EditorGUILayout.LabelField("Please visit our unity forum thread or contact [email protected] with any questions or comments.",EditorStyles.miniLabel);
}

#region "Init"
public void Initialize(){
Rect fRect = new Rect(340,170,420,180);
position = fRect;
Show();
titleContent.text = "Help Info";
}
#endregion
#region "Imports"
using UnityEngine;
using UnityEditor;
#endregion
public class GSDHelpWindow : EditorWindow{
void OnGUI() {
EditorStyles.label.wordWrap = true;
EditorStyles.miniLabel.wordWrap = true;

EditorGUILayout.LabelField("Road Architect Help",EditorStyles.boldLabel);
EditorGUILayout.LabelField("Please visit the online manual for help.");
GUILayout.Space(4f);

if(GUILayout.Button("Click here to open online manual",EditorStyles.miniButton,GUILayout.Width(300f))){
Application.OpenURL("http://microgsd.com/Support.aspx");
}

EditorGUILayout.LabelField("http://microgsd.com/Support.aspx",EditorStyles.miniLabel);
GUILayout.Space(4f);
EditorGUILayout.LabelField("Please visit the online manual for help.",EditorStyles.miniLabel);
GUILayout.Space(4f);
EditorGUILayout.LabelField("Please visit our unity forum thread or contact [email protected] with any questions or comments.",EditorStyles.miniLabel);
}

#region "Init"
public void Initialize(){
Rect fRect = new Rect(340,170,420,180);
position = fRect;
Show();
titleContent.text = "Help Info";
}
#endregion
}
16 changes: 8 additions & 8 deletions Editor/GSDHelpWindow.cs.meta
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions Editor/GSDNotification.cs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
using UnityEngine;
using UnityEditor;
using System.Collections;

/// <summary>
/// Used for notifications in other areas of RA.
/// </summary>
public class GSDNotification : EditorWindow{
string notification = "This is a Notification";
static void Initialize() {
GSDNotification window = EditorWindow.GetWindow<GSDNotification>();
window.Show();
}

void OnGUI() {
notification = EditorGUILayout.TextField(notification);
if(GUILayout.Button("Show Notification")){
this.ShowNotification(new GUIContent(notification));
}
if(GUILayout.Button("Remove Notification")) {
this.RemoveNotification();
}
}
using UnityEngine;
using UnityEditor;
using System.Collections;

/// <summary>
/// Used for notifications in other areas of RA.
/// </summary>
public class GSDNotification : EditorWindow{
string notification = "This is a Notification";
static void Initialize() {
GSDNotification window = EditorWindow.GetWindow<GSDNotification>();
window.Show();
}

void OnGUI() {
notification = EditorGUILayout.TextField(notification);
if(GUILayout.Button("Show Notification")){
this.ShowNotification(new GUIContent(notification));
}
if(GUILayout.Button("Remove Notification")) {
this.RemoveNotification();
}
}
}
16 changes: 8 additions & 8 deletions Editor/GSDNotification.cs.meta
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c620c33

Please sign in to comment.