@@ -78,26 +78,16 @@ private void OnEnable()
78
78
int firstLabelWidth = 50 ;
79
79
int secondLabelWidth = 40 ;
80
80
int secondFieldWidth = 150 ;
81
- int thirdLabelWidth = networkingManager . NetworkConfig . EnableEncryption ? 70 : 0 ;
82
- int thirdFieldWidth = networkingManager . NetworkConfig . EnableEncryption ? 10 : 0 ;
83
81
int reduceFirstWidth = 45 ;
84
- int reduceSecondWidth = networkingManager . NetworkConfig . EnableEncryption ? 10 : 0 ;
85
82
86
83
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 ,
88
85
EditorGUIUtility . singleLineHeight ) , element . FindPropertyRelative ( "Name" ) , GUIContent . none ) ;
89
86
90
87
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 ,
93
90
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
- }
101
91
} ;
102
92
103
93
channelsList . drawHeaderCallback = ( Rect rect ) => {
0 commit comments