VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.UEditor.Core.AVR_WizardHook_SimpleToggle< Wiz, Mod >.embed_GUI ( )
inlinevirtual

Reimplemented from AVR.UEditor.Core.AVR_WizardHook< Wiz >.

Definition at line 150 of file AVR_HookableWizard.cs.

151  {
152  module = EditorGUILayout.BeginToggleGroup(moduleName, module);
153  // Nothing to see here
154  EditorGUILayout.EndToggleGroup();
155 
156  // See if there are any missing dependencies
157  string[] missing_d = dependencies.Where((s) => !flags[s]).ToArray();
158  // If yes, display error
159  if(module && missing_d.Length > 0) {
160  EditorGUILayout.HelpBox(moduleName + " needs " + string.Join(", ", missing_d), MessageType.Error);
161  }
162 
163  // Set flag for this module
165  }
static Dictionary< string, bool > flags