Ejemplo n.º 1
0
 private void BtnWeatherDescriptionSearch_Click(object sender, EventArgs e)
 {
     lbWeather.Items.Clear();
     foreach (LibraryEntry weather in InformationLibrary.WeatherDescriptionSearch(tbWeatherSearchKeyword.Text))
     {
         lbWeather.Items.Add(weather.Name);
     }
 }
Ejemplo n.º 2
0
        private string GetRandomPlantNameBasedOn(PlantCategories plantCategories)
        {
            List <Plant> plants = InformationLibrary.PlantClosedSearchByCategory(plantCategories);

            Plant plant = plants[DiceRoller.RandomRangeNumber(0, plants.Count - 1)];

            return(plant.Name);
        }
Ejemplo n.º 3
0
        private void btnPlantCategorySearch_Click(object sender, EventArgs e)
        {
            lbPlants.Items.Clear();

            foreach (Plant plant in InformationLibrary.PlantOpenSearchByCategory(GetPlantSearchCatagories()))
            {
                lbPlants.Items.Add(plant.Name);
            }
        }
Ejemplo n.º 4
0
        private void btnPlantDescriptionSearch_Click(object sender, EventArgs e)
        {
            lbPlants.Items.Clear();

            foreach (Plant plant in InformationLibrary.PlantSearchByDescription(tbPlantSearchKeyword.Text))
            {
                lbPlants.Items.Add(plant.Name);
            }
        }
Ejemplo n.º 5
0
        private void btnPlantNameSearch_Click(object sender, EventArgs e)         // this search im still not sure if i like, something about it feels off but im not sure what
        {
            lbPlants.Items.Clear();

            foreach (Plant plant in InformationLibrary.PlantSearchByName(tbPlantSearchKeyword.Text))
            {
                lbPlants.Items.Add(plant.Name);
            }
        }
Ejemplo n.º 6
0
        private void btnFeatsSearchPrerequisite_Click(object sender, EventArgs e)
        {
            lbFeats.Items.Clear();

            lbFeats.Items.Add(InformationLibrary.FeatEntries[0].Name);

            foreach (Feat feat in InformationLibrary.FeatPrerequisiteSearch(tbFeatsSearchKeyword.Text))
            {
                if (feat == InformationLibrary.FeatEntries[0])
                {
                    continue;
                }
                lbFeats.Items.Add(feat.Name);
            }
        }
Ejemplo n.º 7
0
        private void InitializeInformationLibrary()
        {
            InformationLibrary.InitializeLibrary();

            foreach (Plant plant in InformationLibrary.PlantEntries)
            {
                lbPlants.Items.Add(plant.Name);
            }
            foreach (LibraryEntry weather in InformationLibrary.WeatherEntries)
            {
                lbWeather.Items.Add(weather.Name);
            }
            foreach (Feat feat in InformationLibrary.FeatEntries)
            {
                lbFeats.Items.Add(feat.Name);
            }

            informationTBFontSize = 8.5f;
            TbInformation.Font    = new Font(FontFamily.GenericMonospace, informationTBFontSize);
        }
Ejemplo n.º 8
0
 private void btnSoundRainIndoors_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundRainIndoors();
 }
Ejemplo n.º 9
0
 private void btnSoundDrumWar_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundDrumWar();
 }
Ejemplo n.º 10
0
 private void btnSoundHarpLuteDrum_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundHarpLuteDrum();
 }
Ejemplo n.º 11
0
 private void btnSoundLute_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundLute();
 }
Ejemplo n.º 12
0
 private void btnSoundNightSwamp_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundNightSwamp();
 }
Ejemplo n.º 13
0
 private void btnSoundThunderCrack_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundThunderCrack();
 }
Ejemplo n.º 14
0
 private void btnSoundRoughOcean_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundRoughOcean();
 }
Ejemplo n.º 15
0
 private void btnSoundTavern_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundTavern();
 }
Ejemplo n.º 16
0
 private void btnSoundSeaShanties_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundSeaShanties();
 }
Ejemplo n.º 17
0
 private void btnSoundWindLight_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundWindLight();
 }
Ejemplo n.º 18
0
 private void btnSoundChoirChants_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundMedievalChantsInRain();
 }
Ejemplo n.º 19
0
 private void btnSoundFireHeavy_Click(object sender, EventArgs e)
 {
     InformationLibrary.SoundFireHeavy();
 }