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); } }
/// <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); }
public PksHydroponicsSkill(ExperienceTrait parent) : base(parent) { }
public ExSurveySkill(ExperienceTrait parent) : base(parent) { }
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) { }
public ScienceBoost(ExperienceTrait parent) : base(parent) { }
public PksScanningSkill(ExperienceTrait parent) : base(parent) { }
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; } }
public BotanySkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public ExplorerSkill(ExperienceTrait parent) : base(parent) { }
public SandboxAutopilotSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public GeologySkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public LogisticsSkill(ExperienceTrait parent) : base(parent) { }
public GeologySkill(ExperienceTrait parent) : base(parent) { }
public PksConstructionSkill(ExperienceTrait parent) : base(parent) { }
public PksConstructionSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public AgronomySkill(ExperienceTrait parent) : base(parent) { }
public ExSurveySkill (ExperienceTrait parent) : base (parent) { }
public PksHydroponicsSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public ExSurveySkill (ExperienceTrait parent, float[] modifiers) : base (parent, modifiers) { }
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) { }
public BotanySkill(ExperienceTrait parent) : base(parent) { }
public ScienceBoost(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public SandboxAutopilotSkill(ExperienceTrait parent) : base(parent) { }
public LogisticsSkill(ExperienceTrait parent, float[] modifiers) : base(parent, modifiers) { }
public ExConstructionSkill (ExperienceTrait parent) : base (parent) { }