@@ -80,6 +80,7 @@ public static void processHook(string chord)
80
80
{ KeyAction . copyNextBoxel , "CTRL C" } ,
81
81
{ KeyAction . showFssInfo , "ALT F" } ,
82
82
{ KeyAction . showBodyInfo , "ALT B" } ,
83
+ { KeyAction . showColonyShopping , "ALT S" } ,
83
84
{ KeyAction . showSystemNotes , "CTRL SHIFT N" } ,
84
85
{ KeyAction . track1 , "ALT CTRL F1" } ,
85
86
{ KeyAction . track2 , "ALT CTRL F2" } ,
@@ -109,6 +110,7 @@ public static bool doKeyAction(KeyAction keyAction)
109
110
case KeyAction . pasteGalMap : return pasteGalMap ( ) ;
110
111
case KeyAction . showFssInfo : return toggleFSSInfo ( ) ;
111
112
case KeyAction . showBodyInfo : return toggleBodyInfo ( ) ;
113
+ case KeyAction . showColonyShopping : return toggleColonyShopping ( ) ;
112
114
case KeyAction . showSystemNotes : return showSystemNotes ( ) ;
113
115
case KeyAction . track1 : return trackLocation ( 1 ) ;
114
116
case KeyAction . track2 : return trackLocation ( 2 ) ;
@@ -299,6 +301,31 @@ private static bool toggleBodyInfo()
299
301
return true ;
300
302
}
301
303
304
+ private static bool toggleColonyShopping ( )
305
+ {
306
+ var plotter = Program . getPlotter < PlotBuildCommodities > ( ) ;
307
+ if ( plotter == null )
308
+ {
309
+ // force show if no plotter
310
+ PlotBuildCommodities . forceShow = true ;
311
+ Program . showPlotter < PlotBuildCommodities > ( ) ;
312
+ }
313
+ else if ( PlotBuildCommodities . forceShow )
314
+ {
315
+ // unforce (hide)
316
+ PlotBuildCommodities . forceShow = false ;
317
+ Program . closePlotter < PlotBuildCommodities > ( ) ;
318
+ }
319
+ else
320
+ {
321
+ // the plotter exists and was not forced ... toggle forceHide on it
322
+ plotter . forceHide = ! plotter . forceHide ;
323
+ if ( ! plotter . forceHide ) PlotBuildCommodities . forceShow = false ;
324
+ }
325
+
326
+ return true ;
327
+ }
328
+
302
329
private static bool showSystemNotes ( )
303
330
{
304
331
if ( Game . activeGame ? . isShutdown == false && Game . activeGame . fsdJumping == false && Game . activeGame . systemData != null )
@@ -346,6 +373,8 @@ enum KeyAction
346
373
showBodyInfo ,
347
374
/// <summary> Make the system notes window appear </summary>
348
375
showSystemNotes ,
376
+ /// <summary> Make the PlotBuildNew appear </summary>
377
+ showColonyShopping ,
349
378
/// <summary> Track the current location as #1 </summary>
350
379
track1 ,
351
380
/// <summary> Track the current location as #2 </summary>
0 commit comments