public MenuBoxTool(string aTitle, string aFilePathLanguage, ApplicationPlayer aApplicationPlayer) : base(aTitle) { Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage); menuItemList.Add(new MenuItemSettings(lDictionaryDescription["SETTINGS"], Application.streamingAssetsPath + "/Language/Player/Dialog/DialogSettings.language", aApplicationPlayer)); }
public MenuBoxFile(string aTitle, string aFilePathLanguage, ApplicationPlayer aApplicationPlayer) : base(aTitle) { Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage); menuItemList.Add(new MenuItemChangeDirectory(lDictionaryDescription["INPUT"], aApplicationPlayer.SetInput, aApplicationPlayer.directoryInfoRecentList)); }
public MenuItemSettings(string aTitle, string aFilePathLanguage, ApplicationPlayer aApplicationPlayer) : base(aTitle) { Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage); dialogSettings = new DialogSettings(ChangeSettings, lDictionaryDescription); applicationPlayer = aApplicationPlayer; isShow = false; }
public MenuBar(string aFilePathLanguage, ApplicationPlayer aApplicationPlayer) { Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage); MenuBoxFile lMenuBoxFile = new MenuBoxFile(lDictionaryDescription["FILE"], Application.streamingAssetsPath + "/Language/Player/Menu/MenuBar/MenuBoxFile.language", aApplicationPlayer); MenuBoxTool lMenuBoxTool = new MenuBoxTool(lDictionaryDescription["TOOL"], Application.streamingAssetsPath + "/Language/Player/Menu/MenuBar/MenuBoxTool.language", aApplicationPlayer); menuBoxList.Add(lMenuBoxFile); menuBoxList.Add(lMenuBoxTool); Rect = new Rect(0.0f, 0.0f, 0.0f, 0.0f); }
void Awake() { isSetGuiStyle = false; Unity.Function.Graphic.Gui.camera = camera; GameObject obj = GameObject.Find("GuiStyleSet"); GuiStyleSet.Reset(obj); AudioSettings.outputSampleRate = 44100; sampleRate = AudioSettings.outputSampleRate; applicationPlayer = new ApplicationPlayer(new DirectoryInfo(Application.streamingAssetsPath + "/Sound/Music"), GetComponent <MeshFilter>(), GetComponent <MeshRenderer>()); soundBuffer = new Dictionary <int, float[]>(); }