private static void EditPerspective(AdventureDataControl adventureData) { // Perspectives EditorGUILayout.LabelField(TC.get("Perspective.Explanation"), EditorStyles.boldLabel); int[] perspectiveValues = { (int)DescriptorData.Perspective.REGULAR, (int)DescriptorData.Perspective.ISOMETRIC }; string[] perspectiveTexts = { TC.get("Perspective.Regular"), TC.get("Perspective.Isometric") }; using (new EditorGUI.DisabledScope(true)) // TODO add perspectives { EditorGUI.BeginChangeCheck(); var newPerspective = EditorGUILayout.IntPopup((int)adventureData.getPerspective(), perspectiveTexts, perspectiveValues); if (EditorGUI.EndChangeCheck()) { adventureData.setPerspective((DescriptorData.Perspective)newPerspective); } } }