public override void AddNameProperty(ObjectPropertyList list) { PlantHueInfo info = PlantHueInfo.GetInfo(m_PlantHue); if (Amount > 1) { list.Add(info.IsBright() ? 1113272 : 1113274, string.Format("{0}\t#{1}", Amount.ToString(), info.Name)); //~1_AMOUNT~ bright ~2_COLOR~ plant clippings } else { list.Add(info.IsBright() ? 1112121 : 1112122, string.Format("#{0}", info.Name)); //bright ~1_COLOR~ plant clippings } }
public int GetPlantLabelPlant(PlantHueInfo hueInfo) { if (m_PlantLabelPlant != -1) { return(m_PlantLabelPlant); } if (m_ContainsPlant) { return(hueInfo.IsBright() ? 1060832 : 1060831); // a ~1_val~ of ~2_val~ dirt with a ~3_val~ [bright] ~4_val~ ~5_val~ } return(hueInfo.IsBright() ? 1061887 : 1061888); // a ~1_val~ of ~2_val~ dirt with a ~3_val~ [bright] ~4_val~ ~5_val~ ~6_val~ }
public int GetPlantLabelFullGrown(PlantHueInfo hueInfo) { if (m_PlantLabelFullGrown != -1) { return m_PlantLabelFullGrown; } if (ContainsPlant) { return hueInfo.IsBright() ? 1061891 : 1061889; // a ~1_HEALTH~ [bright] ~2_COLOR~ ~3_NAME~ } return hueInfo.IsBright() ? 1061892 : 1061890; // a ~1_HEALTH~ [bright] ~2_COLOR~ ~3_NAME~ plant }
public override void AddNameProperty(ObjectPropertyList list) { PlantHueInfo info = PlantHueInfo.GetInfo(m_PlantHue); int cliloc; if (Amount > 1) { cliloc = info.IsBright() ? 1113273 : 1113275; list.Add(cliloc, string.Format("{0}\t#{1}", Amount.ToString(), info.Name)); } else { cliloc = info.IsBright() ? 1112288 : 1112289; list.Add(cliloc, string.Format("#{0}", info.Name)); } }
public int GetPlantLabelSeed(PlantHueInfo hueInfo) { if (m_PlantLabelSeed != -1) { return(m_PlantLabelSeed); } return(hueInfo.IsBright() ? 1061887 : 1061888); // a ~1_val~ of ~2_val~ dirt with a ~3_val~ [bright] ~4_val~ ~5_val~ ~6_val~ }
public int GetPlantLabelDecorative(PlantHueInfo hueInfo) { if (m_PlantLabelDecorative != -1) { return(m_PlantLabelDecorative); } return(hueInfo.IsBright() ? 1074267 : 1070973); // a decorative [bright] ~1_COLOR~ ~2_TYPE~ }
public int GetSeedLabel(PlantHueInfo hueInfo) { if (m_SeedLabel != -1) { return(m_SeedLabel); } return(hueInfo.IsBright() ? 1061918 : 1061917); // [bright] ~1_COLOR~ ~2_TYPE~ seed }
public int GetSeedLabelPlural(PlantHueInfo hueInfo) { if (m_SeedLabelPlural != -1) { return(m_SeedLabelPlural); } return(hueInfo.IsBright() ? 1113493 : 1113492); // ~1_amount~ [bright] ~2_color~ ~3_type~ seeds }
public override LocalizedText GetNameProperty() { PlantHueInfo info = PlantHueInfo.GetInfo(m_PlantHue); if (Amount != 1) { return(new LocalizedText(info.IsBright() ? 1113271 // ~1_AMOUNT~ bright ~2_COLOR~ plant pigments : 1113270 // ~1_AMOUNT~ ~2_COLOR~ plant pigments , String.Format("{0}\t#{1}", Amount, info.Name))); } else { return(new LocalizedText(info.IsBright() ? 1112134 // bright ~1_COLOR~ plant pigment : 1112133 // ~1_COLOR~ plant pigment , String.Format("#{0}", info.Name))); } }
public override LocalizedText GetNameProperty() { PlantHueInfo info = PlantHueInfo.GetInfo(m_PlantHue); if (Amount != 1) { return(new LocalizedText(info.IsBright() ? 1113277 // ~1_AMOUNT~ bright ~2_COLOR~ natural dyes : 1113276 // ~1_AMOUNT~ ~2_COLOR~ natural dyes , String.Format("{0}\t#{1}", Amount, info.Name))); } else { return(new LocalizedText(info.IsBright() ? 1112138 // bright ~1_COLOR~ natural dye : 1112137 // ~1_COLOR~ natural dye , String.Format("#{0}", info.Name))); } }
public override LocalizedText GetNameProperty() { PlantHueInfo info = PlantHueInfo.GetInfo(m_PlantHue); if (Amount != 1) { return(new LocalizedText(info.IsBright() ? 1113322 // ~1_AMOUNT~ bright ~2_COLOR~ softened reeds : 1113323 // ~1_AMOUNT~ ~2_COLOR~ softened reeds , String.Format("{0}\t#{1}", Amount, info.Name))); } else { return(new LocalizedText(info.IsBright() ? 1112347 // bright ~1_COLOR~ softened reeds : 1112346 // ~1_COLOR~ softened reeds , String.Format("#{0}", info.Name))); } }
//master constructor public SeedListEntry(Item item) : base(item) { Seed seed = (Seed)item; _PlantType = seed.PlantType; _PlantHue = seed.PlantHue; _ShowType = seed.ShowType; //TODO: find a way to using the PlantTypeInfo cliloc values PlantHueInfo hueInfo = PlantHueInfo.GetInfo(seed.PlantHue); PlantTypeInfo typeInfo = PlantTypeInfo.GetInfo(seed.PlantType); _Name = CliLoc.LocToString(hueInfo.IsBright() ? 1061918 : 1061917, String.Concat("#", hueInfo.Name.ToString(), "\t#", typeInfo.Name.ToString())); // [bright] ~1_COLOR~ ~2_TYPE~ seed //_PlantType.ToString(); }
public int GetPlantLabelSeed( PlantHueInfo hueInfo ) { if ( m_PlantLabelSeed != -1 ) return m_PlantLabelSeed; return hueInfo.IsBright() ? 1061887 : 1061888; // a ~1_val~ of ~2_val~ dirt with a ~3_val~ [bright] ~4_val~ ~5_val~ ~6_val~ }
public int GetPlantLabelFullGrown( PlantHueInfo hueInfo ) { if ( m_PlantLabelFullGrown != -1 ) return m_PlantLabelFullGrown; if ( m_ContainsPlant ) return hueInfo.IsBright() ? 1061891 : 1061889; // a ~1_HEALTH~ [bright] ~2_COLOR~ ~3_NAME~ else return hueInfo.IsBright() ? 1061892 : 1061890; // a ~1_HEALTH~ [bright] ~2_COLOR~ ~3_NAME~ plant }
public int GetPlantLabelDecorative( PlantHueInfo hueInfo ) { if ( m_PlantLabelDecorative != -1 ) return m_PlantLabelDecorative; return hueInfo.IsBright() ? 1074267 : 1070973; // a decorative [bright] ~1_COLOR~ ~2_TYPE~ }
public int GetSeedLabel( PlantHueInfo hueInfo ) { if ( m_SeedLabel != -1 ) return m_SeedLabel; return hueInfo.IsBright() ? 1061918 : 1061917; // [bright] ~1_COLOR~ ~2_TYPE~ seed }
public int GetSeedLabelPlural( PlantHueInfo hueInfo ) { if ( m_SeedLabelPlural != -1 ) return m_SeedLabelPlural; return hueInfo.IsBright() ? 1113493 : 1113492; // ~1_amount~ [bright] ~2_color~ ~3_type~ seeds }
public int GetPlantLabelPlant( PlantHueInfo hueInfo ) { if ( m_PlantLabelPlant != -1 ) return m_PlantLabelPlant; if ( m_ContainsPlant ) return hueInfo.IsBright() ? 1060832 : 1060831; // a ~1_val~ of ~2_val~ dirt with a ~3_val~ [bright] ~4_val~ ~5_val~ else return hueInfo.IsBright() ? 1061887 : 1061888; // a ~1_val~ of ~2_val~ dirt with a ~3_val~ [bright] ~4_val~ ~5_val~ ~6_val~ }