private void BtnWeatherDescriptionSearch_Click(object sender, EventArgs e) { lbWeather.Items.Clear(); foreach (LibraryEntry weather in InformationLibrary.WeatherDescriptionSearch(tbWeatherSearchKeyword.Text)) { lbWeather.Items.Add(weather.Name); } }
private string GetRandomPlantNameBasedOn(PlantCategories plantCategories) { List <Plant> plants = InformationLibrary.PlantClosedSearchByCategory(plantCategories); Plant plant = plants[DiceRoller.RandomRangeNumber(0, plants.Count - 1)]; return(plant.Name); }
private void btnPlantCategorySearch_Click(object sender, EventArgs e) { lbPlants.Items.Clear(); foreach (Plant plant in InformationLibrary.PlantOpenSearchByCategory(GetPlantSearchCatagories())) { lbPlants.Items.Add(plant.Name); } }
private void btnPlantDescriptionSearch_Click(object sender, EventArgs e) { lbPlants.Items.Clear(); foreach (Plant plant in InformationLibrary.PlantSearchByDescription(tbPlantSearchKeyword.Text)) { lbPlants.Items.Add(plant.Name); } }
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); } }
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); } }
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); }
private void btnSoundRainIndoors_Click(object sender, EventArgs e) { InformationLibrary.SoundRainIndoors(); }
private void btnSoundDrumWar_Click(object sender, EventArgs e) { InformationLibrary.SoundDrumWar(); }
private void btnSoundHarpLuteDrum_Click(object sender, EventArgs e) { InformationLibrary.SoundHarpLuteDrum(); }
private void btnSoundLute_Click(object sender, EventArgs e) { InformationLibrary.SoundLute(); }
private void btnSoundNightSwamp_Click(object sender, EventArgs e) { InformationLibrary.SoundNightSwamp(); }
private void btnSoundThunderCrack_Click(object sender, EventArgs e) { InformationLibrary.SoundThunderCrack(); }
private void btnSoundRoughOcean_Click(object sender, EventArgs e) { InformationLibrary.SoundRoughOcean(); }
private void btnSoundTavern_Click(object sender, EventArgs e) { InformationLibrary.SoundTavern(); }
private void btnSoundSeaShanties_Click(object sender, EventArgs e) { InformationLibrary.SoundSeaShanties(); }
private void btnSoundWindLight_Click(object sender, EventArgs e) { InformationLibrary.SoundWindLight(); }
private void btnSoundChoirChants_Click(object sender, EventArgs e) { InformationLibrary.SoundMedievalChantsInRain(); }
private void btnSoundFireHeavy_Click(object sender, EventArgs e) { InformationLibrary.SoundFireHeavy(); }