/// <summary> /// 保存された設定を読み込む /// </summary> private void LoadSettings() { slideShowInterval = PlayerPrefs.GetInt(PrefItems.SlideShowInterval); fileInfoMode = (FileInfoMode)PlayerPrefs.GetInt(PrefItems.FileInfoMode); string path = PlayerPrefs.GetString(PrefItems.StartupFilePath); if (!string.IsNullOrEmpty(path) && File.Exists(path)) { LoadFile(path); } }
/// <summary> /// ファイル名表示モード切替 /// </summary> private void ToggleFileInfoMode() { switch (fileInfoMode) { case FileInfoMode.WhenChanged: fileInfoMode = FileInfoMode.Always; ShowMessage("File name: Always show"); break; case FileInfoMode.Always: fileInfoMode = FileInfoMode.None; ShowMessage("File name: Hide"); break; default: fileInfoMode = FileInfoMode.WhenChanged; ShowMessage("File name: On loaded"); break; } ShowFilename(currentFile); }