Beispiel #1
0
        // basic Constructor
        public Skin(String fullname, int slot, String libraryname, String origin, LibraryHandler global_library, PropertyHandler global_properties, Logger global_log)
        {
            //Gathering parameters into class variables
            this.fullname    = fullname;
            this.slot        = slot;
            this.modelslot   = slot - 1;
            this.libraryname = libraryname;
            this.origin      = origin;

            logger = global_log;

            //Creating lists
            csps   = new ArrayList();
            models = new ArrayList();

            //Instanciating handlers to get info
            Library    = global_library;
            Properties = global_properties;

            check_skin();

            //Getting the info I talked about earlier
            this.dlc         = Library.get_dlc_status(this.fullname);
            this.modelfolder = Library.get_modelfolder_fullname(this.fullname);
            this.cspfolder   = Library.get_cspfolder_fullname(this.fullname);
            this.datafolder  = Properties.property_get("datafolder");

            //Now setting folders, easy ones
            this.modelpath = Application.StartupPath + "/mmsl_workspace/data/fighter/" + modelfolder + "/model/";
            this.csppath   = Application.StartupPath + "/mmsl_workspace/data/ui/replace/chr/";
            if (dlc)
            {
                this.dlc_csppath = Application.StartupPath + "/mmsl_workspace/" + datafolder + "/ui/replace/append/chr/";
                if (Properties.property_get("unlocalised") == "1")
                {
                    this.dlc_csppath = Application.StartupPath + "/mmsl_workspace/data/ui/replace/append/chr/";
                }
            }
            //Config meta
            this.metapath = Application.StartupPath + "/mmsl_config/meta/" + this.modelfolder + "/slot_" + slot + "/";

            loadMeta();
            load_models();
            load_csp();

            //setting slot texts
            this.modelslotstring = (this.modelslot < 10 ? "0" + this.modelslot.ToString() : this.modelslot.ToString());
            this.slotstring      = (this.slot < 10 ? "0" + this.slot.ToString() : this.slot.ToString());
            temped = false;
        }