This repository has been archived by the owner on Jun 26, 2021. It is now read-only.
forked from MicroGSD/RoadArchitect
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FritzsHero/master' into testing
- Loading branch information
Showing
60 changed files
with
42,154 additions
and
38,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Changelog | ||
All notable changes to this RoadArchitect project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
|
||
## [Version: 1.8_FH] - 2019.02.10 | ||
### Improvements | ||
- Added some FH_Tag Optimizable as comments, since there is a way to further optimize the Code tagged by this | ||
- Added a few Lines of comments to the code, to get a better idea of what the code does | ||
|
||
### Changed | ||
- Changed some Layouts of the Scripts | ||
- Changed some Vars in Scripts to better reflect their purpose | ||
|
||
### Added | ||
- Added a few Regions to some Scripts | ||
|
||
###Fixed | ||
- Fixed embeddedt/RoadArchitect/issues/4 | ||
|
||
## [Version: 1.7.5a_FH] - 2019.01.31 | ||
### Changed | ||
- Changed most Layouts of the Scripts | ||
- Changed some Vars in Scripts to better reflect their purpose | ||
|
||
## [Version 1.7] - 2018.07.16 | ||
### Changed | ||
- Adds support for Unity 2018.x | ||
- Updates to unit tests | ||
- No further Informations given at this point | ||
|
||
## [Version 1.6] - 2017.02.28 | ||
### Changed | ||
- Initial Release | ||
- No further Informations given at this point |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,63 @@ | ||
#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 | ||
#region "Imports" | ||
#if UNITY_EDITOR | ||
using UnityEditor; | ||
#endif | ||
using UnityEngine; | ||
#endregion | ||
|
||
|
||
/// <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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
#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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
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(); | ||
} | ||
} | ||
#region Imports | ||
using UnityEngine; | ||
using UnityEditor; | ||
using System.Collections; | ||
#endregion | ||
|
||
|
||
/// <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(); | ||
} | ||
} | ||
} |
Oops, something went wrong.