Beispiel #1
0
        public GameObject ShowItemSelectionCombo()
        {
            List <GameObject>           gameObjectsInLot = listAllObjectsInRoom(this.RoomId);
            Dictionary <string, object> items            = new Dictionary <string, object>();

            foreach (GameObject item in gameObjectsInLot)
            {
                if (item != this && !(item is Sim))
                {
                    items.Add(item.CatalogName + " (" + item.ObjectId + ")", item);
                }
            }
            object     result     = ComboSelectionDialog.Show("Select Object To Move", items, "none");
            GameObject itemToMove = result as GameObject;

            return(itemToMove);
        }
        private static GenderPreference ShowGenderDialog(GenderPreference gender)
        {
            Dictionary <string, object> regTypes = new Dictionary <string, object>();

            regTypes.Add(GenderPreference.Bi.ToString(), GenderPreference.Bi.ToString());
            regTypes.Add(GenderPreference.Gay.ToString(), GenderPreference.Gay.ToString());
            regTypes.Add(GenderPreference.Straight.ToString(), GenderPreference.Straight.ToString());


            object           result        = ComboSelectionDialog.Show("Courtesan's Gender Preference", regTypes, gender.ToString());
            GenderPreference userSelection = gender;

            if (result is string)
            {
                userSelection = (GenderPreference)Enum.Parse(typeof(GenderPreference), result as string, true);
            }
            return(userSelection);
        }
        private static OutfitCategories ShowFirstOutfitTuningDialog(OutfitCategories outfit)
        {
            Dictionary <string, object> regTypes = new Dictionary <string, object>();

            regTypes.Add(OutfitCategories.Career.ToString(), OutfitCategories.Career.ToString());
            regTypes.Add(OutfitCategories.Everyday.ToString(), OutfitCategories.Everyday.ToString());
            regTypes.Add(OutfitCategories.Formalwear.ToString(), OutfitCategories.Formalwear.ToString());
            regTypes.Add(OutfitCategories.Sleepwear.ToString(), OutfitCategories.Sleepwear.ToString());
            regTypes.Add(OutfitCategories.Swimwear.ToString(), OutfitCategories.Swimwear.ToString());
            regTypes.Add(OutfitCategories.Athletic.ToString(), OutfitCategories.Athletic.ToString());

            object           result    = ComboSelectionDialog.Show("Dancer Starts In", regTypes, outfit.ToString());
            OutfitCategories newOutfit = outfit;

            if (result is string)
            {
                newOutfit = (OutfitCategories)Enum.Parse(typeof(OutfitCategories), result as string, true);
            }
            return(newOutfit);
        }