public void Set_Language(Languages new_Language)
        {
            Current_Language = new_Language;

            Standard_Messages = new Standard_Messages(Current_Language,
                                                      AppDomain.CurrentDomain.BaseDirectory + @"Library\Language_Library");

            MainWindow.Set_Texts_Turntable(Standard_Messages);

            MainWindow.Push_GUI_Recalculation();
        }
Пример #2
0
        public static void ViewAll(int roomid, List<string> data)
        {
            foreach (string element in data)
            {
                Standard_Messages.DisplayAll(element);


            }


            CommandInput(roomid);
        }
Пример #3
0
        public static void ControlMap(int roomid, string function, string obj)
        {


            switch (function)
            {
                //Displays a list of rooms
                case "room":
                case "rooms":
                    Standard_Messages.DisplayThis("rooms");
                    ViewAll(roomid, Options.SetRooms());
                    break;

                //Displays a list of weapons


                case "weapon":
                case "weapons":
                    List<string> weaponsList = Options.SetWeapons();
                    weaponsList.Sort();
                    Standard_Messages.DisplayThis("weapons");
                    ViewAll(roomid, weaponsList);
                    break;

                case "potion":
                case "potions":

                    Standard_Messages.DisplayThis("potions");
                    ViewAll(roomid, Options.SetPotions());
                   
                    break;

                default:
                    
                   
                    break;


            }
            CommandInput(roomid);



        }
Пример #4
0
 internal void Set_Text(Standard_Messages standard_Messages)
 {
     _Bindable_Resources.Set_Text(standard_Messages);
 }
Пример #5
0
 /// <summary>
 /// Gets instatiated Add_New_Comma_Type_Control.
 /// </summary>
 internal Add_New_Comma_Type_List_Item Get_Add_New_Comma_Type()
 {
     return(new Add_New_Comma_Type_List_Item(Standard_Messages.Translate("Add_New_Comma"), Comma_Type_List_Context));
 }
Пример #6
0
        void IMainWindow_Children.Push_Set_Text(Standard_Messages standard_Messages)
        {
            _Bindable_Resources.Set_Text(standard_Messages);

            Set_Text(standard_Messages);
        }