Esempio n. 1
0
        public MenuBoxFile(string aTitle, string aFilePathLanguage, ApplicationLoopEditor aApplicationLoopTool)
            : base(aTitle)
        {
            Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage);

            MenuItemChangeDirectory lMenuItemChangeDirectoryInput  = new MenuItemChangeDirectory(lDictionaryDescription["INPUT"], aApplicationLoopTool.SetInput, aApplicationLoopTool.directoryInfoRecentInputList);
            MenuItemChangeDirectory lMenuItemChangeDirectoryOutput = new MenuItemChangeDirectory(lDictionaryDescription["OUTPUT"], aApplicationLoopTool.SetOutput, aApplicationLoopTool.directoryInfoRecentOutputList);

            menuItemList.Add(lMenuItemChangeDirectoryInput);
            menuItemList.Add(lMenuItemChangeDirectoryOutput);
        }
Esempio n. 2
0
        public MenuBar(string aFilePathLanguage, ApplicationLoopEditor aApplicationLoopTool)
        {
            Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage);

            MenuBoxFile lMenuBoxFile = new MenuBoxFile(lDictionaryDescription["FILE"], Application.streamingAssetsPath + "/Language/LoopTool/Menu/MenuBar/MenuBoxFile.language", aApplicationLoopTool);
            MenuBoxTool lMenuBoxTool = new MenuBoxTool(lDictionaryDescription["TOOL"], Application.streamingAssetsPath + "/Language/LoopTool/Menu/MenuBar/MenuBoxTool.language", aApplicationLoopTool);

            menuBoxList.Add(lMenuBoxFile);
            menuBoxList.Add(lMenuBoxTool);

            Rect = new Rect(0.0f, 0.0f, 0.0f, 0.0f);
        }
Esempio n. 3
0
        void Awake()
        {
            isSetGuiStyle           = false;
            camera.orthographicSize = Screen.height / 2.0f;

            Unity.Function.Graphic.Gui.camera = camera;
            GameObject objGuiStyleSet = GameObject.Find("GuiStyleSet");
            GameObject objGuiSettings = GameObject.Find("GuiSettings");

            GuiStyleSet.Reset(objGuiStyleSet);
            GuiSettings.Reset(objGuiSettings);

            AudioSettings.outputSampleRate = 44100;
            sampleRate = AudioSettings.outputSampleRate;

            applicationLoopEditor = new ApplicationLoopEditor(new DirectoryInfo(Application.streamingAssetsPath + "/Sound/Music"), new DirectoryInfo(Application.streamingAssetsPath + "/Sound"));

            soundBuffer = new Dictionary <int, float[]>();

            //masterStatus = new MasterStatus();
            //midiGeneratorArray = new MidiGenerator( masterStatus );
        }