public InfoBoxAttribute(string text, InfoBoxType type = InfoBoxType.Normal, string visibleIf = null, bool hideWithField = true) { this.Text = text; this.Type = type; this.VisibleIf = visibleIf; this.HideWithField = hideWithField; }
private void DrawInfoBox(string infoText, InfoBoxType infoBoxType) { switch (infoBoxType) { case InfoBoxType.Normal: EditorDrawUtility.DrawHelpBox(infoText, MessageType.Info); break; case InfoBoxType.Warning: EditorDrawUtility.DrawHelpBox(infoText); break; case InfoBoxType.Error: EditorDrawUtility.DrawHelpBox(infoText, MessageType.Error); break; } }
private void DrawInfoBox(string infoText, InfoBoxType infoBoxType) { switch (infoBoxType) { case InfoBoxType.Normal: EditorGUILayout.HelpBox(infoText, MessageType.Info); break; case InfoBoxType.Warning: EditorGUILayout.HelpBox(infoText, MessageType.Warning); break; case InfoBoxType.Error: EditorGUILayout.HelpBox(infoText, MessageType.Error); break; } }
static MessageType InfoBoxTypeToHelpBoxType(InfoBoxType type) { switch (type) { case InfoBoxType.None: return(MessageType.None); case InfoBoxType.Info: return(MessageType.Info); case InfoBoxType.Warning: return(MessageType.Warning); case InfoBoxType.Error: return(MessageType.Error); default: throw new ArgumentOutOfRangeException("type", type, null); } }
private void DrawInfoBox(Rect rect, string infoText, InfoBoxType infoBoxType) { MessageType messageType = MessageType.None; switch (infoBoxType) { case InfoBoxType.Normal: messageType = MessageType.Info; break; case InfoBoxType.Warning: messageType = MessageType.Warning; break; case InfoBoxType.Error: messageType = MessageType.Error; break; } DDFEditorGUI.HelpBox(rect, infoText, messageType); }
public InfoBoxAttribute(string text, InfoBoxType type = InfoBoxType.Normal, string visibleIf = null) { this.text = text; this.type = type; this.visibleIf = visibleIf; }
public InfoBoxAttribute(string text, InfoBoxType type = InfoBoxType.Normal, string visibleIf = null) { Text = text; Type = type; VisibleIf = visibleIf; }
public InfoBoxAttribute(string text, InfoBoxType type = InfoBoxType.Info) { this.text = text; this.type = type; }
public InfoBoxAttribute(string text, InfoBoxType type = InfoBoxType.Normal) { Text = text; Type = type; }