@@ -78,26 +78,16 @@ private void OnEnable()
7878 int firstLabelWidth = 50 ;
7979 int secondLabelWidth = 40 ;
8080 int secondFieldWidth = 150 ;
81- int thirdLabelWidth = networkingManager . NetworkConfig . EnableEncryption ? 70 : 0 ;
82- int thirdFieldWidth = networkingManager . NetworkConfig . EnableEncryption ? 10 : 0 ;
8381 int reduceFirstWidth = 45 ;
84- int reduceSecondWidth = networkingManager . NetworkConfig . EnableEncryption ? 10 : 0 ;
8582
8683 EditorGUI . LabelField ( new Rect ( rect . x , rect . y , firstLabelWidth , EditorGUIUtility . singleLineHeight ) , "Name" ) ;
87- EditorGUI . PropertyField ( new Rect ( rect . x + firstLabelWidth , rect . y , rect . width - firstLabelWidth - secondLabelWidth - secondFieldWidth - thirdFieldWidth - thirdLabelWidth - reduceFirstWidth ,
84+ EditorGUI . PropertyField ( new Rect ( rect . x + firstLabelWidth , rect . y , rect . width - firstLabelWidth - secondLabelWidth - secondFieldWidth - reduceFirstWidth ,
8885 EditorGUIUtility . singleLineHeight ) , element . FindPropertyRelative ( "Name" ) , GUIContent . none ) ;
8986
9087
91- EditorGUI . LabelField ( new Rect ( rect . width - secondLabelWidth - secondFieldWidth - thirdFieldWidth - thirdLabelWidth , rect . y , secondLabelWidth , EditorGUIUtility . singleLineHeight ) , "Type" ) ;
92- EditorGUI . PropertyField ( new Rect ( rect . width - secondFieldWidth - thirdLabelWidth - thirdFieldWidth , rect . y , secondFieldWidth - reduceSecondWidth ,
88+ EditorGUI . LabelField ( new Rect ( rect . width - secondLabelWidth - secondFieldWidth , rect . y , secondLabelWidth , EditorGUIUtility . singleLineHeight ) , "Type" ) ;
89+ EditorGUI . PropertyField ( new Rect ( rect . width - secondFieldWidth , rect . y , secondFieldWidth ,
9390 EditorGUIUtility . singleLineHeight ) , element . FindPropertyRelative ( "Type" ) , GUIContent . none ) ;
94-
95- if ( networkingManager . NetworkConfig . EnableEncryption )
96- {
97- EditorGUI . LabelField ( new Rect ( rect . width - thirdFieldWidth - thirdLabelWidth , rect . y , thirdLabelWidth , EditorGUIUtility . singleLineHeight ) , "Encrypted" ) ;
98- EditorGUI . PropertyField ( new Rect ( rect . width - thirdFieldWidth , rect . y , secondFieldWidth ,
99- EditorGUIUtility . singleLineHeight ) , element . FindPropertyRelative ( "Encrypted" ) , GUIContent . none ) ;
100- }
10191 } ;
10292
10393 channelsList . drawHeaderCallback = ( Rect rect ) => {
0 commit comments