VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.UEditor.Core.AVR_ArcVRWindow.OnGUI ( )
inlineprivate

Definition at line 28 of file AVR_ArcVRWindow.cs.

28  {
29  if(!initialized) init();
30 
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();
36  }
37 
38  GUILayout.Space(10);
39 
40  using (new EditorGUILayout.HorizontalScope())
41  {
42  GUILayout.FlexibleSpace();
43 
44  if (AVR_EditorUtility.FAButton("f02d", buttonSize:35))
45  {
46  string path = System.IO.Path.GetFullPath(AVR.Core.AVR_Settings.get_string("/editor/documentationPath")+"index.html");
47  Application.OpenURL("file:///" + path);
48  }
49 
50  if (AVR_EditorUtility.FAButton("f09b", isBrandIcon:true, buttonSize:35))
51  {
52  Application.OpenURL("https://github.com/MPIB/arc-vr");
53  }
54 
55  if (AVR_EditorUtility.FAButton("f013", buttonSize: 35))
56  {
57  AVR_Settings_Editor.ShowWindow();
58  }
59 
60  if (AVR_EditorUtility.FAButton("f120", buttonSize: 35))
61  {
62  AVR_DevConsoleWindow.ShowWindow();
63  }
64 
65  GUILayout.FlexibleSpace();
66  }
67 
68  GUILayout.Space(10);
69 
70  using (new EditorGUILayout.HorizontalScope())
71  {
72  GUILayout.FlexibleSpace();
73  using (new EditorGUILayout.VerticalScope())
74  {
75  GUILayout.Label("Installed packages:", _titleStyle);
76  #if AVR_CORE
77  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel("f00c"); GUILayout.Label("arc-vr-core", _labelStyle); }
78  #else
79  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel("f00d"); GUILayout.Label("arc-vr-core", _labelStyle); }
80  #endif
81  #if AVR_AVATAR
82  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel("f00c"); GUILayout.Label("arc-vr-avatar", _labelStyle); }
83  #else
84  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel("f00d"); GUILayout.Label("arc-vr-avatar", _labelStyle); }
85  #endif
86  #if AVR_MOTION
87  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel("f00c"); GUILayout.Label("arc-vr-motion", _labelStyle); }
88  #else
89  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel("f00d"); GUILayout.Label("arc-vr-motion", _labelStyle); }
90  #endif
91  #if AVR_PHYS
92  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel("f00c"); GUILayout.Label("arc-vr-phys", _labelStyle); }
93  #else
94  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel("f00d"); GUILayout.Label("arc-vr-phys", _labelStyle); }
95  #endif
96  #if AVR_UI
97  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel("f00c"); GUILayout.Label("arc-vr-ui", _labelStyle); }
98  #else
99  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel("f00d"); GUILayout.Label("arc-vr-ui", _labelStyle); }
100  #endif
101  #if AVR_NET
102  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.green; AVR_EditorUtility.FALabel("f00c"); GUILayout.Label("arc-vr-net", _labelStyle); }
103  #else
104  using (new EditorGUILayout.HorizontalScope()) { GUI.contentColor=Color.grey; AVR_EditorUtility.FALabel("f00d"); GUILayout.Label("arc-vr-net", _labelStyle); }
105  #endif
106  }
107  GUI.contentColor = Color.white;
108  GUILayout.FlexibleSpace();
109  }
110  }