summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2020-02-10 09:19:29 +0100
committerPedro J. Estébanez <pestebanez@imvu.com>2020-03-03 10:38:34 +0100
commitaee586553a4be72b72b669fb489fae72337ab7ad (patch)
treeef448436ccff0922cb2dfbc6c589af6acd77cf41 /doc/classes
parent3c7d92c590f48ea9a265ec20d7af43a3aa44632f (diff)
Improve UX of drive letters
Namely, move the drive dropdown to just the left of the path text box and don't include the former in the latter. This improves the UX on Windows. In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its dropdown is kept at the original location.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Directory.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml
index ed4257a809..cb59a69876 100644
--- a/doc/classes/Directory.xml
+++ b/doc/classes/Directory.xml
@@ -77,8 +77,11 @@
<method name="get_current_dir">
<return type="String">
</return>
+ <argument index="0" name="include_drive" type="bool" default="true">
+ </argument>
<description>
Returns the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]).
+ On Windows, if [code]include_drive[/code] is [code]false[/code], the leading drive specificator is omitted from the returned value (e.g. [code]\tmp\folder[/code]).
</description>
</method>
<method name="get_current_drive">