public ModuleMenuWindow(MKStationWindow mKStationWindow)
        {
            doCloseX = true;

            mkStationWindow = mKStationWindow;

            canUse = new Dictionary <MKStationModuleDef, string>();
            foreach (var module in DefDatabase <MKStationModuleDef> .AllDefs)
            {
                if (!CanUseRightNow(module.Item, mkStationWindow.mkStation.Map, out string reason))
                {
                    canUse.Add(module, reason);
                }
            }
        }
        public ArmorModuleWindow(MKStationWindow mKStationWindow, ArmorModuleCategory category)
        {
            doCloseX = true;

            tab = category;

            mkStationWindow = mKStationWindow;

            canUse = new Dictionary <ArmorModuleDef, string>();
            foreach (var module in DefDatabase <ArmorModuleDef> .AllDefs)
            {
                if (!CanUseRightNow(module.Item, mkStationWindow.mkStation.Map, module, out string reason))
                {
                    canUse.Add(module, reason);
                }
            }
        }