Beispiel #1
0
        private void LookIconGUI()
        {
            if (cursorIcons.Count > 0)
            {
                int lookCursor_int = GetIntFromID(lookCursor_ID);
                lookCursor_int = CustomGUILayout.Popup("Examine icon:", lookCursor_int, GetLabelsArray(), "AC.KickStarter.cursorManager.lookCursor_ID", "The Cursor that represents the 'Examine' Interaction");
                lookCursor_ID  = cursorIcons[lookCursor_int].id;

                EditorGUILayout.LabelField(new GUIContent("When Use and Examine interactions are both available:", "What happens when hovering over a Hotspot that has both a Use and Examine Interaction"));
                lookUseCursorAction = (LookUseCursorAction)CustomGUILayout.EnumPopup(" ", lookUseCursorAction, "AC.KickStarter.cursorManager.lookUseCursorAction");
                if (cursorRendering == CursorRendering.Hardware && lookUseCursorAction == LookUseCursorAction.DisplayBothSideBySide)
                {
                    EditorGUILayout.HelpBox("This mode is not available with Hardward cursor rendering.", MessageType.Warning);
                }

                if (lookUseCursorAction != LookUseCursorAction.RightClickCyclesModes)
                {
                    EditorGUILayout.BeginHorizontal();
                    EditorGUILayout.LabelField(new GUIContent("Left-click to examine when no use interaction exists?", "If True, then left-clicking a Hotspot will examine it if no 'Use' Interaction exists"), GUILayout.Width(300f));
                    leftClickExamine = CustomGUILayout.Toggle(leftClickExamine, "AC.KickStarter.cursorManager.leftClickExamine");
                    EditorGUILayout.EndHorizontal();
                }
            }
        }
		private void LookIconGUI ()
		{
			if (cursorIcons.Count > 0)
			{
				lookCursor_int = GetIntFromID (lookCursor_ID);
				lookCursor_int = EditorGUILayout.Popup ("Examine icon:", lookCursor_int, GetLabelsArray (lookCursor_int));
				lookCursor_ID = cursorIcons[lookCursor_int].id;

				EditorGUILayout.LabelField ("When Use and Examine interactions are both available:");
				lookUseCursorAction = (LookUseCursorAction) EditorGUILayout.EnumPopup (" ", lookUseCursorAction);

				EditorGUILayout.BeginHorizontal ();
				EditorGUILayout.LabelField ("Left-click to examine when no use interaction exists?", GUILayout.Width (300f));
				leftClickExamine = EditorGUILayout.Toggle (leftClickExamine);
				EditorGUILayout.EndHorizontal ();
			}
		}