コード例 #1
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (PlantProps.Bright(Hue))
     {
         list.Add(1060839, PlantProps.Color(Hue));
     }
     else
     {
         list.Add(1060838, PlantProps.Color(Hue));
     }
 }
コード例 #2
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (!PlantProps.Bright(Hue))
     {
         list.Add(1061917, PlantProps.Color(Hue) + "\t" + PlantProps.PlantName(SeedType));             // ~1_COLOR~ ~2_TYPE~ seed
     }
     else
     {
         list.Add(1061918, PlantProps.Color(Hue) + "\t" + PlantProps.PlantName(SeedType));             // bright ~1_COLOR~ ~2_TYPE~ seed
     }
 }
コード例 #3
0
 public override void AddNameProperty(ObjectPropertyList list)
 {
     if (m_SeedType == -9)
     {
         list.Add(1060830, Waterlvl);
     }
     else if (Stage < 7 && !Named)
     {
         string plantname = Waterlvl + "\t" + Health + "\t" + PlantProps.Color(SeedColor) + "\t" + PlantProps.Stages(Stage);
         if (PlantProps.Bright(SeedColor))
         {
             list.Add(1060832, plantname);
         }
         else
         {
             list.Add(1060831, plantname);
         }
     }
     else if (Stage < 7 && Named)
     {
         string plantname = Waterlvl + "\t" + Health + "\t" + PlantProps.Color(SeedColor) + "\t" + PlantProps.PlantName(SeedType) + "\t" + PlantProps.Stages(Stage);
         if (PlantProps.Bright(SeedColor))
         {
             list.Add(1061887, plantname);
         }
         else
         {
             list.Add(1061888, plantname);
         }
     }
     else
     {
         if (PlantProps.Bright(SeedColor))
         {
             list.Add(1061892, Health + "\t" + PlantProps.Color(SeedColor) + "\t" + PlantProps.PlantName(SeedType));
         }
         else
         {
             list.Add(1061890, Health + "\t" + PlantProps.Color(SeedColor) + "\t" + PlantProps.PlantName(SeedType));
         }
     }
 }