Пример #1
0
        // Initializes lists of bodies, planets, and parameters
        private void initialize()
        {
            if (isInitialized)
            {
                return;
            }
            loadsettings();

            pdata = new ProtractorData(FlightGlobals.fetch.activeVessel);
            pcalcs = new ProtractorCalcs(pdata);

            lastknownmainbody = FlightGlobals.fetch.activeVessel.mainBody;

            isInitialized = true;

            bodycolorlist.Add("Kerbin", Utils.hextorgb("a3ede4"));
            bodycolorlist.Add("Moho", Utils.hextorgb("c46a4b"));
            bodycolorlist.Add("Eve", Utils.hextorgb("d3adff"));
            bodycolorlist.Add("Duna", Utils.hextorgb("edb4a6"));
            bodycolorlist.Add("Jool", Utils.hextorgb("8cf068"));
            bodycolorlist.Add("Vall", Utils.hextorgb("969ebf"));
            bodycolorlist.Add("Laythe", Utils.hextorgb("90caeb"));
            bodycolorlist.Add("Tylo", Utils.hextorgb("fedede"));
            bodycolorlist.Add("Bop", Utils.hextorgb("b8a58b"));
            bodycolorlist.Add("Ike", Utils.hextorgb("aeb5ca"));
            bodycolorlist.Add("Gilly", Utils.hextorgb("b8a58b"));
            bodycolorlist.Add("Mun", Utils.hextorgb("aeb5ca"));
            bodycolorlist.Add("Minmus", Utils.hextorgb("a68db8"));
            bodycolorlist.Add("Eeloo", Utils.hextorgb("929292"));
            bodycolorlist.Add("Dres", Utils.hextorgb("917552"));
            bodycolorlist.Add("Pol", Utils.hextorgb("929d6d"));

            if (!KACWrapper.InitKACWrapper())
            {
                Debug.Log("Protractor: KAC integration initialized.");
            }
            Debug.Log("-------------Protractor Initialized-------------");
        }
Пример #2
0
 public ProtractorCalcs(ProtractorData pdata)
 {
     this.pdata = pdata;
 }