Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Williams committed May 30, 2022
1 parent d27296c commit dd80521
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions Editor/VRC_Questifyer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,40 @@ void OnGUI()

EditorGUILayout.Space();
EditorGUILayout.Space();

GUILayout.Label("Download new versions and get support: https://discord.gg/R6Scz6ccdn");
HorizontalRule();

EditorGUILayout.Space();
EditorGUILayout.Space();

GUILayout.Label("Links:");

GUILayout.Label("https://twitter.com/@HiPeanutBuddha");
GUILayout.Label("Peanut#1756");
RenderLink(" Download new versions from GitHub", "https://github.com/imagitama/vrc-questifyer");
RenderLink(" Get support from my Discord", "https://discord.gg/R6Scz6ccdn");
RenderLink(" Follow me on Twitter", "https://twitter.com/@HiPeanutBuddha");

isDryRun = false;

EditorGUILayout.EndScrollView();
}

void RenderLink(string label, string url) {
Rect rect = EditorGUILayout.GetControlRect();

if (rect.Contains(Event.current.mousePosition)) {
EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link);

if (Event.current.type == EventType.MouseUp) {
Help.BrowseURL(url);
}
}

GUIStyle style = new GUIStyle();
style.normal.textColor = new Color(0.5f, 0.5f, 1);

GUI.Label(rect, label, style);
}

void RenderErrors() {
if (errors.Count == 0) {
return;
Expand Down

0 comments on commit dd80521

Please sign in to comment.