public void setup(bool a, bool b, bool c, bool d, bool e, bool f, bool g, ModuleEVATransfer mod)
        {
            evaModule = mod;

            if (evaModule == null)
            {
                return;
            }

            TooltipsEnabled = evaModule.tooltips;

            if (a)
            {
                addResource("LiquidFuel");
            }
            if (b)
            {
                addResource("Oxidizer");
            }
            if (c)
            {
                addResource("MonoPropellant");
            }
            if (d)
            {
                addResource("XenonGas");
            }
            if (e)
            {
                addResource("ElectricCharge");
            }
            if (f)
            {
                addResource("Ore");
            }
            if (g)
            {
                addAllResources();
            }

            if (a && b)
            {
                if (!EVATransfer_Startup.loadedResources.ContainsKey("LiquidFuel") || !EVATransfer_Startup.loadedResources.ContainsKey("Oxidizer"))
                {
                    return;
                }

                lfloxGroup = new LFLOXTransferGroup(EVATransfer_Startup.loadedResources["LiquidFuel"], EVATransfer_Startup.loadedResources["Oxidizer"], evaModule.loxlfTransferRatio);

                transferLFLOX = true;
            }
        }
Пример #2
0
        public void setup(bool a, bool b, bool c, bool d, bool e, bool f, bool g, ModuleEVATransfer mod)
        {
            evaModule = mod;

            if (evaModule == null)
                return;

            TooltipsEnabled = evaModule.tooltips;

            if (a)
                addResource("LiquidFuel");
            if (b)
                addResource("Oxidizer");
            if (c)
                addResource("MonoPropellant");
            if (d)
                addResource("XenonGas");
            if (e)
                addResource("ElectricCharge");
            if (f)
                addResource("Ore");
            if (g)
                addAllResources();

            if (a && b)
            {
                if (!EVATransfer_Startup.loadedResources.ContainsKey("LiquidFuel") || !EVATransfer_Startup.loadedResources.ContainsKey("Oxidizer"))
                    return;

                lfloxGroup = new LFLOXTransferGroup(EVATransfer_Startup.loadedResources["LiquidFuel"], EVATransfer_Startup.loadedResources["Oxidizer"], evaModule.loxlfTransferRatio);

                transferLFLOX = true;
            }
        }