Example #1
0
 protected virtual void DrawTitleBar(string title, string helpbox, string texturePath = null)
 {
     EditorGUI.DrawRect(new Rect(rect.x + 5, rect.y + 10, rect.width - 10, 40), _titleColor);
     if (!string.IsNullOrEmpty(texturePath))
     {
         GUI.DrawTexture(new Rect(rect.x + 10, rect.y + 15, 30, 30), E_Helpers.LoadTexture(texturePath, new Vector2(256, 256)));
     }
     GUILayout.Space(5);
     GUILayout.Label(title, _skin.label);
     GUILayout.Space(10);
     EditorGUILayout.HelpBox(helpbox, MessageType.Info);
 }