예제 #1
0
        //Adds a skin to the library
        public Boolean add_skin()
        {
            Boolean code = false;

            try
            {
                Skin newe = new Skin(fullname, skins.Count + 1, "New Skin", "Custom", Library, properties, log);

                skins.Add(newe);
                //Seventh slot of ui_char_db is skin slot count
                ui.setFile(int.Parse(Library.get_ui_char_db_id(fullname)), 7, skins.Count);
                code = true;
            }
            catch
            {
            }
            return(code);
        }