private static void EditDragBehaviour(AdventureDataControl adventureData) { EditorGUILayout.LabelField(TC.get("DragBehaviour.Explanation"), EditorStyles.boldLabel); int[] dragValues = { (int)DescriptorData.DragBehaviour.CONSIDER_NON_TARGETS, (int)DescriptorData.DragBehaviour.IGNORE_NON_TARGETS }; string[] dragTexts = { TC.get("DragBehaviour.ConsiderNonTargets"), TC.get("DragBehaviour.IgnoreNonTrargets") }; using (new EditorGUI.DisabledScope(true)) // TODO add drag values { EditorGUI.BeginChangeCheck(); var newDrag = EditorGUILayout.IntPopup((int)adventureData.getDragBehaviour(), dragTexts, dragValues); if (EditorGUI.EndChangeCheck()) { adventureData.setDragBehaviour((DescriptorData.DragBehaviour)newDrag); } } }