public override void OnGUI() { if (isShow == true) { dialogDirectorySelector.OnGUI(); } }
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 OnGUI() { if (windowDirectorySelector != null) { windowDirectorySelector.OnGUI(); } if (isShowMenu == true) { GUI.Window(0, rectMenu, SelectItemWindow, "", GuiStyleSet.StyleMenu.window); } if (Input.GetMouseButtonDown(0) == true) { float lY = Screen.height - 1 - Input.mousePosition.y; if (Input.mousePosition.x < rectMenu.x || Input.mousePosition.x >= rectMenu.x + rectMenu.width || lY < rectMenu.y || lY >= rectMenu.y + rectMenu.height) { isShowMenu = false; } } }
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(); }