private void ChangeDirectoryOutput(DirectoryInfo aDirectoryInfo) { directoryInfo = aDirectoryInfo; //setDirectoryInfo( directoryInfo ); Debug.Log("Change Output"); windowDirectorySelector = null; }
private void ChangeDirectory(DirectoryInfo aDirectoryInfo) { directoryInfo = aDirectoryInfo; setDirectoryInfo(directoryInfo); dialogDirectorySelector = null; }
public MenuItemChangeDirectory(string aTitle, SetDirectoryInfo aSetDirectoryInfo, List <DirectoryInfo> aDirectoryInfoRecentList) : base(aTitle) { setDirectoryInfo = aSetDirectoryInfo; dialogDirectorySelector = new DialogDirectorySelect(ChangeDirectoryInput, aDirectoryInfoRecentList); isShow = false; }
private void ChangeDirectory(DirectoryInfo aDirectoryInfo) { if (aDirectoryInfo != null) { setDirectoryInfo(aDirectoryInfo); } dialogDirectorySelector = null; }
public void OnGUI() { if (dialogDirectorySelector != null) { dialogDirectorySelector.OnGUI(); } float lWidth = GuiStyleSet.StyleFolder.buttonFolder.CalcSize(new GUIContent("")).x; GUILayout.BeginHorizontal(GuiStyleSet.StyleFolder.background); { GUILayout.TextArea(directoryInfo.FullName, GuiStyleSet.StyleFolder.text, GUILayout.Width(Screen.width / 2.0f - lWidth - 16.0f)); if (GUILayout.Button(new GUIContent("", "StyleFolder.ButtonFolder"), GuiStyleSet.StyleFolder.buttonFolder) == true) { ViewDirectoryTree lViewDirectoryTree = new ViewDirectoryTree(directoryInfoRoot.Root, directoryInfo); dialogDirectorySelector = new DialogDirectorySelect(ChangeDirectory, lViewDirectoryTree, directoryInfo); } } GUILayout.EndHorizontal(); }
public void SelectItemWindow(int windowID) { GUILayout.BeginVertical(); { if (GUILayout.Button(new GUIContent("Input", "StyleMenu.Item"), GuiStyleSet.StyleMenu.item) == true) { ViewDirectoryTree lViewDirectoryTree = new ViewDirectoryTree(directoryInfoRoot, directoryInfo); windowDirectorySelector = new DialogDirectorySelect(ChangeDirectoryInput, lViewDirectoryTree, directoryInfo); isShowMenu = false; } if (GUILayout.Button(new GUIContent("Output", "StyleMenu.Item"), GuiStyleSet.StyleMenu.item) == true) { ViewDirectoryTree lViewDirectoryTree = new ViewDirectoryTree(directoryInfoRoot, directoryInfo); windowDirectorySelector = new DialogDirectorySelect(ChangeDirectoryOutput, lViewDirectoryTree, directoryInfo); isShowMenu = false; } } GUILayout.EndVertical(); }
public void OnGUI() { if (dialogDirectorySelector != null) { dialogDirectorySelector.OnGUI(); } float lWifthPadding = GuiStyleSet.StyleFolder.background.padding.left + GuiStyleSet.StyleFolder.background.padding.right; float lWifthMargin = GuiStyleSet.StyleFolder.background.margin.left + GuiStyleSet.StyleFolder.background.margin.right; float lWidth = GuiStyleSet.StyleFolder.buttonFolder.CalcSize(new GUIContent("")).x + lWifthPadding + lWifthMargin; GUILayout.BeginHorizontal(); { if (GUILayout.Button(new GUIContent("", "StyleFolder.ButtonFolder"), GuiStyleSet.StyleFolder.buttonFolder) == true) { dialogDirectorySelector = new DialogDirectorySelect(ChangeDirectory, directoryInfoRecentList); dialogDirectorySelector.Awake(); } GUILayout.TextArea(directoryInfoRecentList[0].FullName, GuiStyleSet.StyleFolder.text, GUILayout.Width(Screen.width / 2.0f - lWidth - 160.0f)); } GUILayout.EndHorizontal(); }