Skip to content

Commit f0c3d85

Browse files
committed
- Remove support total numbers
- Replace rough json text box with grid of up/down controls
1 parent 27f2ea9 commit f0c3d85

11 files changed

+478
-142
lines changed

SrvSurvey/KeyChords.cs

+29
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static void processHook(string chord)
8080
{ KeyAction.copyNextBoxel, "CTRL C" },
8181
{ KeyAction.showFssInfo, "ALT F" },
8282
{ KeyAction.showBodyInfo, "ALT B" },
83+
{ KeyAction.showColonyShopping, "ALT S" },
8384
{ KeyAction.showSystemNotes, "CTRL SHIFT N" },
8485
{ KeyAction.track1, "ALT CTRL F1" },
8586
{ KeyAction.track2, "ALT CTRL F2" },
@@ -109,6 +110,7 @@ public static bool doKeyAction(KeyAction keyAction)
109110
case KeyAction.pasteGalMap: return pasteGalMap();
110111
case KeyAction.showFssInfo: return toggleFSSInfo();
111112
case KeyAction.showBodyInfo: return toggleBodyInfo();
113+
case KeyAction.showColonyShopping: return toggleColonyShopping();
112114
case KeyAction.showSystemNotes: return showSystemNotes();
113115
case KeyAction.track1: return trackLocation(1);
114116
case KeyAction.track2: return trackLocation(2);
@@ -299,6 +301,31 @@ private static bool toggleBodyInfo()
299301
return true;
300302
}
301303

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+
302329
private static bool showSystemNotes()
303330
{
304331
if (Game.activeGame?.isShutdown == false && Game.activeGame.fsdJumping == false && Game.activeGame.systemData != null)
@@ -346,6 +373,8 @@ enum KeyAction
346373
showBodyInfo,
347374
/// <summary> Make the system notes window appear </summary>
348375
showSystemNotes,
376+
/// <summary> Make the PlotBuildNew appear </summary>
377+
showColonyShopping,
349378
/// <summary> Track the current location as #1 </summary>
350379
track1,
351380
/// <summary> Track the current location as #2 </summary>

SrvSurvey/forms/FormBuildAssign.Designer.cs

+18-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SrvSurvey/forms/FormBuildNew.Designer.cs

+63-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)