1 using System.Collections;
2 using System.Collections.Generic;
7 namespace AVR.UEditor.Core {
15 bool initialized =
false;
18 _titleStyle =
new GUIStyle(GUI.skin.label);
19 _titleStyle.fontStyle = FontStyle.Bold;
21 _labelStyle =
new GUIStyle(GUI.skin.label);
23 logo = AVR.Core.Utils.Misc.Image2Texture(
"Packages/com.avr.core/Package_Resources/avr_logo_vr.png");
29 if(!initialized) init();
31 using (
new EditorGUILayout.HorizontalScope()) {
32 GUILayout.FlexibleSpace();
33 float logo_width = 250;
34 GUILayout.Box(logo, GUILayout.Width(logo_width), GUILayout.Height(logo.height / (logo.width/250)));
35 GUILayout.FlexibleSpace();
40 using (
new EditorGUILayout.HorizontalScope())
42 GUILayout.FlexibleSpace();
46 string path = System.IO.Path.GetFullPath(AVR.Core.AVR_Settings.get_string(
"/editor/documentationPath")+
"index.html");
47 Application.OpenURL(
"file:///" + path);
52 Application.OpenURL(
"https://github.com/MPIB/arc-vr");
57 AVR_Settings_Editor.ShowWindow();
62 AVR_DevConsoleWindow.ShowWindow();
65 GUILayout.FlexibleSpace();
70 using (
new EditorGUILayout.HorizontalScope())
72 GUILayout.FlexibleSpace();
73 using (
new EditorGUILayout.VerticalScope())
75 GUILayout.Label(
"Installed packages:", _titleStyle);
77 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel(
"f00c"); GUILayout.Label(
"arc-vr-core", _labelStyle); }
79 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel(
"f00d"); GUILayout.Label(
"arc-vr-core", _labelStyle); }
82 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel(
"f00c"); GUILayout.Label(
"arc-vr-avatar", _labelStyle); }
84 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel(
"f00d"); GUILayout.Label(
"arc-vr-avatar", _labelStyle); }
87 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel(
"f00c"); GUILayout.Label(
"arc-vr-motion", _labelStyle); }
89 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel(
"f00d"); GUILayout.Label(
"arc-vr-motion", _labelStyle); }
92 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel(
"f00c"); GUILayout.Label(
"arc-vr-phys", _labelStyle); }
94 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel(
"f00d"); GUILayout.Label(
"arc-vr-phys", _labelStyle); }
97 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel(
"f00c"); GUILayout.Label(
"arc-vr-ui", _labelStyle); }
99 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel(
"f00d"); GUILayout.Label(
"arc-vr-ui", _labelStyle); }
102 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel(
"f00c"); GUILayout.Label(
"arc-vr-net", _labelStyle); }
104 using (
new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel(
"f00d"); GUILayout.Label(
"arc-vr-net", _labelStyle); }
107 GUI.contentColor = Color.white;
108 GUILayout.FlexibleSpace();
static bool FAButton(string unicode, bool isBrandIcon=false, int buttonSize=25)