@@ -188,11 +188,11 @@ public ParticleAcceleratorControlMenu(ParticleAcceleratorBoundUserInterface owne
188
188
new MarginContainer
189
189
{
190
190
MarginLeftOverride = 4 ,
191
+ SizeFlagsHorizontal = SizeFlags . FillExpand ,
191
192
Children =
192
193
{
193
194
new VBoxContainer
194
195
{
195
- SizeFlagsHorizontal = SizeFlags . FillExpand ,
196
196
Children =
197
197
{
198
198
new HBoxContainer
@@ -246,55 +246,61 @@ public ParticleAcceleratorControlMenu(ParticleAcceleratorBoundUserInterface owne
246
246
}
247
247
}
248
248
} ,
249
- new VBoxContainer
249
+ new MarginContainer
250
250
{
251
- SizeFlagsHorizontal = SizeFlags . FillExpand ,
251
+ CustomMinimumSize = ( 186 , 0 ) ,
252
252
Children =
253
253
{
254
- ( _statusLabel = new Label
255
- {
256
- SizeFlagsHorizontal = SizeFlags . ShrinkCenter
257
- } ) ,
258
- new Control
259
- {
260
- CustomMinimumSize = ( 0 , 20 )
261
- } ,
262
- new PanelContainer
254
+ new VBoxContainer
263
255
{
264
- SizeFlagsHorizontal = SizeFlags . ShrinkCenter ,
265
- PanelOverride = back2 ,
266
256
Children =
267
257
{
268
- new GridContainer
258
+ ( _statusLabel = new Label
259
+ {
260
+ SizeFlagsHorizontal = SizeFlags . ShrinkCenter
261
+ } ) ,
262
+ new Control
269
263
{
270
- Columns = 3 ,
271
- VSeparationOverride = 0 ,
272
- HSeparationOverride = 0 ,
264
+ CustomMinimumSize = ( 0 , 20 )
265
+ } ,
266
+ new PanelContainer
267
+ {
268
+ SizeFlagsHorizontal = SizeFlags . ShrinkCenter ,
269
+ PanelOverride = back2 ,
273
270
Children =
274
271
{
275
- new Control { CustomMinimumSize = imgSize } ,
276
- ( _endCapTexture = Segment ( "end_cap" ) ) ,
277
- new Control { CustomMinimumSize = imgSize } ,
278
- ( _controlBoxTexture = Segment ( "control_box" ) ) ,
279
- ( _fuelChamberTexture = Segment ( "fuel_chamber" ) ) ,
280
- new Control { CustomMinimumSize = imgSize } ,
281
- new Control { CustomMinimumSize = imgSize } ,
282
- ( _powerBoxTexture = Segment ( "power_box" ) ) ,
283
- new Control { CustomMinimumSize = imgSize } ,
284
- ( _emitterLeftTexture = Segment ( "emitter_left" ) ) ,
285
- ( _emitterCenterTexture = Segment ( "emitter_center" ) ) ,
286
- ( _emitterRightTexture = Segment ( "emitter_right" ) ) ,
272
+ new GridContainer
273
+ {
274
+ Columns = 3 ,
275
+ VSeparationOverride = 0 ,
276
+ HSeparationOverride = 0 ,
277
+ Children =
278
+ {
279
+ new Control { CustomMinimumSize = imgSize } ,
280
+ ( _endCapTexture = Segment ( "end_cap" ) ) ,
281
+ new Control { CustomMinimumSize = imgSize } ,
282
+ ( _controlBoxTexture = Segment ( "control_box" ) ) ,
283
+ ( _fuelChamberTexture = Segment ( "fuel_chamber" ) ) ,
284
+ new Control { CustomMinimumSize = imgSize } ,
285
+ new Control { CustomMinimumSize = imgSize } ,
286
+ ( _powerBoxTexture = Segment ( "power_box" ) ) ,
287
+ new Control { CustomMinimumSize = imgSize } ,
288
+ ( _emitterLeftTexture = Segment ( "emitter_left" ) ) ,
289
+ ( _emitterCenterTexture = Segment ( "emitter_center" ) ) ,
290
+ ( _emitterRightTexture = Segment ( "emitter_right" ) ) ,
291
+ }
292
+ }
287
293
}
288
- }
294
+ } ,
295
+ ( _scanButton = new Button
296
+ {
297
+ Text = Loc . GetString ( "Scan Parts" ) ,
298
+ SizeFlagsHorizontal = SizeFlags . ShrinkCenter
299
+ } )
289
300
}
290
- } ,
291
- ( _scanButton = new Button
292
- {
293
- Text = Loc . GetString ( "Scan Parts" ) ,
294
- SizeFlagsHorizontal = SizeFlags . ShrinkCenter
295
- } )
301
+ }
296
302
}
297
- }
303
+ } ,
298
304
}
299
305
} ,
300
306
new StripeBack
@@ -507,7 +513,7 @@ public PASegmentControl(ParticleAcceleratorControlMenu menu, IResourceCache cach
507
513
public void SetPowerState ( ParticleAcceleratorUIState state , bool exists )
508
514
{
509
515
_base . ShaderOverride = exists ? null : _menu . _greyScaleShader ;
510
- _base . ModulateSelfOverride = exists ? ( Color ? ) null : new Color ( 127 , 127 , 127 ) ;
516
+ _base . ModulateSelfOverride = exists ? ( Color ? ) null : new Color ( 127 , 127 , 127 ) ;
511
517
512
518
if ( ! state . Enabled || ! exists )
513
519
{
0 commit comments