@@ -102,22 +102,22 @@ public override void OnInspectorGUI()
102
102
// }
103
103
104
104
// rom dropdown
105
- EditorGUI . BeginDisabledGroup ( _gle . Game == null ) ;
106
- EditorGUI . BeginChangeCheck ( ) ;
107
- _selectedRomIndex = EditorGUILayout . Popup ( "ROM" , _selectedRomIndex , _romNames ) ;
108
- if ( EditorGUI . EndChangeCheck ( ) ) {
109
- _gle . romId = Rom . Id ;
110
- }
111
-
112
- // info label
113
- EditorGUILayout . LabelField ( "ROM ID" , _gle . romId ) ;
105
+ // EditorGUI.BeginDisabledGroup(_gle.Game == null);
106
+ // EditorGUI.BeginChangeCheck();
107
+ // _selectedRomIndex = EditorGUILayout.Popup("ROM", _selectedRomIndex, _romNames);
108
+ // if (EditorGUI.EndChangeCheck()) {
109
+ // _gle.romId = Rom.Id;
110
+ // }
111
+ //
112
+ // // info label
113
+ // EditorGUILayout.LabelField("ROM ID", _gle.romId);
114
114
115
- EditorGUI . EndDisabledGroup ( ) ;
115
+ // EditorGUI.EndDisabledGroup();
116
116
117
117
EditorGUILayout . Space ( ) ;
118
118
EditorGUILayout . Separator ( ) ;
119
119
120
- EditorGUI . BeginDisabledGroup ( ! IsGameSet || Application . isPlaying ) ;
120
+ // EditorGUI.BeginDisabledGroup(!IsGameSet || Application.isPlaying);
121
121
if ( GUILayout . Button ( "Populate Hardware" ) ) {
122
122
if ( EditorUtility . DisplayDialog ( "PinMAME" , "This will clear all linked switches, coils and lamps and re-populate them. You sure you want to do that?" , "Yes" , "No" ) ) {
123
123
_tableAuthoring . RepopulateHardware ( _gle ) ;
@@ -137,7 +137,7 @@ public override void OnInspectorGUI()
137
137
SceneView . RepaintAll ( ) ;
138
138
}
139
139
}
140
- EditorGUI . EndDisabledGroup ( ) ;
140
+ // EditorGUI.EndDisabledGroup();
141
141
}
142
142
143
143
private void CreateDisplays ( IEnumerable < DisplayAuthoring > sceneDisplays )
@@ -241,6 +241,7 @@ private static int ConvertSeparatorType(PinMameDisplayType layoutType)
241
241
case PinMameDisplayType . Seg9 :
242
242
case PinMameDisplayType . Seg16N :
243
243
case PinMameDisplayType . Seg7 | PinMameDisplayType . NoDisp :
244
+ case PinMameDisplayType . Seg16S :
244
245
return 0 ;
245
246
246
247
case PinMameDisplayType . Seg16D :
@@ -261,7 +262,6 @@ private static int ConvertSeparatorType(PinMameDisplayType layoutType)
261
262
case PinMameDisplayType . Seg98F :
262
263
case PinMameDisplayType . Seg10 :
263
264
case PinMameDisplayType . Seg16 :
264
- case PinMameDisplayType . Seg16S :
265
265
case PinMameDisplayType . Seg16R :
266
266
return 2 ;
267
267
@@ -313,11 +313,13 @@ private static int ConvertNumSegments(PinMameDisplayType layoutType)
313
313
314
314
case PinMameDisplayType . Seg16 :
315
315
case PinMameDisplayType . Seg16R :
316
- case PinMameDisplayType . Seg16S :
317
316
case PinMameDisplayType . Seg16N :
318
317
case PinMameDisplayType . Seg16D :
319
318
return 14 ;
320
319
320
+ case PinMameDisplayType . Seg16S :
321
+ return 16 ;
322
+
321
323
default :
322
324
throw new ArgumentOutOfRangeException ( nameof ( layoutType ) , layoutType , "Unknown segment display size" ) ;
323
325
}
0 commit comments