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

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

Definition at line 239 of file AVR_HookableWizard.cs.

240  {
241  module = EditorGUILayout.BeginToggleGroup(moduleName, module);
242 
243  int index = Mathf.Max(0, System.Array.FindIndex(moduleTypeList, w => w == _selected.choiceName));
244  index = EditorGUILayout.Popup(index, moduleTypeList);
245  _selected = options[index];
246 
247  EditorGUILayout.EndToggleGroup();
248 
249  // See if there are any missing dependencies
250  string[] missing_d = dependencies.Where((s) => !flags[s]).ToArray();
251  // If yes, display error
252  if (module && missing_d.Length > 0)
253  {
254  EditorGUILayout.HelpBox(moduleName + " needs " + string.Join(", ", missing_d), MessageType.Error);
255  }
256 
257  // Set flag for this module
259  }
static Dictionary< string, bool > flags