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)); }
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)); }
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); }
private void IconBaseGUI (string fieldLabel, CursorIconBase icon) { EditorGUILayout.LabelField (fieldLabel, EditorStyles.boldLabel); icon.ShowGUI (true, cursorRendering); GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1)); }
public void ShowGUI() { label = EditorGUILayout.TextField("Name:", label); portraitIcon.ShowGUI(false); GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1)); }
private void IconBaseGUI(string fieldLabel, CursorIconBase icon) { EditorGUILayout.LabelField(fieldLabel, EditorStyles.boldLabel); icon.ShowGUI(true, cursorRendering); GUILayout.Box("", GUILayout.ExpandWidth(true), GUILayout.Height(1)); }