Skip to content

Commit

Permalink
Added "Show Resize Cursor" property to File Browser component to easi…
Browse files Browse the repository at this point in the history
…ly disable the resize cursor
  • Loading branch information
yasirkula committed Oct 27, 2020
1 parent d4b4b20 commit 13798a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2960,6 +2960,7 @@ MonoBehaviour:
name: Desktop
icon: {fileID: 0}
generateQuickLinksForDrives: 1
showResizeCursor: 1
folderIcon: {fileID: 21300000, guid: 05e18bb0a86cfdb4dbf887d382b69249, type: 3}
driveIcon: {fileID: 21300000, guid: c3f6bb04213791646b2e4824be1436dc, type: 3}
defaultIcon: {fileID: 21300000, guid: 372a6728b63455845bdad04ffc8a323b, type: 3}
Expand Down Expand Up @@ -3010,6 +3011,7 @@ MonoBehaviour:
filterItemTemplate: {fileID: 114000013840550810}
showHiddenFilesToggle: {fileID: 114000011511084512}
submitButtonText: {fileID: 114000013382491478}
resizeCursorHandler: {fileID: 114458032168439820}
--- !u!114 &114000013797747800
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down
9 changes: 9 additions & 0 deletions Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ private static FileBrowser Instance
[SerializeField]
private bool generateQuickLinksForDrives = true;

[SerializeField]
private bool showResizeCursor = true;

[Header( "Icons" )]

[SerializeField]
Expand Down Expand Up @@ -297,6 +300,9 @@ private static FileBrowser Instance

[SerializeField]
private Text submitButtonText;

[SerializeField]
private FileBrowserCursorHandler resizeCursorHandler;
#pragma warning restore 0649

private RectTransform rectTransform;
Expand Down Expand Up @@ -545,6 +551,9 @@ private void Awake()

window.Initialize( this );
listView.SetAdapter( this );

if( !showResizeCursor )
Destroy( resizeCursorHandler );
}

private void OnRectTransformDimensionsChange()
Expand Down

0 comments on commit 13798a1

Please sign in to comment.