Exemple #1
0
        private Rect crewType(ExperienceTrait t)
        {
            switch (t.TypeName)
            {
            case "Pilot":
                iconColor = PortraitStats.pilotColor;
                return(new Rect(0, 0.78125f, 0.203125f, 0.203125f));

            case "Engineer":
                iconColor = PortraitStats.engineerColor;
                return(new Rect(0.203125f, 0.78125f, 0.203125f, 0.203125f));

            case "Scientist":
                iconColor = PortraitStats.scientistColor;
                return(new Rect(0.4140625f, 0.78125f, 0.203125f, 0.203125f));

            case "Tourist":
                iconColor = PortraitStats.touristColor;
                return(new Rect(0.6171875f, 0.78125f, 0.203125f, 0.203125f));

            default:
                iconColor = PortraitStats.unknownColor;
                return(new Rect(0.8125f, 0.796875f, 0.203125f, 0.203125f));
            }
        }
 private Rect crewType(ExperienceTrait t)
 {
     switch (t.TypeName)
     {
         case "Pilot":
             iconColor = PortraitStats.pilotColor;
             return new Rect(0, 0.78125f, 0.203125f, 0.203125f);
         case "Engineer":
             iconColor = PortraitStats.engineerColor;
             return new Rect(0.203125f, 0.78125f, 0.203125f, 0.203125f);
         case "Scientist":
             iconColor = PortraitStats.scientistColor;
             return new Rect(0.4140625f, 0.78125f, 0.203125f, 0.203125f);
         case "Tourist":
             iconColor = PortraitStats.touristColor;
             return new Rect(0.6171875f, 0.78125f, 0.203125f, 0.203125f);
         default:
             iconColor = PortraitStats.unknownColor;
             return new Rect(0.8125f, 0.796875f, 0.203125f, 0.203125f);
     }
 }
Exemple #3
0
            /// <summary>
            /// Returns true if the specified crew member matches the trait we're looking for.
            /// </summary>
            /// <param name="crew"></param>
            /// <returns></returns>
            private bool Matches(ProtoCrewMember crew)
            {
                ExperienceTrait trait = crew.experienceTrait;

                if (trait == null)
                {
                    return(false);
                }
                List <ExperienceEffect> effects = trait.Effects;

                if (effects == null)
                {
                    return(false);
                }
                for (int i = 0; i < effects.Count; ++i)
                {
                    ExperienceEffect effect = effects[i];
                    if (effectName == effect.Name)
                    {
                        return(trait.CrewMemberExperienceLevel() >= minLevel);
                    }
                }
                return(false);
            }
Exemple #4
0
 public PksHydroponicsSkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #5
0
 public ExSurveySkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #6
0
 public RepBoost(ExperienceTrait parent) : base(parent)
 {
 }
 public AgronomySkill(ExperienceTrait parent, float[] modifiers)
     : base(parent, modifiers)
 {
 }
		public ExConstructionSkill (ExperienceTrait parent, float[] modifiers) : base (parent, modifiers)
		{
		}
 public FundsBoost(ExperienceTrait parent, float[] modifiers)
     : base(parent, modifiers)
 {
 }
Exemple #10
0
 public ScienceBoost(ExperienceTrait parent) : base(parent)
 {
 }
 public ScienceBoost(ExperienceTrait parent)
     : base(parent)
 {
 }
 public PksScanningSkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #13
0
 public FundsBoost(ExperienceTrait parent) : base(parent)
 {
 }
 public TIInterstellarSkill(ExperienceTrait parent) : base(parent)
 {
 }
 public MedicalSkill(ExperienceTrait parent)
     : base(parent)
 {
 }
 public MedicalSkill(ExperienceTrait parent, float[] modifiers)
     : base(parent, modifiers)
 {
 }
 public PksFarmingSkill(ExperienceTrait parent) : base(parent)
 {
 }
 private Texture2D assignPIcon(ExperienceTrait t)
 {
     switch(t.Title)
     {
         case "Pilot":
             iconColor = Notes_MainMenu.Settings.PilotIconColor;
             return Notes_Resources.pilotIcon;
         case "Engineer":
             iconColor = Notes_MainMenu.Settings.EngineerIconColor;
             return Notes_Resources.engineerIcon;
         case "Scientist":
             iconColor = Notes_MainMenu.Settings.ScientistIconColor;
             return Notes_Resources.scientistIcon;
         case "Tourist":
             iconColor = Notes_MainMenu.Settings.TouristIconColor;
             return Notes_Resources.touristIcon;
         default:
             iconColor = XKCDColors.White;
             return Notes_Resources.defaultIcon;
     }
 }
Exemple #19
0
 public BotanySkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
 public ExplorerSkill(ExperienceTrait parent)
     : base(parent)
 {
 }
Exemple #21
0
 public SandboxAutopilotSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
Exemple #22
0
 public ExplorerSkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #23
0
 public MedicalSkill(ExperienceTrait parent) : base(parent)
 {
 }
 public GeologySkill(ExperienceTrait parent, float[] modifiers)
     : base(parent, modifiers)
 {
 }
 public LogisticsSkill(ExperienceTrait parent)
     : base(parent)
 {
 }
 public GeologySkill(ExperienceTrait parent)
     : base(parent)
 {
 }
 public FundsBoost(ExperienceTrait parent)
     : base(parent)
 {
 }
Exemple #28
0
 public PksConstructionSkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #29
0
 public GeologySkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #30
0
 public PksConstructionSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
 public AgronomySkill(ExperienceTrait parent)
     : base(parent)
 {
 }
		public ExSurveySkill (ExperienceTrait parent) : base (parent)
		{
		}
Exemple #33
0
 public PksHydroponicsSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
		public ExSurveySkill (ExperienceTrait parent, float[] modifiers) : base (parent, modifiers)
		{
		}
Exemple #35
0
 public ExSurveySkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
 public PksManufacturingSkill(ExperienceTrait parent) : base(parent)
 {
 }
 public PksFarmingSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
 public PksManufacturingSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
Exemple #39
0
 public BotanySkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #40
0
 public AgronomySkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
Exemple #41
0
 public ScienceBoost(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
Exemple #42
0
 public AgronomySkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #43
0
 public SandboxAutopilotSkill(ExperienceTrait parent) : base(parent)
 {
 }
Exemple #44
0
 public LogisticsSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
Exemple #45
0
 public MedicalSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers)
 {
 }
Exemple #46
0
 public LogisticsSkill(ExperienceTrait parent) : base(parent)
 {
 }
 public LogisticsSkill(ExperienceTrait parent, float[] modifiers)
     : base(parent, modifiers)
 {
 }
		public ExConstructionSkill (ExperienceTrait parent) : base (parent)
		{
		}