コード例 #1
0
        private void IconBaseGUI(string fieldLabel, CursorIconBase icon, string apiPrefix, string tooltip = "", bool includeAlwaysAnimate = true)
        {
            if (fieldLabel != "" && fieldLabel.Length > 0)
            {
                EditorGUILayout.LabelField(fieldLabel, CustomStyles.subHeader);
            }

            icon.ShowGUI(true, includeAlwaysAnimate, "Texture:", cursorRendering, apiPrefix, tooltip);
            GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1));
        }
コード例 #2
0
        private void IconBaseGUI(string fieldLabel, CursorIconBase icon, string apiPrefix)
        {
            if (fieldLabel != "")
            {
                EditorGUILayout.LabelField(fieldLabel, CustomStyles.subHeader);
            }

            icon.ShowGUI(true, "Texture:", cursorRendering, apiPrefix);
            GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1));
        }
コード例 #3
0
ファイル: MenuGraphic.cs プロジェクト: UniSpark/speechGame
        public override void ShowGUI(MenuSource source)
        {
            EditorGUILayout.BeginVertical("Button");

            if (source != MenuSource.AdventureCreator)
            {
                uiImage = LinkedUiGUI <Image> (uiImage, "Linked Image:", source);
                EditorGUILayout.EndVertical();
                EditorGUILayout.BeginVertical("Button");
            }

            graphicType = (AC_GraphicType)EditorGUILayout.EnumPopup("Graphic type:", graphicType);
            if (graphicType == AC_GraphicType.Normal)
            {
                graphic.ShowGUI(false);
            }
            EditorGUILayout.EndVertical();

            base.ShowGUI(source);
        }
コード例 #4
0
		private void IconBaseGUI (string fieldLabel, CursorIconBase icon)
		{
			EditorGUILayout.LabelField (fieldLabel, EditorStyles.boldLabel);
			icon.ShowGUI (true, cursorRendering);
			GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1));
		}
コード例 #5
0
 public void ShowGUI()
 {
     label = EditorGUILayout.TextField("Name:", label);
     portraitIcon.ShowGUI(false);
     GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1));
 }
コード例 #6
0
 private void IconBaseGUI(string fieldLabel, CursorIconBase icon)
 {
     EditorGUILayout.LabelField(fieldLabel, EditorStyles.boldLabel);
     icon.ShowGUI(true, cursorRendering);
     GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1));
 }